diff --git a/CHANGELOG.md b/CHANGELOG.md
index b3622f1..783b167 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@
- added support for specifying host IP address to listen on using the `--host`
option (#138).
+- switched basemaps to [Stamen map tiles](http://maps.stamen.com/) (#148)
## 0.8.2
diff --git a/handlers/templates/map.html b/handlers/templates/map.html
index ed1c945..ebad7bf 100644
--- a/handlers/templates/map.html
+++ b/handlers/templates/map.html
@@ -54,42 +54,32 @@
var basemaps = [
L.tileLayer(
- "//{s}.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}",
+ "https://stamen-tiles.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png",
{
attribution:
- "Tiles © Esri — Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community",
+ 'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.',
subdomains: ["server", "services"],
- label: "ESRI Topo"
+ label: "Stamen Toner Lite"
}
),
L.tileLayer(
- "//server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
+ "https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png",
{
attribution:
- "Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",
- label: "ESRI Imagery"
- }
- ),
- L.tileLayer(
- "//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",
- {
- attribution:
- "Tiles © Esri — Esri, DeLorme, NAVTEQ",
- maxZoom: 16,
+ 'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.',
subdomains: ["server", "services"],
- label: "ESRI Gray"
+ label: "Stamen Toner Lite"
}
),
L.tileLayer(
- "//{s}.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer/tile/{z}/{y}/{x}",
+ "https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png",
{
attribution:
- "Esri, USGS, NGA, NASA, CGIAR, N Robinson, NCEAS, NLS, OS, NMA, Geodatastyrelsen, Rijkswaterstaat, GSA, Geoland, FEMA, Intermap and the GIS user community",
- maxZoom: 23,
+ 'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.',
subdomains: ["server", "services"],
- label: "ESRI Elevation"
+ label: "Stamen Toner Lite"
}
- )
+ ),
];
var map = L.map("Map", {});
diff --git a/handlers/templates/map_gl.html b/handlers/templates/map_gl.html
index 99e0313..e634513 100644
--- a/handlers/templates/map_gl.html
+++ b/handlers/templates/map_gl.html
@@ -31,11 +31,11 @@
var basemapSource = {
type: "raster",
tiles: [
- "//server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}"
+ "https://stamen-tiles.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png"
],
tileSize: 256,
attribution:
- "Tiles © Esri — Source: USGS, Esri, TANA, DeLorme, and NPS"
+ 'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.',
};
var basemapStyle = {
id: "basemap",