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

Implement min/max-zoom render property #517

Merged
merged 6 commits into from
Jul 8, 2014
Merged

Implement min/max-zoom render property #517

merged 6 commits into from
Jul 8, 2014

Conversation

mourner
Copy link
Member

@mourner mourner commented Jul 8, 2014

Implements min-zoom and max-zoom render properties that are respected on both parsing and rendering level. Ref: mapbox/mapbox-gl-style-spec#65

They can be used to achieve specific style goals (e.g. displaying something later than it appears in tile data, or switching between two render types depending on zoom range), and also improve performance (e.g. don't parse/process data earlier than needed).

Max tile zoom level is always processed so that the data is present when the user is on a higher zoom that satisfies min-zoom.

@mourner
Copy link
Member Author

mourner commented Jul 8, 2014

One caveat when designing: you can't switch render types after max tile zoom (e.g. change how POIs are rendered on 16th zoom level), because the map still uses 14z tiles that are never reparsed when you zoom in. @nickidlugash is this a serious issue, e.g. do you need switching render types on higher zoom levels?

ansis added a commit that referenced this pull request Jul 8, 2014
Implement min/max-zoom render property
@ansis ansis merged commit 4af7004 into master Jul 8, 2014
@ansis ansis deleted the style-zoom-range branch July 8, 2014 01:24
lucaswoj pushed a commit that referenced this pull request Jan 11, 2017
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.

2 participants