Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created May 7, 2013 17:42
Show Gist options
  • Save tmcw/5534557 to your computer and use it in GitHub Desktop.
Save tmcw/5534557 to your computer and use it in GitHub Desktop.
// this creates a marker layer
var portalLayer = L.mapbox.markerLayer();
//this loads a url into that layer
portalLayer.loadURL('http://www.tryptrecords.com/maps/data/data.geoJson');
// this tries to make a new marker layer, passing the other one as an argument
addLayer(L.mapbox.markerLayer(portalLayer,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment