Replace discontinued MapQuest Open tiles by OpenStreetMap.org tiles #500

This commit is contained in:
Frédéric Rodrigo
2016-07-08 09:40:37 +02:00
parent ab3794976d
commit 3df0c2a2bb
3 changed files with 12 additions and 12 deletions

10
dist/recline.js vendored
View File

@@ -2282,16 +2282,16 @@ my.Map = Backbone.View.extend({
// Private: Sets up the Leaflet map control and the features layer. // Private: Sets up the Leaflet map control and the features layer.
// //
// The map uses a base layer from [MapQuest](http://www.mapquest.com) based // The map uses a base layer from [OpenStreetMap.org](http://openstreetmap.org) based
// on [OpenStreetMap](http://openstreetmap.org). // on [OpenStreetMap data](http://openstreetmap.org).
// //
_setupMap: function(){ _setupMap: function(){
var self = this; var self = this;
this.map = new L.Map(this.$map.get(0)); this.map = new L.Map(this.$map.get(0));
var mapUrl = "http://otile{s}-s.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png"; var mapUrl = "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
var osmAttribution = 'Map data &copy; 2011 OpenStreetMap contributors, Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'; var osmAttribution = '©<a href="http://openstreetmap.org" target="_blank">OpenStreetMap</a> contributors';
var bg = new L.TileLayer(mapUrl, {maxZoom: 18, attribution: osmAttribution ,subdomains: '1234'}); var bg = new L.TileLayer(mapUrl, {maxZoom: 19, attribution: osmAttribution});
this.map.addLayer(bg); this.map.addLayer(bg);
this.markers = new L.MarkerClusterGroup(this._clusterOptions); this.markers = new L.MarkerClusterGroup(this._clusterOptions);

View File

@@ -1016,8 +1016,8 @@ extent if none.</p>
<a class="pilcrow" href="#section-38">&#182;</a> <a class="pilcrow" href="#section-38">&#182;</a>
</div> </div>
<p>Private: Sets up the Leaflet map control and the features layer.</p> <p>Private: Sets up the Leaflet map control and the features layer.</p>
<p>The map uses a base layer from <a href="http://www.mapquest.com">MapQuest</a> based <p>The map uses a base layer from <a href="http://www.openstreetmap.org">OpenStreetMap</a> based
on <a href="http://openstreetmap.org">OpenStreetMap</a>.</p> on <a href="http://openstreetmap.org">OpenStreetMap data</a>.</p>
</div> </div>

View File

@@ -454,16 +454,16 @@ my.Map = Backbone.View.extend({
// Private: Sets up the Leaflet map control and the features layer. // Private: Sets up the Leaflet map control and the features layer.
// //
// The map uses a base layer from [MapQuest](http://www.mapquest.com) based // The map uses a base layer from [OpenStreetMap.org](http://openstreetmap.org) based
// on [OpenStreetMap](http://openstreetmap.org). // on [OpenStreetMap data](http://openstreetmap.org).
// //
_setupMap: function(){ _setupMap: function(){
var self = this; var self = this;
this.map = new L.Map(this.$map.get(0)); this.map = new L.Map(this.$map.get(0));
var mapUrl = "http://otile{s}-s.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png"; var mapUrl = "http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
var osmAttribution = 'Map data &copy; 2011 OpenStreetMap contributors, Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img src="http://developer.mapquest.com/content/osm/mq_logo.png">'; var osmAttribution = '©<a href="http://openstreetmap.org" target="_blank">OpenStreetMap</a> contributors';
var bg = new L.TileLayer(mapUrl, {maxZoom: 18, attribution: osmAttribution ,subdomains: '1234'}); var bg = new L.TileLayer(mapUrl, {maxZoom: 19, attribution: osmAttribution});
this.map.addLayer(bg); this.map.addLayer(bg);
this.markers = new L.MarkerClusterGroup(this._clusterOptions); this.markers = new L.MarkerClusterGroup(this._clusterOptions);