Skip to content

Commit

Permalink
Fix model position issue on projection change animation
Browse files Browse the repository at this point in the history
  • Loading branch information
sebstryczek committed Dec 15, 2024
1 parent 39f1aa5 commit b7e10e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Layer3D.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b7e10e0

Please sign in to comment.