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; }); } } });
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 .