use public api for getting the layer id
This commit is contained in:
parent
17ec366263
commit
3edf6036e5
@ -42,7 +42,7 @@
|
||||
]);
|
||||
|
||||
features.bindPopup(function(layer){
|
||||
return 'Leaflet ID is ' + layer._leaflet_id;
|
||||
return 'Leaflet ID is ' + features.getLayerId(layer);
|
||||
}).addTo(map);
|
||||
|
||||
var content = L.DomUtil.create('p', 'custom-popup');
|
||||
|
Loading…
Reference in New Issue
Block a user