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

[Feat] MVTLayer Cartesian Coordinates #9355

Open
s-n-i opened this issue Jan 15, 2025 · 0 comments
Open

[Feat] MVTLayer Cartesian Coordinates #9355

s-n-i opened this issue Jan 15, 2025 · 0 comments
Labels

Comments

@s-n-i
Copy link

s-n-i commented Jan 15, 2025

Target Use Case

MVTLayer incorrectly visualizes a vector tile dataset in Cartesian coordinates in OrthographicView.

https://codepen.io/s-n-i/pen/KwPeapW

I would like to make MVTLayer compatible with this use case.

Proposal

Changing the modelMatrix like this results in correct visualization:

s-n-i@4cacc13

https://codepen.io/s-n-i/pen/ZYzRLYX

I was wondering if MVTLayer is already intended to support Cartesian coordinates because it appears to infer a Cartesian coordinate system from !this.context.viewport.resolution in the source code here. If Cartesian coordinates are already intended to be supported, I can change this issue to a bug ticket.

props.coordinateSystem = COORDINATE_SYSTEM.CARTESIAN;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant