Remove one or more features from a map, identified by layerId
; or,
clear all features of the given type or group.
removeControl(map, layerId)clearControls(map)
clearGroup(map, group)
removeImage(map, layerId)
clearImages(map)
removeTiles(map, layerId)
clearTiles(map)
removePopup(map, layerId)
clearPopups(map)
removeMarker(map, layerId)
clearMarkers(map)
removeMarkerCluster(map, layerId)
clearMarkerClusters(map)
removeMarkerFromCluster(map, layerId, clusterId)
removeShape(map, layerId)
clearShapes(map)
removeGeoJSON(map, layerId)
clearGeoJSON(map)
removeMeasure(map)
removeTopoJSON(map, layerId)
clearTopoJSON(map)
a map widget object, possibly created from leaflet
()
but more likely from leafletProxy
()
character vector; the layer id(s) of the item to remove
the name of the group whose members should be removed
the id of the marker cluster layer
the new map
object