Skip to content

Instantly share code, notes, and snippets.

@hanislovingit
Created April 22, 2015 02:57
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 hanislovingit/6fb451fbdd161a41131c to your computer and use it in GitHub Desktop.
Save hanislovingit/6fb451fbdd161a41131c to your computer and use it in GitHub Desktop.
Mapbox-creation-api-tileLayer
// create the url template
var url = 'http://{s}.somedomain.com/blabla/{z}/{x}/{y}.png';
// construct the tile layer using the url template and add it to the map
var tileLayer = L.tileLayer(url, {
zIndex: 10,
maxZoom: 20
}).addTo(map);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment