From a6dcc4a27748161b125791907dd516a4984172a5 Mon Sep 17 00:00:00 2001 From: ghybs Date: Thu, 14 Jul 2016 04:20:10 +0400 Subject: [PATCH 1/2] Replaced deprecated MapQuest tile layer by OSM The basic demo is "broken" due to MapQuest having discontinued the direct access to their tiles (including to Open MapQuest), as of 11-July-2016. http://devblog.mapquest.com/2016/06/15/modernization-of-mapquest-results-in-changes-to-open-tile-access/ Simply replaced the tiles provider by OSM Sweden, as the 2 other demos. --- examples/example.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/example.html b/examples/example.html index 8e41995..70f900e 100644 --- a/examples/example.html +++ b/examples/example.html @@ -21,11 +21,11 @@ center: [58.0, -11.0], zoom: 4, layers: [ - new L.TileLayer('http://otile{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png', { - attribution: 'Tiles Courtesy of MapQuest — Map data © OpenStreetMap contributors', - maxZoom: 18, - subdomains: '1234' - }) + new L.tileLayer('http://{s}.tile.openstreetmap.se/hydda/full/{z}/{x}/{y}.png', { + minZoom: 0, + maxZoom: 18, + attribution: 'Tiles courtesy of OpenStreetMap Sweden — Map data © OpenStreetMap contributors, CC-BY-SA' + }) ] }); From b5736509e6997743517ce662171ac42c0ac4ff32 Mon Sep 17 00:00:00 2001 From: ghybs Date: Thu, 14 Jul 2016 04:22:03 +0400 Subject: [PATCH 2/2] Removed unnecessary `new` before `L.tileLayer` since it is now the factory instead of the constructor --- examples/example.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/example.html b/examples/example.html index 70f900e..439b6af 100644 --- a/examples/example.html +++ b/examples/example.html @@ -21,7 +21,7 @@ center: [58.0, -11.0], zoom: 4, layers: [ - new L.tileLayer('http://{s}.tile.openstreetmap.se/hydda/full/{z}/{x}/{y}.png', { + L.tileLayer('http://{s}.tile.openstreetmap.se/hydda/full/{z}/{x}/{y}.png', { minZoom: 0, maxZoom: 18, attribution: 'Tiles courtesy of OpenStreetMap Sweden — Map data © OpenStreetMap contributors, CC-BY-SA'