Wasn't it Woodyz who wrote:
>Mike,
>I tried removing the lines you've told me, the map was not loaded.
>I looked at Error console from Firefox, it said "c is undefined"
>It seems that I have to give MapCenter and ZoomLevel everytime before
>requesting KML, which I don't know these values.

Oops, you also need to not create a new map each time you load the KML.

Try also removing the second and third occurrence of
   map = new GMap2(document.getElementById("map"));

Or perhaps replace then by map.clearOverlays() if you want the old KML 
to be removed.

-- 
Mike Williams
http://econym.org.uk/gmap


--

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=.


Reply via email to