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

l7-three 支持 mapbox 底图 #2438

Open
lvisei opened this issue Apr 30, 2024 · 0 comments
Open

l7-three 支持 mapbox 底图 #2438

lvisei opened this issue Apr 30, 2024 · 0 comments
Assignees

Comments

@lvisei
Copy link
Member

lvisei commented Apr 30, 2024

实现逻辑:

https://docs.mapbox.com/mapbox-gl-js/example/add-3d-model/

代码修改处:

private mapboxCamera(): Camera {
const mercatorMatrix = new Matrix4().fromArray(
// @ts-ignore
this.mapService.map.transform.customLayerMatrix(),
);
this.camera.projectionMatrix = mercatorMatrix.multiply(this.cameraTransform);
return this.camera;
}

Originally posted by @lvisei in #2435 (comment)

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

No branches or pull requests

2 participants