angular-ui / ui-leaflet

AngularJS directive to embed an interact with maps managed by Leaflet library
http://angular-ui.github.io/ui-leaflet
Other
315 stars 137 forks source link

fix(controls): removeFrom(map) -> remove() #321

Closed NewtonDer closed 7 years ago

NewtonDer commented 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.

See http://leafletjs.com/reference-1.0.2.html#control