Skip to content

Instantly share code, notes, and snippets.

@patrickarlt
Created April 11, 2014 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickarlt/10502938 to your computer and use it in GitHub Desktop.
Save patrickarlt/10502938 to your computer and use it in GitHub Desktop.
var shapefile = new L.Shapefile(url);
shapefile.once("layeradd", function(e){
// this will get called when the first layer (shape) is added to the map
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment