On Jun 30, 11:26 am, The Muckraker <[email protected]> wrote:
> Hello,
>
> I can't figure this out. I'm trying to draw a simply Polygon, but I
> keep getting the error "GLatLng is underfined." It's happening in both
> IE and FF.
>
> Please help!!!!
>
> function initialize() {
>     var map = new GMap2(document.getElementById("map_canvas"));
>     map.setCenter(new GLatLng(38.96934, -76.5196), 13);
>     map.addControl(new GSmallMapControl());
>
>         var ward2=new GPolygon([
>                 new GLatLng(38.9832, -76.4893),
>                 new GLatlng(38.9826, -76.4901),
>                 new GLatlng(38.9846, -76.4935),
>                 new GLatLng(38.9832, -76.4893)
>                 ], "#f33f00", 1, 3, "#f33f00", 3);
>         map.addOverlay(ward2);
>
> }

That looks OK to me, however my browser is a lot better at parsing
javascript than I am.  Perhaps if you followed the posting guidelines
and provided a link to the map that fails I could see the problem...

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