Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jcolot committed Jan 14, 2025
1 parent d9494b5 commit 77d97c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geo/projection/globe_transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,13 +404,13 @@ export class GlobeTransform implements ITransform {
* Note: automatically adjusts zoom to keep planet size consistent
* (same size before and after a {@link setLocationAtPoint} call).
*/
setLocationAtPoint(lnglat: LngLat, point: Point, keeBearing = false): void {
setLocationAtPoint(lnglat: LngLat, point: Point, keepBearingFixed = true): void {
if (!this.isGlobeRendering) {
this._mercatorTransform.setLocationAtPoint(lnglat, point);
this.apply(this._mercatorTransform);
return;
}
this._verticalPerspectiveTransform.setLocationAtPoint(lnglat, point, keeBearing);
this._verticalPerspectiveTransform.setLocationAtPoint(lnglat, point, keepBearingFixed);
this.apply(this._verticalPerspectiveTransform);
return;
}
Expand Down

0 comments on commit 77d97c5

Please sign in to comment.