From b7e10e0d726c290fec0842b2dca094e8d191966c Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 15 Dec 2024 19:31:19 +0100 Subject: [PATCH] Fix model position issue on projection change animation --- src/Layer3D.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Layer3D.ts b/src/Layer3D.ts index 091b631..a310e2e 100644 --- a/src/Layer3D.ts +++ b/src/Layer3D.ts @@ -305,6 +305,10 @@ export class Layer3D implements CustomLayerInterface { return; } + if ([0, 1].includes(options.defaultProjectionData.projectionTransition) === false) { + return; + } + const mapCenter = this.map.getCenter(); const sceneOrigin = new LngLat(mapCenter.lng + EPSILON, mapCenter.lat + EPSILON);