map update
This commit is contained in:
parent
3a47d54380
commit
14c9b8c577
@ -2111,7 +2111,7 @@ input[type="datetime-local"] {
|
||||
padding-left: 7px;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 2px;
|
||||
margin-left: -40%;
|
||||
margin-left: -25%;
|
||||
margin-bottom: 3px;
|
||||
font-weight: bold;
|
||||
font-size: 14px !important;
|
||||
@ -2119,6 +2119,8 @@ input[type="datetime-local"] {
|
||||
|
||||
.marker {
|
||||
cursor: grab !important;
|
||||
top: -35px !important;
|
||||
left: -10px !important;
|
||||
}
|
||||
|
||||
.leaflet-marker-icon {
|
||||
|
@ -443,7 +443,7 @@
|
||||
|
||||
var map = L.map('map').setView([59.855198, 30.282995], 12);
|
||||
|
||||
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);
|
||||
|
||||
map.zoomControl.remove();
|
||||
|
||||
|
@ -106,7 +106,7 @@
|
||||
|
||||
var map = L.map('map').setView(startPoint, 16);
|
||||
|
||||
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 routeStyle = {
|
||||
color: 'red',
|
||||
|
@ -173,7 +173,7 @@
|
||||
|
||||
var map = L.map('map').setView(startPoint, 17);
|
||||
|
||||
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 routeStyle = {
|
||||
color: 'red',
|
||||
|
@ -481,7 +481,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);
|
||||
@ -898,7 +898,7 @@ endVideoTimeInput.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, {
|
||||
|
@ -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, {
|
||||
|
Loading…
Reference in New Issue
Block a user