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

ol-interaction-modify sample at vue3openlayers.netlify.app doesn't work properly. It doesn't leave the mode of drawing polygons #186

Closed
teodorro opened this issue Apr 20, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@teodorro
Copy link

An example at https://vue3openlayers.netlify.app/componentsguide/interactions/modify/ doesn't work properly.
How to reproduce:

  1. Click the button above the map that change drawing mode to true.
  2. Draw a new polygon
  3. After a double click polygon will be finished and the drawing mode will be changed to false.
    => However now if you start clicking on the map, you will still be drawing a polygon. Selection won't work, the first you've drawn is selected. Dbl click will only make a new polygon disappear.
    image
@teodorro teodorro added the bug Something isn't working label Apr 20, 2023
@Oleg72pc
Copy link

Looks like OlModifyInteraction.vue has same issue:
sometimes it does not remove old modify object from interactions, and it stays in modify mode even after OlModifyInteraction.vue was unmounted

@d-koppenhagen
Copy link
Collaborator

Have you tried using the latest next release? npm i vue3-openlayers@next

@Oleg72pc
Copy link

it helped, thanks

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

3 participants