Skip to content

Commit

Permalink
set renderWorldCopies in GlobeTransform, and return it when not isGlo…
Browse files Browse the repository at this point in the history
…beRendering
  • Loading branch information
NathanMOlson committed Nov 9, 2024
1 parent 8555091 commit 963aacb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/geo/projection/globe_transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export class GlobeTransform implements ITransform {
setMaxPitch(pitch: number): void {
this._helper.setMaxPitch(pitch);
}
setRenderWorldCopies(_renderWorldCopies: boolean): void {
setRenderWorldCopies(renderWorldCopies: boolean): void {
this._helper.setRenderWorldCopies(renderWorldCopies);
}
setBearing(bearing: number): void {
this._helper.setBearing(bearing);
Expand Down Expand Up @@ -212,7 +213,7 @@ export class GlobeTransform implements ITransform {
return this._helper.unmodified;
}
get renderWorldCopies(): boolean {
return false;
return this.isGlobeRendering ? false : this._helper.renderWorldCopies;
}

//
Expand Down

0 comments on commit 963aacb

Please sign in to comment.