On Jan 29, 7:21 am, Raihan <[email protected]> wrote: > Hi, > > This is my javascript: > > var map, mapHomePoint, mapMarkerManager; > > function loadMap(target) > { > if (GBrowserIsCompatible()) > { > map = new GMap2(document.getElementById(target)); > map.addControl(new GSmallMapControl()); > map.addControl(new GMapTypeControl()); > mapHomePoint = new GLatLng(42.2660227, -89.0396905) > map.setCenter(mapHomePoint, 10); > mapMarkerManager = new MarkerManager(map); > } > > } > > In another function I add the markers like so: > > mapMarkerManager.addMarker(createMarker(point)); > > Finally, in another function I am trying to clear the markers like so: > > mapMarkerManager.clearMarkers(); > > Firebug doesn't show any errors either. Where am I going wrong? Hard to say. You might try following the posting guidelines: http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines and providing a link to your map.
-- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
