Closed NewtonDer closed 7 years ago
In Leaflet 1.X, L.Control no longer has the removeFrom(<Map> map) method to remove a control from a map. Instead, it has been simplified and renamed to remove(). This pull request fixes the function call.
L.Control
removeFrom(<Map> map)
remove()
See http://leafletjs.com/reference-1.0.2.html#control
In Leaflet 1.X,
L.Control
no longer has theremoveFrom(<Map> map)
method to remove a control from a map. Instead, it has been simplified and renamed toremove()
. This pull request fixes the function call.See http://leafletjs.com/reference-1.0.2.html#control