map update

This commit is contained in:
Ivan
2023-10-03 16:16:38 +03:00
parent 3a47d54380
commit 14c9b8c577
6 changed files with 10 additions and 8 deletions

View File

@ -451,7 +451,7 @@ async function sendPostRequest() {
});
// Добавляем слой с плитками OpenStreetMap
L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}').addTo(map);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
// Создаем слой для маршрута
const routeLayer = L.layerGroup().addTo(map);
@ -717,7 +717,7 @@ videoTimeInput.addEventListener("blur", sendPostRequest);
map = L.map('map').setView([59.855198, 30.282995], 10);
// Добавляем базовый слой OpenStreetMap
L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}').addTo(map);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
// Создаем маркеры
var startMarker = L.marker(startPoint, {