thank you for your respond Ross.

do you know some one show try to do the same and it work?

thank you.

Nikolay

On Apr 21, 4:15 pm, Rossko <[email protected]> wrote:
> > Ground image overlay and markersreloaddoes not work together.
>
> It does work for other people, so it must be something in your
> code ...
>
> > I try to build map with ground overlay and load different XML files
> > after user press button.
> > It does notreloadmarkers instead it loads same or load newsetof
> > markers.
>
> > Try:http://www.youneeditall.com/google-map-api/newmap/
>
> In your readMap() function, these lines are commented out -
>     // empty the arrays
>     // gmarkers = [];
>     // htmls = [];
> so every time you read another XML file they just grow longer.
>
> But it still won't work the way you want if you just clear out the
> content of gmarkers[] either, that desn't remove anything from the
> map.
> Write some code that loops through gmarkers[] and does
>    map.removeOverlay(gmarkers[i]);
> or something like for each existingmarker.
> Then clear your arrays.
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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