Hello Ross. Can the map re center itself once you close the balloon?
I build map embedded to website and do not have space to make it bigger (wider) I also use image ground overlay. Once you close the balloon, the map remains off center. Can the map re-center itself once you close the balloon? http://76.12.153.204/medical-and-educational.html to load markers click on Medical & Education (gray) button on the right. Do you have any suggestions? thank you On Apr 21, 4:15 pm, Rossko <[email protected]> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---
