修改底图颜色
This commit is contained in:
@@ -268,9 +268,8 @@ function initMap() {
|
||||
attributionControl: false
|
||||
})
|
||||
|
||||
L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {
|
||||
maxZoom: 18,
|
||||
subdomains: 'abcd'
|
||||
L.tileLayer('/tiles/tiles/1.0.0/carto_light/EPSG3857/{z}/{x}/{y}.png', {
|
||||
maxZoom: 18
|
||||
}).addTo(map)
|
||||
|
||||
L.control.attribution({ prefix: false, position: 'bottomright' })
|
||||
|
||||
@@ -31,8 +31,9 @@ export default defineConfig({
|
||||
port: 5173,
|
||||
proxy: {
|
||||
'/tiles': {
|
||||
target: 'http://localhost:8080',
|
||||
changeOrigin: true
|
||||
target: 'http://192.168.190.41:8080',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/tiles/, '')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -5,22 +5,22 @@ services:
|
||||
restful: true
|
||||
|
||||
layers:
|
||||
- name: stamen_watercolor
|
||||
title: Stamen Watercolor (Cached)
|
||||
sources: [stamen_watercolor_cache]
|
||||
- name: carto_light
|
||||
title: CartoDB Positron (Cached)
|
||||
sources: [carto_light_cache]
|
||||
|
||||
caches:
|
||||
stamen_watercolor_cache:
|
||||
carto_light_cache:
|
||||
grids: [GLOBAL_WEBMERCATOR]
|
||||
sources: [stamen_watercolor_source]
|
||||
sources: [carto_light_source]
|
||||
cache:
|
||||
type: file
|
||||
directory: /srv/mapproxy/cache_data/stamen_watercolor
|
||||
directory: /srv/mapproxy/cache_data/carto_light
|
||||
|
||||
sources:
|
||||
stamen_watercolor_source:
|
||||
carto_light_source:
|
||||
type: tile
|
||||
url: https://tiles.stadiamaps.com/tiles/stamen_watercolor/%(z)s/%(x)s/%(y)s.jpg
|
||||
url: https://a.basemaps.cartocdn.com/light_all/%(z)s/%(x)s/%(y)s.png
|
||||
grid: GLOBAL_WEBMERCATOR
|
||||
|
||||
grids:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
seeds:
|
||||
stamen_watercolor_seed:
|
||||
caches: [stamen_watercolor_cache]
|
||||
carto_light_seed:
|
||||
caches: [carto_light_cache]
|
||||
grids: [GLOBAL_WEBMERCATOR]
|
||||
coverages: [china_coverage]
|
||||
levels:
|
||||
|
||||
Reference in New Issue
Block a user