隐藏地图的 “Leaflet” 但保留瓦片来源 attribution
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user