tombatossals / angular-leaflet-directive

AngularJS directive to embed an interact with maps managed by Leaflet library
http://tombatossals.github.io/angular-leaflet-directive
MIT License
1.5k stars 635 forks source link

How to set Geojson Marker focus true ??? #1097

Closed youssefbounar closed 8 years ago

youssefbounar commented 8 years ago

Hi, i have a map populated from geojson, and i would like to set focus to one marker by name for example i try this but it doesn't work, some thing missed leafletData.getMarkers().then(function (markers) { for (var k in markers) { if(k.name=='garage'){ k.focus = true; }); } } });

what's wrong ??? thanks .