### Remove Markers

One way of removing all Markers, is by keeping track in a List holding the Markers created.
'Define the GoogleMap
Private gmap As GoogleMap
'Define the marker list and init
Private MarkerList As List
MarkerList.Initialize
'Add the marker to the Google Map and the list
Dim MarkerTitle as String = "Marker"
Dim m As Marker = gmap.AddMarker(Lat, Lon, MarkerTitle)
MarkerList.Add(m)
... Add more Markers
IMPORTANT
'Remove all Markers from the Google Map by iterating over the list
'This code is for B4J v5.50 or higher
For Each m As Marker In MarkerList
gmap.RemoveMarker(m)
Next
'This code is for B4J v5.00 and below
For Each m As Marker In MarkerList
m.Remove
Next

Changed: , Category: Google Maps, File: T6C197M1451.htm, ID: 1451