Skip to content

GeoJsonLayer: How to ensure outline of a certain polygon is rendered above all others? #9055

Answered by ibgreen
seb-enovate asked this question in Q&A
Discussion options

You must be logged in to vote

If it is just one polygon you can always use brute force and draw a second GeoJSON layer with just that polygon. There are several techniques to make sure it ends up on top.

  • Setting polygonOffset prop,
  • elevating z axis (by modifying data or via modelMatrix)
  • disabling depthWrite

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@seb-enovate
Comment options

Answer selected by seb-enovate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants