Created
April 22, 2015 02:57
-
-
Save hanislovingit/6fb451fbdd161a41131c to your computer and use it in GitHub Desktop.
Mapbox-creation-api-tileLayer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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