From ca77d52db7f64fe5269e79dc62eb41560c333fa4 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Thu, 2 Apr 2015 01:03:45 +0200 Subject: [PATCH] update available map styles --- js/map.js | 42 ++++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) diff --git a/js/map.js b/js/map.js index 2532a03..10137f3 100644 --- a/js/map.js +++ b/js/map.js @@ -14,9 +14,10 @@ var gCurLocColor = "#A00000"; var gMapStyles = { // OSM tile usage policy: http://wiki.openstreetmap.org/wiki/Tile_usage_policy // Find some more OSM ones at http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Tile_servers + // and http://wiki.openstreetmap.org/wiki/Tiles or http://wiki.openstreetmap.org/wiki/TMS osm_mapnik: {name: "OpenStreetMap (Mapnik)", - url: "http://tile.openstreetmap.org/{z}/{x}/{y}.png", + url: "http://[a-c].tile.openstreetmap.org/{z}/{x}/{y}.png", copyright: 'Map data and imagery © OpenStreetMap contributors, ODbL/CC-BY-SA'}, osm_cyclemap: {name: "Cycle Map (OSM)", @@ -26,22 +27,42 @@ var gMapStyles = { {name: "Transport Map (OSM)", url: "http://[a-c].tile2.opencyclemap.org/transport/{z}/{x}/{y}.png", copyright: 'Map data and imagery © OpenStreetMap contributors, ODbL/CC-BY-SA'}, + osm_germany: + {name: "OSM German Style", + url: "http://[a-d].tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png", + copyright: 'Map data and imagery © OpenStreetMap contributors, ODbL/CC-BY-SA'}, +// oepnvkarte: // XXX: toolserver.org does not support CORS at this time :( +// {name: "ÖPNV-Karte (OSM)", +// url: "http://toolserver.org/~cmarqu/hill/{z}/{x}/{y}.png", +// copyright: 'Map data © OpenStreetMap contributors, ODbL/CC-BY-SA, tiles by MeMoMaps under CC-BY-SA.'}, mapquest_open: {name: "MapQuest OSM", url: "http://otile[1-4].mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png", - copyright: 'Map data © OpenStreetMap and contributors (ODbL/CC-BY-SA), tiles Courtesy of MapQuest.'}, + copyright: 'Map data © OpenStreetMap and contributors (ODbL/CC-BY-SA), tiles courtesy of MapQuest.'}, mapquest_aerial: {name: "MapQuest Open Aerial", url: "http://otile[1-4].mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg", copyright: 'Tiles Courtesy of MapQuest, portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency.'}, - opengeoserver_arial: - {name: "OpenGeoServer Aerial", - url: "http://services.opengeoserver.org/tiles/1.0.0/globe.aerial_EPSG3857/{z}/{x}/{y}.png?origin=nw", - copyright: 'Tiles by OpenGeoServer.org, CC-BY 3.0 AT.'}, - google_map: - {name: "Google Maps", - url: " http://mt1.google.com/vt/x={x}&y={y}&z={z}", - copyright: 'Map data and imagery © Google'}, + osm_hot: + {name: "OSM HOT style", + url: "http://[a-c].tile.openstreetmap.fr/hot/{z}/{x}/{y}.png", + copyright: 'Map data and imagery © OpenStreetMap contributors, ODbL/CC-BY-SA'}, +// hikebike: // XXX: toolserver.org does not support CORS at this time :( +// {name: "Hike and Bike (OSM)", +// url: "http://toolserver.org/tiles/hikebike/{z}/{x}/{y}.png", +// copyright: 'Map data and imagery © OpenStreetMap contributors, ODbL/CC-BY-SA'}, + stamen_toner: + {name: "Stamen Toner (B+W, OSM)", + url: "http://[a-c].tile.stamen.com/toner/{z}/{x}/{y}.jpg", + copyright: 'Map data © OpenStreetMap contributors, ODbL/CC-BY-SA, tiles by Stamen Design, under CC BY 3.0.'}, + stamen_terrain: + {name: "Stamen Terrain (USA only, OSM)", + url: "http://[a-c].tile.stamen.com/terrain/{z}/{x}/{y}.jpg", + copyright: 'Map data © OpenStreetMap contributors, ODbL/CC-BY-SA, tiles by Stamen Design, under CC BY 3.0.'}, + stamen_watercolor: + {name: "Stamen Watercolor (artistic, OSM)", + url: "http://[a-c].tile.stamen.com/watercolor/{z}/{x}/{y}.jpg", + copyright: 'Map data © OpenStreetMap contributors, ODbL/CC-BY-SA, tiles by Stamen Design, under CC BY 3.0.'}, }; var gLastMouseX = 0; @@ -1173,6 +1194,7 @@ var gTileService = { .replace("{y}", norm.y) .replace("{z}", norm.z) .replace("[a-c]", String.fromCharCode(97 + Math.floor(Math.random() * 3))) + .replace("[a-d]", String.fromCharCode(97 + Math.floor(Math.random() * 4))) .replace("[1-4]", 1 + Math.floor(Math.random() * 4)), true); XHR.responseType = "blob"; -- 2.35.3