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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -