mirror of
https://github.com/Leaflet/Leaflet.git
synced 2025-07-21 23:26:12 +00:00
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:
@ -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');
|
||||||
|
Reference in New Issue
Block a user