angular-ui / ui-leaflet

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

Can't remove one marker #45

Open nmccready opened 9 years ago

nmccready commented 9 years ago

From @Jean-FrancoisTrevien on January 26, 2015 15:41

Hello,

I'm trying to remove one marker an i have done this: $scope.markers[nm]=null; delete $scope.markers[nm]; But the marker remain visible, the leaflet countepart seem to be still there. You have an example for removing all markers, but i just want to remove one. Any idea?

Copied from original issue: tombatossals/angular-leaflet-directive#619

nmccready commented 9 years ago

From @justinwp on January 26, 2015 15:56

Probably related to #478