Merge pull request #4751 from snkashis/remove_mapquest
Remove usage of mapquest tiles from debug pages
This commit is contained in:
commit
c01adbfaa9
@ -23,13 +23,9 @@
|
|||||||
L.Icon.Default.imagePath = 'http://cdn.leafletjs.com/leaflet-0.7.3/images';
|
L.Icon.Default.imagePath = 'http://cdn.leafletjs.com/leaflet-0.7.3/images';
|
||||||
|
|
||||||
|
|
||||||
var tileLayer = L.tileLayer('http://{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png', {
|
var osm = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
|
||||||
attribution: "Map: Tiles Courtesy of MapQuest (OpenStreetMap, CC-BY-SA)",
|
attribution: '© <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',
|
||||||
subdomains: ["otile1", "otile2", "otile3", "otile4"],
|
}).addTo(map);
|
||||||
maxZoom: 12,
|
|
||||||
minZoom: 2
|
|
||||||
});
|
|
||||||
tileLayer.addTo(map);
|
|
||||||
|
|
||||||
L.DomUtil.get('removeAdd').onclick = function() {
|
L.DomUtil.get('removeAdd').onclick = function() {
|
||||||
map.removeLayer(tileLayer);
|
map.removeLayer(tileLayer);
|
||||||
|
@ -58,12 +58,9 @@
|
|||||||
console.log('poly click');
|
console.log('poly click');
|
||||||
});
|
});
|
||||||
|
|
||||||
L.tileLayer('http://{s}.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.png', {
|
var osm = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
|
||||||
attribution: "Map: Tiles Courtesy of MapQuest (OpenStreetMap, CC-BY-SA)",
|
attribution: '© <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',
|
||||||
subdomains: ["otile1","otile2","otile3","otile4"],
|
}).addTo(map);
|
||||||
maxZoom: 12,
|
|
||||||
minZoom: 2
|
|
||||||
}).addTo(map);
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user