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

Omit indigenous lands from park rendering #1019

Merged
merged 2 commits into from
Dec 23, 2023

Conversation

ZeLonewolf
Copy link
Member

As noted in #105, this PR whitelists the allowable class values to render in the park layer only to those features that should be rendered like parks.

const parkLayerFilter = [
"in",
["get", "class"],
["literal", ["nature_reserve", "national_park", "protected_area"]],
Copy link
Member

@1ec5 1ec5 Dec 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class can potentially be anything, based on protection_title taggified. Do we need to include other common values like protected_site and přírodní_památka_(pp)? I think excluding aboriginal_lands would be the safer and more direct fix.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I thought I fixed that but I see that I never finished openmaptiles/openmaptiles#1491, so I'll change that to exclusion

Copy link
Member Author

@ZeLonewolf ZeLonewolf Dec 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed in 9642b23.
I also see now that aboriginal_lands is not differentiated at the lowest zoom so I've also removed park layer rendering from z4 until we can get a fix.

@1ec5 1ec5 changed the title Limit park rendering to nature reserve, national park, protected area Omit indigenous lands from park rendering to nature reserve, national park, protected area Dec 23, 2023
@1ec5 1ec5 changed the title Omit indigenous lands from park rendering to nature reserve, national park, protected area Omit indigenous lands from park rendering Dec 23, 2023
@1ec5 1ec5 added the bug Something isn't working label Dec 23, 2023
@ZeLonewolf ZeLonewolf merged commit e3fd735 into main Dec 23, 2023
6 checks passed
@ZeLonewolf ZeLonewolf deleted the zlw-differentiate-park-class branch December 23, 2023 22:54
@ZeLonewolf ZeLonewolf restored the zlw-differentiate-park-class branch December 24, 2023 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants