Skip to content

Commit

Permalink
refactor(landing): revise logic for showing labels by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tawera-manaena committed Oct 31, 2024
1 parent 15acc70 commit 09904b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/landing/src/config.map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class MapConfig extends Emitter<MapConfigEvents> {
}

get isDebug(): boolean {
return this.debug.debug;
return this.debug.debug === true;
}

/** Map location in WGS84 */
Expand Down Expand Up @@ -146,9 +146,9 @@ export class MapConfig extends Emitter<MapConfigEvents> {
this.layerId = layerId.startsWith('im_') ? layerId.slice(3) : layerId;
this.tileMatrix = tileMatrix;
if (labels == null) {
this.labels = layerId === 'aerial' && !this.debug.debug;
this.labels = layerId === 'aerial' && this.isDebug === false;
} else {
this.labels = labels === 'true';
this.labels = labels !== 'false';
}

if (this.layerId === 'topographic' && this.style == null) this.style = 'topographic';
Expand Down

0 comments on commit 09904b9

Please sign in to comment.