Добавил локальную карту
This commit is contained in:
@@ -169,6 +169,10 @@ const baseLayers = {
|
|||||||
'Топографическая': L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {
|
'Топографическая': L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {
|
||||||
maxZoom: 17,
|
maxZoom: 17,
|
||||||
attribution: '© OpenTopoMap'
|
attribution: '© OpenTopoMap'
|
||||||
|
}),
|
||||||
|
'Локальная': L.tileLayer('http://127.0.0.1:8090/styles/basic-preview/512/{z}/{x}/{y}.png', {
|
||||||
|
maxZoom: 19,
|
||||||
|
attribution: 'Local Tiles'
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
attribution: 'Tiles © Esri'
|
attribution: 'Tiles © Esri'
|
||||||
});
|
});
|
||||||
|
|
||||||
const street_local = L.tileLayer('http://127.0.0.1:8080/styles/basic-preview/{z}/{x}/{y}.png', {
|
const street_local = L.tileLayer('http://127.0.0.1:8090/styles/basic-preview/512/{z}/{x}/{y}.png', {
|
||||||
maxZoom: 19,
|
maxZoom: 19,
|
||||||
attribution: 'Local Tiles'
|
attribution: 'Local Tiles'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
attribution: 'Tiles © Esri'
|
attribution: 'Tiles © Esri'
|
||||||
});
|
});
|
||||||
|
|
||||||
const street_local = L.tileLayer('http://127.0.0.1:8080/styles/basic-preview/{z}/{x}/{y}.png', {
|
const street_local = L.tileLayer('http://127.0.0.1:8090/styles/basic-preview/512/{z}/{x}/{y}.png', {
|
||||||
maxZoom: 19,
|
maxZoom: 19,
|
||||||
attribution: 'Local Tiles'
|
attribution: 'Local Tiles'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
attribution: 'Tiles © Esri'
|
attribution: 'Tiles © Esri'
|
||||||
});
|
});
|
||||||
|
|
||||||
const street_local = L.tileLayer('http://127.0.0.1:8080/styles/basic-preview/{z}/{x}/{y}.png', {
|
const street_local = L.tileLayer('http://127.0.0.1:8090/styles/basic-preview/512/{z}/{x}/{y}.png', {
|
||||||
maxZoom: 19,
|
maxZoom: 19,
|
||||||
attribution: 'Local Tiles'
|
attribution: 'Local Tiles'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -193,7 +193,7 @@
|
|||||||
attribution: 'Tiles © Esri'
|
attribution: 'Tiles © Esri'
|
||||||
});
|
});
|
||||||
|
|
||||||
const street_local = L.tileLayer('http://127.0.0.1:8080/styles/basic-preview/{z}/{x}/{y}.png', {
|
const street_local = L.tileLayer('http://127.0.0.1:8090/styles/basic-preview/512/{z}/{x}/{y}.png', {
|
||||||
maxZoom: 19,
|
maxZoom: 19,
|
||||||
attribution: 'Local Tiles'
|
attribution: 'Local Tiles'
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
const satellite = L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {
|
const satellite = L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {
|
||||||
attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
|
attribution: 'Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community'
|
||||||
});
|
});
|
||||||
const street_local = L.tileLayer('http://127.0.0.1:8080/styles/basic-preview/{z}/{x}/{y}.png', {
|
const street_local = L.tileLayer('http://127.0.0.1:8090/styles/basic-preview/512/{z}/{x}/{y}.png', {
|
||||||
maxZoom: 19,
|
maxZoom: 19,
|
||||||
attribution: 'Local Tiles'
|
attribution: 'Local Tiles'
|
||||||
});
|
});
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
const baseLayers = {
|
const baseLayers = {
|
||||||
"Улицы": street,
|
"Улицы": street,
|
||||||
"Спутник": satellite,
|
"Спутник": satellite,
|
||||||
// "Локально": street_local
|
"Локально": street_local
|
||||||
};
|
};
|
||||||
L.control.layers(baseLayers).addTo(map);
|
L.control.layers(baseLayers).addTo(map);
|
||||||
map.setMaxZoom(18);
|
map.setMaxZoom(18);
|
||||||
|
|||||||
@@ -70,6 +70,19 @@ services:
|
|||||||
- LOG_HTML=false
|
- LOG_HTML=false
|
||||||
- CAPTCHA_SOLVER=none
|
- CAPTCHA_SOLVER=none
|
||||||
|
|
||||||
|
tileserver:
|
||||||
|
image: maptiler/tileserver-gl:latest
|
||||||
|
container_name: tileserver-gl
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "8090:8080"
|
||||||
|
volumes:
|
||||||
|
- ./tileserver_data:/data
|
||||||
|
- tileserver_config:/config
|
||||||
|
environment:
|
||||||
|
- VERBOSE=true
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
static_volume:
|
static_volume:
|
||||||
|
tileserver_config
|
||||||
@@ -52,24 +52,24 @@ services:
|
|||||||
# networks:
|
# networks:
|
||||||
# - app-network
|
# - app-network
|
||||||
|
|
||||||
# tileserver:
|
tileserver:
|
||||||
# image: maptiler/tileserver-gl:latest
|
image: maptiler/tileserver-gl:latest
|
||||||
# container_name: tileserver-gl-dev
|
container_name: tileserver-gl-dev
|
||||||
# restart: unless-stopped
|
restart: unless-stopped
|
||||||
# ports:
|
ports:
|
||||||
# - "8080:8080"
|
- "8090:8080"
|
||||||
# volumes:
|
volumes:
|
||||||
# - ./tiles:/data
|
- /mnt/c/Users/I/Documents/TileServer:/data
|
||||||
# - tileserver_config_dev:/config
|
- tileserver_config_dev:/config
|
||||||
# environment:
|
environment:
|
||||||
# - VERBOSE=true
|
- VERBOSE=true
|
||||||
# networks:
|
# networks:
|
||||||
# - app-network
|
# - app-network
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
redis_data:
|
redis_data:
|
||||||
# tileserver_config_dev:
|
tileserver_config_dev:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
app-network:
|
app-network:
|
||||||
|
|||||||
Reference in New Issue
Block a user