heigeo / leaflet.wms

A Leaflet plugin for working with Web Map services, providing: single-tile/untiled/nontiled layers, shared WMS sources, and GetFeatureInfo-powered identify.
http://heigeo.github.io/leaflet.wms/
MIT License
242 stars 135 forks source link

Fix onRemove undefined on wms layer #66

Open mikhailswift opened 4 years ago

mikhailswift commented 4 years ago

During use of leaflet.wms I encountered some layer.onRemove is not a function errors. This adds a remove function that removes any sublayers from the map.