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

Deleting individual points in vector layer not possible #34

Open
muellerflorian opened this issue Dec 2, 2020 · 2 comments
Open

Deleting individual points in vector layer not possible #34

muellerflorian opened this issue Dec 2, 2020 · 2 comments

Comments

@muellerflorian
Copy link
Contributor

When adding a vector layer, it is possible to delete individual shapes (e.g. for rectangles) by choosing the Select/Modify tool.

However, for points this is not possible. when trying to delete an individual point nothing happens. In the console log, the following error is shown

Vector.js:906 Uncaught TypeError: Cannot read property 'forEach' of undefined
    at e.removeFeatureInternal (Vector.js:906)
    at e.removeFeature (Vector.js:896)
    at VectorLayer.vue:573
    at e.forEach (Collection.js:136)
    at a.deleteDraw (VectorLayer.vue:572)
    at a.keyHandler (VectorLayer.vue:433)

Deleting all points with the Cursor tool is possible.

@oeway
Copy link
Collaborator

oeway commented Dec 3, 2020

I just tried to delete with the Select/Modify tool and it seems work:
xdiVfEB2Os

One possible issue might be that you didn't zoom in enough to select the point.

@oeway
Copy link
Collaborator

oeway commented Dec 7, 2020

It appears that this bug only happens on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants