PolygonLayer is missing when zoom in #5344
Answered
by
Pessimistress
sunyonglincanada
asked this question in
Q&A
-
Hi there, I've tried to use PolygonLayer but found the layer is missing with the negative value for z in the data when zooming in. It works well with non-negative value for z. Here is the codepen: https://codepen.io/sunyonglincanada/pen/WNGLKqg Can you please take a look? Thanks!! |
Beta Was this translation helpful? Give feedback.
Answered by
Pessimistress
Jan 16, 2021
Replies: 1 comment 1 reply
-
The default far clipping plane of MapView is placed on the ground. You need to adjust farZMultiplier when working with negative altitude. See example here: https://github.com/visgl/deck.gl/blob/8.3-release/examples/website/data-filter/app.js#L20 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sunyonglincanada
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The default far clipping plane of MapView is placed on the ground. You need to adjust farZMultiplier when working with negative altitude. See example here: https://github.com/visgl/deck.gl/blob/8.3-release/examples/website/data-filter/app.js#L20