Hi I've been asking for help to set up a script API is not working.
I'm trying to make it show the map on my site and to find and mark the
location, I provide only one address. No need for a form. My script is
as follows:
<script type="text/javascript">
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
//var geocoder;
//var endereco =
//geocoder = new GClientGeocoder();
//geocoder.getLatLng(endereco);
//map.setCenter(new GLatLng
(40.41689826118782,-3.7034815549850464), 17);
map.setCenter(new GClientGeocoder.getLatLng("76 9th ave new york"),
17);
map.addControl(new GLargeMapControl());
map.setMapType(G_NORMAL_MAP);
//var point = new GPoint (-3.7034815549850464,
40.41689826118782);
//var point = new GPoint (endereco);
//var marker = new GMarker(point);
//map.addOverlay(marker);
}
}
</script>
</head>
<body onLoad="load()" onUnload="GUnload()">
<div id="map" style="width: 615px; height: 400px"></div>
</body>
What's wrong and how to solve it?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---