1

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?

Marc Climent
  • 9,434
  • 2
  • 50
  • 55
Michel
  • 23,085
  • 46
  • 152
  • 242

3 Answers3

1

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
  • 15,524
  • 5
  • 33
  • 40
1

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
  • 179
  • 3
  • 14
0

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

in javascript, where subgurim_GMap1 is the GMap_Id of your map

Michel
  • 23,085
  • 46
  • 152
  • 242