I then use the following code to remove all the markers from the Map:
B4X:
Log("List of Markers: " & lstMarkers)
For Each m As Marker In lstMarkers
GMap.RemoveMarker(m)
Next
The Log("List of Markers: " & lstMarkers) returns:
B4X:
List of Markers: (ArrayList) [com.lynden.gmapsfx.javascript.object.Marker@27ad97db, com.lynden.gmapsfx.javascript.object.Marker@4a6dde22, com.lynden.gmapsfx.javascript.object.Marker@1a26a8db, com.lynden.gmapsfx.javascript.object.Marker@53fd842, com.lynden.gmapsfx.javascript.object.Marker@4e9bb6f0, com.lynden.gmapsfx.javascript.object.Marker@51eb9bfd]
Is it possible to attach a name to the marker in the list?
For example, can I change "Marker@1a26a8db" to "Marker@INV001" where "INV001" is the unique ID of the device.
I will then be able to identify a marker in order to delete only that marker.