gpt4 book ai didi

vue.js - 使用 Vue/Nuxt 删除传单属性?

转载 作者:行者123 更新时间:2023-12-04 07:38:42 24 4
gpt4 key购买 nike

我看过一些关于如何删除右下角传单属性的帖子。传单的创建者似乎对此没有意见,所以为了节省空间,我想删除我的。这是一个线程,但不幸的是没有与 Vue 相关的答案。 https://gis.stackexchange.com/questions/192088/how-to-remove-attribution-in-leaflet

我正在使用 nuxt,但如果它是针对 Vue 的,我将不胜感激。l-tile-layer 有一个 attribute-prop 确实可以帮助我添加属性,但是删除它让我意识到属性似乎与 l-map 组件相关联,因为它在没有 tile 层的情况下可见。

TLDR:我想删除“传单”
enter image description here

建议?

最佳答案

使用 Leaflet API,它被这个配置删除。

https://leafletjs.com/reference-1.7.1.html#map-attributioncontrol

L.map('map', {
attributionControl: false
}

使用 vue2-leaflet 似乎可以用 options prop 做同样的事情

https://vue2-leaflet.netlify.app/components/LMap.html#props

<l-map
:options="{attributionControl: false}"
>
...
</l-map>

关于vue.js - 使用 Vue/Nuxt 删除传单属性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67609324/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com