On Feb 1, 9:14 pm, dondmcg <[email protected]> wrote:
> OK I cleared out that extra onload and defined the GLatLng but still
> not working.
>
> I checked the tutorials by Mike W. you mention and notice the warnings
> about divs and javascript placement but see no conflict with my page.
> I know it is something simple I just can't figure it out just yet.
map.setCenter(new GLatLng(40.738348,-73.998971), 13);
map.addOverlay(new GMarker(40.738348,-73.998971));
A GMarker takes a GLatLng as an argument, not a latitude and a
longitude:
should be:
map.addOverlay(new GMarker(new GLatLng(40.738348,-73.998971)));
-- Larry
>
> On Feb 1, 10:47 am, igloo <[email protected]> wrote:
>
> > You have 2 load functions - you only need one!
>
> > You haven't defined your GLatLng variable for your marker....
>
> > Have a look at Mike Williams' basic tutorials inhttp://econym.org.uk/gmap/
> > (in particular The Basics - Part 1) to see a simple example of the
> > sort of code you need.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---