leaflet.wms icon indicating copy to clipboard operation
leaflet.wms copied to clipboard

remove source from map properly, symmetric to addition.

Open jjimenezshaw opened this issue 5 years ago • 0 comments

wms.Layer.onAdd is adding this._source to this._map, but is not removed symmetrically on onRemove.

The consequence is that the attribution is never removed if the layer is removed/managed using L.Control.Layers. If you change to different layers that use wms.Layer, the attributions are appended (never removed), even if you remove the layer.

jjimenezshaw avatar Apr 13 '19 19:04 jjimenezshaw