[英]Ability to zoom to an openlayers 6 feature by it's property ID in vue3-openlayers
我有一個數據表,其中包含與 map 上顯示的不同功能有關的信息。 當我單擊該表中的一行時,我想放大到線串幾何圖形的范圍。 我很難找到實現這一目標的方法。 這是我的代碼: 我可以成功獲取所有功能並查看每個功能的 ID,但我正在尋找一種方法來根據其 ID 獲取一個功能,然后在 map 上放大到它。 任何 ...
[英]Ability to zoom to an openlayers 6 feature by it's property ID in vue3-openlayers
我有一個數據表,其中包含與 map 上顯示的不同功能有關的信息。 當我單擊該表中的一行時,我想放大到線串幾何圖形的范圍。 我很難找到實現這一目標的方法。 這是我的代碼: 我可以成功獲取所有功能並查看每個功能的 ID,但我正在尋找一種方法來根據其 ID 獲取一個功能,然后在 map 上放大到它。 任何 ...
[英]Why is ref in onMounted null in vue3?
在setup里面寫是正常的,但是在onMounted里面打印一個null; 是什么原因? 后面不是在兩者之間執行了onMounted,而且dom已經加載好了,為什么反而可以在setup中獲取呢? <script setup lang="ts"> const refDom = ref ...
[英]Why does vue still report jsx errors? Although an error is reported, it can be executed normally. What is the reason?
為什么vue還是報jsx錯誤? 雖然報錯,但是可以正常執行。 是什么原因? <el-submenu index="1"> < const ElMenuItem: unknown JSx element type 'E1MenuItem' does not have any ...
[英]$emit does not add event vue3
我有以下元素,它監聽drawend事件。<ol-interaction-draw ref="test" @drawend="drawend" > 當元素本身正常觸發drawend時,將event傳遞給function:drawend(event) { console.lo ...
[英]How to add style to a feature
我使用 vue3-openlayers 並想將多邊形添加到矢量源。 這是帶有向量層和源向量的模板的一部分。<ol-vector-layer> <ol-source-vector ref="source"></ol-source-vector> </o ...