javascript - How to give the number in google map marker -


how give number in google map marker ? there marker available implement marker it's number. used following code this

locations = (<?php echo json_encode($location); ?>); var map = new google.maps.map(document.getelementbyid('map'), {   zoom: 6,    center: new google.maps.latlng(locations[0][1], locations[0][2]),   maptypeid: google.maps.maptypeid.roadmap });  var infowindow = new google.maps.infowindow();  var marker, i;     marker = new google.maps.marker({      position: new google.maps.latlng(locations[0][1], locations[0][2]),     map: map, icon: 'blue-dot.png'   });    google.maps.event.addlistener(marker, 'click', (function(marker) {     return function() {       infowindow.setcontent(locations[0][0]);       infowindow.open(map, marker);     }   })(marker, i)); 


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -