Merge pull request #4506 from Leaflet/layer-id-public
Switch to public api for getting the layer id in debug
This commit is contained in:
commit
78152c9804
@ -53,7 +53,7 @@
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
features.bindPopup(function(layer){
|
features.bindPopup(function(layer){
|
||||||
return 'Leaflet ID is ' + layer._leaflet_id;
|
return 'Leaflet ID is ' + features.getLayerId(layer);
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
var content = L.DomUtil.create('p', 'custom-popup');
|
var content = L.DomUtil.create('p', 'custom-popup');
|
||||||
|
Loading…
Reference in New Issue
Block a user