removeLayer method
void
removeLayer(
- String layerId
)
Implementation
void removeLayer(String layerId) {
if (_markers.remove(layerId) != null) _mark(MapObjectKind.markers);
if (_polylines.remove(layerId) != null) _mark(MapObjectKind.polylines);
if (_polygons.remove(layerId) != null) _mark(MapObjectKind.polygons);
if (_circles.remove(layerId) != null) _mark(MapObjectKind.circles);
if (_tileLayers.remove(layerId) != null) _mark(MapObjectKind.tileLayers);
if (_flutterMapLayers.remove(layerId) != null) _mark(MapObjectKind.flutterMapLayers);
_markerTransitions.remove(layerId);
_markerTaps.remove(layerId);
_hitTesters.remove(layerId);
_layers.remove(layerId);
}