HTML JavaScript CSS Other
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
css Merge pull request #76 from stamen/donate-links Aug 3, 2016
images New copy/image for Mars map. Jun 3, 2013
js Feedback form replaced with link to new issue page, #18 Aug 3, 2016
maker UI buttons Jun 6, 2013
terrain-background switch to repo based bug reporting for #18 Aug 4, 2016
terrain-labels switch to repo based bug reporting for #18 Aug 4, 2016
terrain-lines switch to repo based bug reporting for #18 Aug 4, 2016
terrain switch to repo based bug reporting for #18 Aug 4, 2016
test Changed the method for extending Google ImageMapType class, #69 Jul 1, 2015
toner-2010 switch to repo based bug reporting for #18 Aug 4, 2016
toner-2011 switch to repo based bug reporting for #18 Aug 4, 2016
toner-background switch to repo based bug reporting for #18 Aug 4, 2016
toner-hybrid switch to repo based bug reporting for #18 Aug 4, 2016
toner-labels switch to repo based bug reporting for #18 Aug 4, 2016
toner-lines switch to repo based bug reporting for #18 Aug 4, 2016
toner-lite switch to repo based bug reporting for #18 Aug 4, 2016
toner switch to repo based bug reporting for #18 Aug 4, 2016
trees-cabs-crime switch to repo based bug reporting for #18 Aug 4, 2016
watercolor switch to repo based bug reporting for #18 Aug 4, 2016
.gitignore ignore config.ini Oct 22, 2012
.htaccess prevent evildoers from reading config.ini Oct 22, 2012
BingSiteAuth.xml Webmaster tools May 9, 2016
LICENSE BSD license Aug 19, 2013
Makefile Makefile for updating the version Nov 20, 2013
README.markdown updated docs Jun 29, 2012
embeds.html embed testing Mar 10, 2012
googled680f00dad5fb632.html Webmaster tools May 9, 2016
index.html use ODbL for Terrain now Aug 10, 2016
version.sh don't automatically do it to all the HTML files Jun 29, 2012

README.markdown

This is the code behind the Stamen maps site, which shows off our custom tiles and explains how to get them into other sites.

This repository also hosts a JavaScript utility which patches other map libraries to provide Stamen tile layers. Simply grab a copy of js/tile.stamen.js (or link directly to it at http://maps.stamen.com/js/tile.stamen.js) and include it on your page after your favorite mapping library, then follow the instructions below:

ModestMaps:

var map = new MM.Map(...);
var layer = new MM.StamenTileLayer("toner");
map.addLayer(layer);

Leaflet:

var map = new L.Map(...);
var layer = new L.StamenTileLayer("terrain");
map.addLayer(layer);

OpenLayers:

var map = new OpenLayers.Map(...);
var layer = new OpenLayers.Layer.Stamen("watercolor");
map.addLayer(layer);

Google Maps V3:

var map = new google.maps.Map(...);
map.mapTypes.set("toner", new google.maps.StamenMapType("toner"));
map.setMapTypeId("toner");