From 4de76697c41b1d47982f560c50f61587aad7250e Mon Sep 17 00:00:00 2001 From: Alexandr Danilov Date: Thu, 22 Sep 2016 20:17:58 +0300 Subject: [PATCH 1/2] Added MapBox tiled --- code/boot.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/boot.js b/code/boot.js index c9328ce2..95bb98c8 100644 --- a/code/boot.js +++ b/code/boot.js @@ -122,6 +122,14 @@ function createDefaultBaseMapLayers() { //var mqMapOpt = {attribution: osmAttribution+', Tiles Courtesy of MapQuest', maxNativeZoom: 18, maxZoom: 21, subdomains: mqSubdomains}; //baseLayers['MapQuest OSM'] = new L.TileLayer(mqTileUrlPrefix+'/tiles/1.0.0/map/{z}/{x}/{y}.jpg',mqMapOpt); + // MapBox - https://www.mapbox.com/api-documentation/ + // To access the MapBox uses proxy from GNOME Project. + // In the future, this address will be provided improved tiles from the GNOME Project with the fix to display localized labels. + var gnomeStreetUrl = 'https://gis.gnome.org/tiles/street/v1/{z}/{x}/{y}'; + var gnomeAerialUrl = 'https://gis.gnome.org/tiles/satellite/v1/{z}/{x}/{y}'; + baseLayers['MapBox Street'] = L.tileLayer(gnomeStreetUrl); + baseLayers['MapBox Satellite'] = L.tileLayer(gnomeAerialUrl); + // cartodb has some nice tiles too - both dark and light subtle maps - http://cartodb.com/basemaps/ // (not available over https though - not on the right domain name anyway) var cartoAttr = '© OpenStreetMap contributors, © CartoDB'; From b5c62eb77d818563037058fcc13549d730d62777 Mon Sep 17 00:00:00 2001 From: Alexandr Danilov Date: Thu, 22 Sep 2016 20:27:22 +0300 Subject: [PATCH 2/2] Correction of errors in a comment --- code/boot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/boot.js b/code/boot.js index 95bb98c8..5dd4858b 100644 --- a/code/boot.js +++ b/code/boot.js @@ -123,8 +123,8 @@ function createDefaultBaseMapLayers() { //baseLayers['MapQuest OSM'] = new L.TileLayer(mqTileUrlPrefix+'/tiles/1.0.0/map/{z}/{x}/{y}.jpg',mqMapOpt); // MapBox - https://www.mapbox.com/api-documentation/ - // To access the MapBox uses proxy from GNOME Project. - // In the future, this address will be provided improved tiles from the GNOME Project with the fix to display localized labels. + // Access MapBox via the GNOME Project proxy. + // In the future, this URL will provide improved tiles from the GNOME Project with localized labels. var gnomeStreetUrl = 'https://gis.gnome.org/tiles/street/v1/{z}/{x}/{y}'; var gnomeAerialUrl = 'https://gis.gnome.org/tiles/satellite/v1/{z}/{x}/{y}'; baseLayers['MapBox Street'] = L.tileLayer(gnomeStreetUrl);