Skip to content

GeoJson layer: non-visible feature due to z coordinate in orthographic view #5974

Answered by Pessimistress
hoang-ta asked this question in Q&A
Discussion options

You must be logged in to vote

You can try change the near and far parameters of the OrthographicView.

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])
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hoang-ta
Comment options

Answer selected by hoang-ta
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