Use preferred tile.openstreetmap.org URL

This commit is contained in:
Edward Betts 2023-11-01 20:58:44 +00:00
parent 5e8d1a99b0
commit eaca7a93bc
4 changed files with 4 additions and 4 deletions

View file

@ -1823,7 +1823,7 @@ export default {
}; };
var map = L.map("map", options); var map = L.map("map", options);
var osm_url = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"; var osm_url = "https://tile.openstreetmap.org/{z}/{x}/{y}.png";
var tile_url = "https://tile-c.openstreetmap.fr/hot/{z}/{x}/{y}.png"; var tile_url = "https://tile-c.openstreetmap.fr/hot/{z}/{x}/{y}.png";
var osm = L.tileLayer(osm_url, { var osm = L.tileLayer(osm_url, {
maxZoom: 19, maxZoom: 19,

View file

@ -2,7 +2,7 @@
var map = L.map('map'); var map = L.map('map');
var tiles = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'); var tiles = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png');
var group = L.featureGroup(); var group = L.featureGroup();
map.addLayer(group); map.addLayer(group);
tiles.addTo(map); tiles.addTo(map);

View file

@ -110,7 +110,7 @@ if (!start_lat || !start_lng) {
]); ]);
} }
var osm = L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { var osm = L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", {
maxZoom: 19, maxZoom: 19,
}); });

View file

@ -18,7 +18,7 @@ if (!user_lat || !user_lon) {
} }
// Add OpenStreetMap layer // Add OpenStreetMap layer
var osm = L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { maxZoom: 18 }); var osm = L.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png", { maxZoom: 18 });
osm.addTo(map); osm.addTo(map);