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:
Andrew 2017-10-01 19:16:45 +02:00 committed by GitHub
commit 78152c9804

View File

@ -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');