onRemove method

Layer onRemove(
  1. LeafletMap map
)

Should contain all clean up code that removes the layer's elements from the DOM and removes listeners previously added in onAdd. Called on map.removeLayer(layer).

Implementation

external Layer onRemove(LeafletMap map);