Permalink
Browse files

added $.jHERE.ready

  • Loading branch information...
mmarcon committed Dec 9, 2012
1 parent ab49eb8 commit 4618f9882b0b437dcb9135feae098ef2d8e4d01a

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -8,7 +8,7 @@
position: absolute;
top: 0;
left: 0;
bottom: 0;
bottom: 80px;
right: 0;
background: white;
}
@@ -60,14 +60,18 @@
<body>
<div id="map"></div>
<ul class="toolbar">
<li data-group="restaurants">
<li data-group="restaurants" class="active">
Restaurants<br/>
<a href="#zoom">View All</a>
</li>
<li data-group="hotels">
Hotels<br/>
<a href="#zoom">View All</a>
</li>
</ul>
<!-- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> -->
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/zepto/1.0rc1/zepto.min.js"></script>
<script type="text/javascript" src="../zepto.adapter.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<!-- <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/zepto/1.0rc1/zepto.min.js"></script> -->
<!-- <script type="text/javascript" src="../zepto.adapter.js"></script> -->
<script type="text/javascript" src="../jhere.js"></script>
<script type= "text/javascript" src="../extensions/advancedmarkers.js"></script>
<script type="text/javascript">
@@ -94,6 +98,10 @@
center: [52.5, 13.3],
zoom: 12
})
.jHERE('marker', [52.46, 13.31], {group: 'hotels', fill: '#ff8c00', selectedFill: '#ff4500', draggable: true}, addClick)
.jHERE('marker', [52.51, 13.3], {group: 'hotels', fill: '#ff8c00', selectedFill: '#ff4500', draggable: true}, addClick)
.jHERE('marker', [52.512, 13.35], {group: 'hotels', fill: '#ff8c00', selectedFill: '#ff4500', draggable: true}, addClick)
.jHERE('marker', [52.5, 13.3], {group: 'restaurants', fill: '#4169e1', selectedFill: '#dc143c', draggable: true}, addClick)
.jHERE('marker', [52.5, 13.35], {group: 'restaurants', fill: '#4169e1', selectedFill: '#dc143c', draggable: true}, addClick)
.jHERE('marker', [52.52, 13.3], {group: 'restaurants', fill: '#4169e1', selectedFill: '#dc143c', draggable: true}, addClick)
@@ -112,6 +120,9 @@
$(this).toggleClass('active');
group.toggle();
});
$.jHERE.ready(function(){
$.jHERE.getMarkersGroup('hotels').hide();
});
});
</script>
</body>
@@ -31,7 +31,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
var deferred = $.Deferred();
success = isFunction(success) ? success : $.noop;
error = isFunction(error) ? error : $.noop;
P._JSLALoader.load().is.done(function(){
P.ready(function(){
var searchCenter = {latitude: 0, longitude: 0},
searchManager = nokia.places.search.manager;
function geocodeCallback(data, status) {
Oops, something went wrong.

0 comments on commit 4618f98

Please sign in to comment.