Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. var geojsonLayer = L.Proj.geoJson(features, {
  2. 'pointToLayer': function (feature, latlng) {
  3. return L.marker(latlng);
  4. }
  5. }).addTo(map);
  6.  
  7. geojsonLayer.on("load", function () {
  8. console.log(1);
  9. });
  10.  
  11. //setup loading
  12. geojsonLayer = new L.GeoJSON.AJAX(objJson, {style: style, onEachFeature: onEachFeature});
  13. //wait to hit the function
  14. geojsonLayer.on('data:loaded',function(e){
  15. alert("loaded");
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement