use public api for getting the layer id

This commit is contained in:
Nathan Cahill 2016-04-25 17:30:04 -06:00
parent 17ec366263
commit 3edf6036e5

View File

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