Merge pull request #4751 from snkashis/remove_mapquest

Remove usage of mapquest tiles from debug pages
This commit is contained in:
Steve 2016-07-25 12:57:47 -05:00 committed by GitHub
commit c01adbfaa9
2 changed files with 6 additions and 13 deletions

View File

@ -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: '&copy; <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);

View File

@ -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: '&copy; <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>