On Jun 1, 12:48 pm, Skale <[email protected]> wrote:
> I need help,

So do the rest of us. Have you read the posting guidelines (especially
the part labelled "1. Important!")?
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines

> when I use GDownloadUrl to download .xml file with coordinates to draw
> polyline on my map I get "map is undefined" error. Here is code:
>                   this.map.addOverlay(polyline);
>
> And when I use this code:
> this.map.addOverlay(polyline);
>
> it WORKS! (all variables are global)

I guess that "this" points to different things. Without a link to
enable some debugging to happen, it's difficult to say more.

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