MelihAltintas / vue3-openlayers

Web map Vue 3.x components with the power of OpenLayers
https://vue3openlayers.netlify.app/
MIT License
679 stars 126 forks source link

composables/useOpenLayersEvents.ts can not get getCurrentInstance without setup function #342

Closed DLinser closed 2 months ago

DLinser commented 5 months ago

Describe the bug It it normal first time. But something wrong happend in the event function like the 'watch'.It is return null

d-koppenhagen commented 5 months ago

Please provide a minimal reporduction repo / stackblitz project to be able to investigate.

DLinser commented 5 months ago

just like this demo ` <ol-interaction-draw v-if="drawEnable" :type="drawType" @drawend="drawend" @drawstart="drawstart"

` 企业微信截图_17143719181601

the getCurrentInstance in 'composables/useOpenLayersEvents.ts' does not effect when you want to change drawType

d-koppenhagen commented 2 months ago

probably related to #361

d-koppenhagen commented 2 months ago

should be fixed with #361