antvis / L7

🌎 Large-scale WebGL-powered Geospatial Data Visualization analysis engine.

Home Page:https://l7.antv.antgroup.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

l7-three 支持 mapbox 底图

lvisei opened this issue · comments

实现逻辑:

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)