I'm fairly new to the api, so bear with me. I'm showin a map that has
an info window which displays correctly onload.
However - when you zoom by double clicking the map, or using the zoom
control, it disappears. Any idea how to prevent that?
here is my code:
<script type="text/javascript">
//<![CDATA[
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("mapz"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(<%=loclat%>, <%=loclong%>), 13);
var myGeographicCoordinates = new GLatLng(<%=loclat%>, <
%=loclong%>);
map.openInfoWindowHtml(myGeographicCoordinates,"<b><%=bizname%></
b><br /><%=bizaddr%><br /><%=bizcity%>, <%=bizstate%> <%=bizzip%>");
}
}
//]]>
</script>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---