how can I display thumbnail image in spite of bubble in google map API -


i using google map api in application. how can show thumbnail image in place of red bubble perticular address on map.

when create marker, set icon. i.e.

var marker = new google.maps.marker({   map: null,   position: new google.maps.latlng(jdata.locationlat, jdata.locationlon),   visible: true,   clickable: true,   title: jquery.trim(jdata.locationname),   icon: 'http://www.mysite.com/mythumb.png',   shadow: 'http://www.mysite.com/markershadow.png' }); 

you can set after initialization well:

marker.seticon('http://www.mysite.com/mythumb.png'); marker.setshadow('http://www.mysite.com/markershadow.png'); 

Comments

Popular posts from this blog

drupal - using views argument in the view tpl.php file -

php - Posting PHPBB Forum Thread/Post info in a website -

php - Add a blog by sending a mail to a certain emailadress -