修改底图颜色
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/, '')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user