Created
March 6, 2012 00:51
-
-
Save nvkelso/1982547 to your computer and use it in GitHub Desktop.
Use Stamen's map tiles in your favorite mapping library, Leaflet version
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
// replace "toner" here with "terrain" or "watercolor" | |
var layer = new L.StamenTileLayer("toner"); | |
var map = new L.Map("element_id", { | |
center: new L.LatLng(37.7, -122.4), | |
zoom: 12 | |
}); | |
map.addLayer(layer); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment