> Ground image overlay and markers reload does 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 not reload markers instead it loads same or load new set of > 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 existing marker. 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 -~----------~----~----~----~------~----~------~--~---
