On Oct 5, 8:23 am, leeah <[email protected]> wrote:
> I created a button and called a function which execute
> map.clearOverlays()
>
> it seems the object map = new GMap2(document.getElementById
> ("map_canvas"));
>
> doesn;t recongize clearOverlays()
>
> please advise

Try making the map variable global.

>
> On Oct 5, 4:17 am, Rossko <[email protected]> wrote:
>
>
>
> > > I would like to add a button to clear all layers on map.  please help
>
> >http://code.google.com/apis/maps/documentation/reference.html#GMap2.c...- 
> >Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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