隐藏地图的 “Leaflet” 但保留瓦片来源 attribution
This commit is contained in:
@@ -64,6 +64,7 @@ onMounted(async () => {
|
|||||||
maxBoundsViscosity: 1.0,
|
maxBoundsViscosity: 1.0,
|
||||||
worldCopyJump: false,
|
worldCopyJump: false,
|
||||||
}).setView(defaultMapCenter, defaultMapZoom)
|
}).setView(defaultMapCenter, defaultMapZoom)
|
||||||
|
map.attributionControl.setPrefix(false)
|
||||||
applyTileLayer()
|
applyTileLayer()
|
||||||
map.on('click', () => {
|
map.on('click', () => {
|
||||||
closeNodeMenu()
|
closeNodeMenu()
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ onMounted(async () => {
|
|||||||
maxBoundsViscosity: 1.0,
|
maxBoundsViscosity: 1.0,
|
||||||
worldCopyJump: false,
|
worldCopyJump: false,
|
||||||
}).setView([0, 0], 2)
|
}).setView([0, 0], 2)
|
||||||
|
map.attributionControl.setPrefix(false)
|
||||||
applyTileLayer()
|
applyTileLayer()
|
||||||
layer = L.layerGroup().addTo(map)
|
layer = L.layerGroup().addTo(map)
|
||||||
renderTrajectory()
|
renderTrajectory()
|
||||||
|
|||||||
Reference in New Issue
Block a user