GeoJson layer: non-visible feature due to z coordinate in orthographic view #5974
-
Hello everyone, currently i am displaying GeoJson features with z coordinate in the Orthographic view. My initial view state target is [0,0,800]. You can view my code demo at this sandbox url
1.Display features with z coordinate (I can do this by setting high value for the initial view state target z). I am stuck at number 2 Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can try change the Ultimately, the z does not matter in orthographic view, and you can flatten your data like so import {Matrix4} from 'math.gl';
new GeoJsonLayer({
...
modelMatrix: new Matrix4().scale([1,1,0])
}); |
Beta Was this translation helpful? Give feedback.
You can try change the
near
andfar
parameters of the OrthographicView.Ultimately, the z does not matter in orthographic view, and you can flatten your data like so