Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var geojsonLayer = L.Proj.geoJson(features, {
- 'pointToLayer': function (feature, latlng) {
- return L.marker(latlng);
- }
- }).addTo(map);
- geojsonLayer.on("load", function () {
- console.log(1);
- });
- //setup loading
- geojsonLayer = new L.GeoJSON.AJAX(objJson, {style: style, onEachFeature: onEachFeature});
- //wait to hit the function
- geojsonLayer.on('data:loaded',function(e){
- alert("loaded");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement