Hi All,
I am trying to zoom & center map from infowindow. first zoom /
centering map all working properly. second time I zoomed out map and
then I can see other markers. I clicked on zoom link from infowindow
from other marker, but this time map centering is not working, map
zooming is working well.
function createMarker(point, name, address, type) {
var marker = new GMarker(point, customIcons[type]);
var html = "<b>" + name + "</b> <br/>" + address+"<br><a
href='#' onclick='map.setCenter(parseFloat(this.rel),17);' rel='"+point
+"' >Zoom to near</a>";
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(html);
lastMarkerClicked=marker;
contentForLastMarkerClicked=html
});
return marker;
}
Not understanding where is the wrong?
Thanks
Peter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---