-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add symbol-z-order symbol layout property to style spec #7219
Conversation
See #7076 for background on this PR. I can think of two alternatives to adding a new style spec property.
The downside of this PR's approach obviously is a new property on the style-spec which is something we have to be prepared to maintain for awhile. If/when #4361 is implemented, does this feature become obsolete? I feel like symbol sorting by y is a specialized case that users may want a simple way to disable even if they plan on doing further sorting. And of course this concern assumes we eventually implement general sorting. Two further thoughts/questions:
Tagging Carto and Studio into this discussion: @nickidlugash @samanpwbb |
Overall approach looks good to me. I think it's fine to make this a new spec property since it's a straightforward boolean. if/when we take on #4361 we can deprecate or de-emphasize the property.
What about |
Renamed |
Let's make this |
I like this option 👍. Why |
Yep. Makes sense. I'll change this and the native PR over to |
9da7d43
to
75b90cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks right to me! 🚀
"z-order" threw me off at first because it's not controlling z in the GL coordinate sense, but I came around to it as a pretty natural description of what this does.
Ah yeah. I think most front end developers will understand it pretty intuitively as being analogous to the CSS z-index property though. |
75b90cd
to
e8fd41a
Compare
Launch Checklist