in google maps v3 possible creating custom event listeners , modifying autocentering. examples can found here: http://you.arenot.me/2010/06/29/google-maps-api-v3-0-multiple-markers-multiple-infowindows/
several infowindows 1 marker (not tested):
var infowindow = new google.maps.infowindow(); var infowindow2 = new google.maps.infowindow(); var marker = new google.maps.marker({ position:latlng, map: map }); google.maps.event.addlistener(marker, 'click', function(content){ return function(){ infowindow.setcontent(content); infowindow.open(map, this); infowindow2.setcontent(content+'222'); infowindow2.open(map, this); } }(content));
Comments
Post a Comment