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

Disable any tags not used in current OSM file #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

hamiltont
Copy link

PR adds a new feature - each time you reload the OSM file, it will scan the file for all tag key/value pairs. Any tag pairs not found will be disabled in the GUI, making it far easier to see what options you could tweak to change the render of this specific OSM datafile. It does not actually change your config settings, e.g. disabled options are not unchecked

IMO this addresses a common problem with OSM data for beginners - the overload of available information

A common problem with OSM is the overload of information that beginners get. Most maps don't use
all of the tags, so this adds an optional button to auto-disable any tags that are not used in your map selection.
This prevents the "click-then-squint" pattern of trying to see what, if anything, changed in the map
I can't think of a reason someone would enable this option, so I just made it the default from now on
The user interface is the only one that actually needs this cache, and it's the
best positioned to understand when it needs to be refreshed (when the file is reloaded).
This commit also handles ensuring we disable the parent items, and also that we don't get a
crash if there are no enabled parents
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

Successfully merging this pull request may close these issues.

1 participant