So I've loaded Google Maps using the way outlined in the Google AJAX
API Loader page:
http://code.google.com/apis/maps/documentation/
<pre>
google.load("maps", "2.x");
google.setOnLoadCallback(gooInitialize);
function gooInitialize() {
var map = new google.maps.Map2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.setCenter(new google.maps.LatLng(37.4419, -122.1419), 13);
}
</pre>
So far so good...but I'm trying to create a latlng like this:
var pt = new google.maps.LatLng(lati, longi);
var m = new google.maps.GMarker(pt);
And I get this error using Firebug:
google.maps.LatLng is not a constructor
What step am I missing here?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---