Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DLinser opened this issue Apr 25, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@DLinser
Copy link

DLinser commented Apr 25, 2024

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

@DLinser DLinser added the bug Something isn't working label Apr 25, 2024
@d-koppenhagen
Copy link
Collaborator

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

@DLinser
Copy link
Author

DLinser commented Apr 29, 2024

just like this demo
<ol-source-vector :projection="projection"> <ol-interaction-draw v-if="drawEnable" :type="drawType" @drawend="drawend" @drawstart="drawstart" > <ol-style> <ol-style-stroke color="blue" :width="2" /> <ol-style-fill color="rgba(255, 255, 0, 0.4)" /> </ol-style> </ol-interaction-draw> </ol-source-vector>
企业微信截图_17143719181601

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants