隐藏地图的 “Leaflet” 但保留瓦片来源 attribution

This commit is contained in:
2026-06-06 13:21:00 +08:00
parent 1b5cf41576
commit ddf434ef82
2 changed files with 2 additions and 0 deletions
@@ -64,6 +64,7 @@ onMounted(async () => {
maxBoundsViscosity: 1.0,
worldCopyJump: false,
}).setView(defaultMapCenter, defaultMapZoom)
map.attributionControl.setPrefix(false)
applyTileLayer()
map.on('click', () => {
closeNodeMenu()
@@ -77,6 +77,7 @@ onMounted(async () => {
maxBoundsViscosity: 1.0,
worldCopyJump: false,
}).setView([0, 0], 2)
map.attributionControl.setPrefix(false)
applyTileLayer()
layer = L.layerGroup().addTo(map)
renderTrajectory()