From e9b811036a16718993d5c5118eaf4d93e1da77e4 Mon Sep 17 00:00:00 2001 From: fkloft Date: Tue, 12 Jul 2016 09:05:05 +0200 Subject: [PATCH] Disable MapQuest tiles --- code/boot.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/boot.js b/code/boot.js index d64f6d6d..c9328ce2 100644 --- a/code/boot.js +++ b/code/boot.js @@ -115,12 +115,12 @@ function createDefaultBaseMapLayers() { //OpenStreetMap attribution - required by several of the layers osmAttribution = 'Map data © OpenStreetMap contributors'; - //MapQuest offer tiles - http://developer.mapquest.com/web/products/open/map - //their usage policy has no limits (except required notification above 4000 tiles/sec - we're perhaps at 50 tiles/sec based on CloudMade stats) - var mqSubdomains = [ 'otile1','otile2', 'otile3', 'otile4' ]; - var mqTileUrlPrefix = window.location.protocol !== 'https:' ? 'http://{s}.mqcdn.com' : 'https://{s}-s.mqcdn.com'; - 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); + // MapQuest - http://developer.mapquest.com/web/products/open/map + // now requires an API key + //var mqSubdomains = [ 'otile1','otile2', 'otile3', 'otile4' ]; + //var mqTileUrlPrefix = window.location.protocol !== 'https:' ? 'http://{s}.mqcdn.com' : 'https://{s}-s.mqcdn.com'; + //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); // 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)