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

Limit iD presets via a URL parameter #6553

Closed
quincylvania opened this issue Jun 19, 2019 · 0 comments
Closed

Limit iD presets via a URL parameter #6553

quincylvania opened this issue Jun 19, 2019 · 0 comments
Assignees
Labels
api An issue with the iD API / URL parameters
Milestone

Comments

@quincylvania
Copy link
Collaborator

quincylvania commented Jun 19, 2019

Sometimes tasking managers that link to iD want to limit what presets iD allows by default. We should make this easy via a URL parameter.

While iD currently supports links to MapRules files, this mechanism can be complicated and overkill for many uses. MapRules allows complete preset customization and custom validation rules based on tags. This feature is just about limiting presets.

For example, the following query parameter could suffice to only allow adding buildings and residential roads via their preset IDs:

presets=building,highway/residential

One caveat to keep in mind is that users could accidentally follow one of these links outside of a task and not have full access to iD's presets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api An issue with the iD API / URL parameters
Projects
None yet
Development

No branches or pull requests

1 participant