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

Fix z-ordering of extruded features across multiple style layers #3387

Closed
peterqliu opened this issue Oct 14, 2016 · 1 comment
Closed

Fix z-ordering of extruded features across multiple style layers #3387

peterqliu opened this issue Oct 14, 2016 · 1 comment

Comments

@peterqliu
Copy link
Contributor

These are currently true, for extrusions in GL:

  • GL respects three-dimensional space only within the context of a layer: if I draw two extrusions on two layers, one will render in front of the other regardless of my camera angle.

    In 2D maps, layer order was a handy heuristic for z-order, as there'd be no way for the camera to "peer around" the top layer. This is no longer true with the added dimension, and we may need a new way to define and draw what's in front.

  • GL respects feature opacity only between layers: if I draw two translucent extrusions in the same layer, I cannot see through one to the other. Extrusions within each layer are treated as opaque to one another. It's my understanding that this might be a temporary technical limitation, though.

@lucaswoj lucaswoj changed the title Resolving multiple layers in 3D space Fix z-ordering of extruded features across style layers Oct 17, 2016
@lucaswoj lucaswoj changed the title Fix z-ordering of extruded features across style layers Fix z-ordering of extruded features across multiple style layers Oct 17, 2016
@jfirebaugh
Copy link
Contributor

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

No branches or pull requests

2 participants