Skip to content
This repository has been archived by the owner on Apr 10, 2018. It is now read-only.

layout property for sorting symbols #274

Closed
ansis opened this issue Apr 7, 2015 · 2 comments
Closed

layout property for sorting symbols #274

ansis opened this issue Apr 7, 2015 · 2 comments

Comments

@ansis
Copy link
Contributor

ansis commented Apr 7, 2015

We need some property to control whether symbols are sorted so that we can implement mapbox/mapbox-gl-native#988.

With the new labeling this is easy to implement: mapbox/mapbox-gl-js@5bf094f

Do we want to support sorting in any direction?

The property could be a

angle

"symbol-sort": 0 would sort bottom-up and "symbol-sort": 90 would sort left-to-right

enum

"symbol-sort": "y-ascending" or something

boolean

"symbol-sort-y": true

@jfirebaugh
Copy link
Contributor

Is a style property necessary? What if symbols always sort top to bottom relative to the viewport?

@ansis
Copy link
Contributor Author

ansis commented Apr 7, 2015

Always sorting sounds good to me.

Should sorting only affect draw order and not placement order?

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

No branches or pull requests

2 participants