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

Hiding generic geometry presets in Territory #620

Closed
ximenabb opened this issue Nov 8, 2021 · 0 comments · Fixed by #621
Closed

Hiding generic geometry presets in Territory #620

ximenabb opened this issue Nov 8, 2021 · 0 comments · Fixed by #621
Assignees

Comments

@ximenabb
Copy link

ximenabb commented Nov 8, 2021

Describe the bug
The Mapeo Territory fork of iD editor utilizes generic geometry point/line/area presets, as a fallback for when configurations change and a category is no longer available.

Issue originally raised : https://www.notion.so/digidem/Hiding-generic-geometry-presets-in-Territory-74f3c6784f2c459ea3376e4e6699f05d#7820d5d2c7994eff9f8a242c82ae8a72

All details : https://www.notion.so/digidem/Hiding-generic-geometry-presets-in-Territory-74f3c6784f2c459ea3376e4e6699f05d

Solution:
Hide these presets by hiding their unique class identifiers preset-point preset-line preset-area using CSS. Doing so will accomplish two things:

  1. The generic geometry presets are no longer available as a category option for mapping when creating a feature.

  2. If a feature does get reclassified into one of the generic geometry presets as a fallback due to the original category no longer being available in the config, the generic presets will not be available in the list when changing the category. This forces a user to reclassify the data using only available categories in the config, which is a desirable behavior.

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

Successfully merging a pull request may close this issue.

2 participants