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

Functions for layout properties #361

Closed
mourner opened this issue Apr 9, 2014 · 3 comments · Fixed by #956
Closed

Functions for layout properties #361

mourner opened this issue Apr 9, 2014 · 3 comments · Fixed by #956
Milestone

Comments

@mourner
Copy link
Member

mourner commented Apr 9, 2014

Currently bucket rules can only be static, which means attributes important for point and label placement (fontSize, padding, size, spacing, etc.) are set to a single value through the whole zoom range.

Considering that buckets are parsed individually for each tile, which has a zoom value, we can introduce the same functions we use for other rules to bucket rules, with the only difference that the values will be calculated based on tile zoom as opposed to arbitrary fractional zoom. It is also important in case we ditch buckets in user styles, to be consistent.

This issue extends #317

@mourner mourner added this to the future milestone Jun 24, 2014
@nickidlugash
Copy link

This would be useful for text-offset (and icon-offset) render properties, particularly to transition from symbols with markers + text at low zoom levels to symbols with text only at high zoom levels (like cities with dots) 👍

@lbud
Copy link
Contributor

lbud commented Jan 24, 2015

I assume this would only be for numeric layout properties?

@jfirebaugh
Copy link
Contributor

Yes, for now. Though mapbox/mapbox-gl-style-spec#237 could apply to equally to paint and layout properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants