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?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---