Can't find proper event for vector layer like on "load", to be fired when this layer is fuly rendered. I add vector features to a layer in Leaflet using proj4leaflet from JSON object like this
var geojsonLayer = L.Proj.geoJson(features, {
'pointToLayer': function (feature, latlng) {
return L.marker(latlng);
}
}).addTo(map);
And this methid does not work
geojsonLayer.on("load", function () {
console.log(1);
});
I need a loadend or renderend event for this layer. Is there any?
Aucun commentaire:
Enregistrer un commentaire