Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Provide shorthand for list of = filters without using regular expressions #464

Open
nebulon42 opened this issue Jan 20, 2017 · 1 comment

Comments

@nebulon42
Copy link
Collaborator

Instead of having to write e.g.

[type='motorway_link'],
[type='trunk_link'],
[type='primary_link'],
[type='secondary_link'],
[type='tertiary'],
[type='tertiary_link'],
[type='unclassified'],
[type='residential'],
[type='living_street'] {
...
}

allow writing e.g.

[type in 'motorway_link', 'trunk_link', 'primary_link', 'secondary_link',
'tertiary', 'tertiary_link', 'unclassified', 'residential', 'living_street'] {
...
}

Avoid regular expressions because of possible explosion of rules due to #213.

@nebulon42 nebulon42 added this to the 0.18 milestone Jan 20, 2017
@pnorman
Copy link
Contributor

pnorman commented Jan 20, 2017

The main use I see is when combining with another rule to reduce duplication of writing that other rule.

Most of the code I've written that looks like this add another rule add zoom, and zoom isn't constant across the different types of feature so an in construct wouldn't help there.

@nebulon42 nebulon42 modified the milestones: 0.18, 1.0 May 11, 2017
@nebulon42 nebulon42 removed this from the 1.0 milestone Jul 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants