mirror of
https://github.com/consbio/mbtileserver.git
synced 2024-09-11 07:15:24 +03:00
ENH: Switch to stamen basemaps (#148)
This commit is contained in:
parent
8c663339a5
commit
1220c5da83
@ -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
|
||||
|
||||
|
@ -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 <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',
|
||||
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"
|
||||
'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',
|
||||
subdomains: ["server", "services"],
|
||||
label: "Stamen Toner Lite"
|
||||
}
|
||||
),
|
||||
L.tileLayer(
|
||||
"//{s}.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",
|
||||
"https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png",
|
||||
{
|
||||
attribution:
|
||||
"Tiles © Esri — Esri, DeLorme, NAVTEQ",
|
||||
maxZoom: 16,
|
||||
'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',
|
||||
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}",
|
||||
{
|
||||
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,
|
||||
subdomains: ["server", "services"],
|
||||
label: "ESRI Elevation"
|
||||
}
|
||||
)
|
||||
];
|
||||
|
||||
var map = L.map("Map", {});
|
||||
|
@ -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 <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',
|
||||
};
|
||||
var basemapStyle = {
|
||||
id: "basemap",
|
||||
|
Loading…
Reference in New Issue
Block a user