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

Create proper entity attribute id for uploaded layer with > 1 layer in map #3196

Closed
jackgrossman18 opened this issue May 13, 2019 · 1 comment
Assignees

Comments

@jackgrossman18
Copy link
Contributor

Describe the bug
When the user attempts to add a new area entity to an uploaded layer, currently, the new osmEntity will be given a negative id. This conflicts with the id of an existing node with the layer that was uploaded.

This is related to a open hoot-ui PR

To Reproduce
Upload two layers to the map then add a new entity feature ( add area ). The node will be placed at the desired location and the location of n-1_(mapId) on the map.

Resolving

Expected behavior
The given node id for the area feature that's being added should take the current index of that layer into consideration, then continue from whatever that number may be.

@jackgrossman18
Copy link
Contributor Author

@brianhatchl @mattjdnv

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

3 participants