Skip to content

Commit d01eb6e

Browse files
committed
【feature】fix maplibregl升级到5.6 map.transform.zoomScale不存在; review by luox
1 parent d7fbcbe commit d01eb6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/overlay/threejs/ThreeLayerRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export class ThreeLayerRenderer {
184184
let map = this.map;
185185

186186
let size = this.getMapSize();
187-
let scale = map.transform.zoomScale(projection.nativeMaxZoom - map.getZoom() - 1);
187+
let scale = Math.pow(2, projection.nativeMaxZoom - map.getZoom() - 1);
188188
let fovRatio = Math.tan(map.transform.fov / 2 * RADIAN);
189189

190190
let camera = this.camera;

0 commit comments

Comments
 (0)