tags:

views:

404

answers:

3

hi,

i've placed say 20 infowindows+markers+icons on my map. when the user pans to the right, i want to remove all existing infowindows+markers+icons on my map and paint the new ones.

is there an easy way to do this?

Michel

A: 

found it, it's subgurim_GMap1.clearOverlays();

in javascript, where subgurim_GMap1 is the GMap_Id of your map

Michel
A: 

If you don't want to do the clearing and painting yourself, the easiest option would be to use MarkerManager, from the Utility Library.

Chris B
A: 

Remember that you can add custom javascript to the Subgurim GoogleMaps control using "CustomJavascript" or "CustomInsideJavascript"

On the other hand, as Chris B says, it will be very useful to use the Subgurim MarkerManager.

Subgurim