WebMapViewer.RemoveLocation
From Xojo Documentation
Method
WebMapViewer.RemoveLocation(Location as WebMapLocation)
New in 2011r2
Supported for all project types and targets.
New in 2011r2
Supported for all project types and targets.
Removes a WebMapLocation object from the map. If the location is visible on the map, the icon is also removed.
Notes
You can use the Click event handler to detect when the user clicks on an existing location so that you can remove it.
Example
If Location is a property of the web page for a location that has been previously added, you can remove it: