Hello,i have a VB6 software that use API MAPS for view gps data on
maps.
I have made a little code for add a marker on the map.
I put this html code on my FTP space ( with maps key correct ), and
when i open this page the maps are correctly loaded.But the marker not
appear until i "touch" the api with the mouse....(zoom, left, right or
other input)....

The code is :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Localizzazione Cartografica</title>
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
type="text/javascript"></script>
<script type="text/javascript">
function load()
{
if (GBrowserIsCompatible())
{ var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.addControl(new GScaleControl());
var marker = new GMarker(new GLatLng
(44.6532233333333,7.80656333333333));
map.setCenter(new GLatLng (44.6532233333333,7.80656333333333), 15);
GEvent.addListener(marker, "click", function()
{ marker.openInfoWindowHtml("Position");});
map.addOverlay(marker);
}
}
</script>
</head>
<body onload="load()" onunload="GUnload()"> <div id="map"
style="width: 630px; height: 415px"></div>
</body>
</html>

thanks

Marco

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to