Skip to content

Commit

Permalink
Fix the wrong tileset id when only style parameter been set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentao-Kuang committed May 1, 2024
1 parent 766f92b commit a2cd2a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/landing/src/config.map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export class MapConfig extends Emitter<MapConfigEvents> {
const urlParams = new URLSearchParams(search);
const style = urlParams.get('s') ?? urlParams.get('style');
const config = urlParams.get('c') ?? urlParams.get('config');
const layerId = urlParams.get('i') ?? 'aerial';
const layerId = urlParams.get('i') ?? style ?? 'aerial';
const date = this.getDateRangeFromUrl(urlParams);
if (this.filter.date.before !== date.before) {
this.filter.date = date;
Expand Down

0 comments on commit a2cd2a7

Please sign in to comment.