Skip to content

Commit

Permalink
feat(landing): Add topo-raster into layer dropdown. BM-1153 (#3382)
Browse files Browse the repository at this point in the history
### Motivation
We need to add topo-raster style into the layer dropdown and have the
labels disabled for it.

### Modifications
Add another hardcode topo-raster style for the layer dropdown. We will
need to clean up all the hardcode category in BM-1154

### Verification

![image](https://github.com/user-attachments/assets/67bd2eac-97f9-41e0-a63b-b788ac5b27e5)
  • Loading branch information
Wentao-Kuang authored Dec 17, 2024
1 parent 45c3611 commit 7f4d1f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/landing/src/components/map.label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { IControl } from 'maplibre-gl';

import { Config, GaEvent, gaEvent } from '../config.js';

export const LabelsDisabledLayers = new Set(['topographic', 'topolite']);
export const LabelsDisabledLayers = new Set(['topographic', 'topolite', 'topo-raster']);

export class MapLabelControl implements IControl {
map?: maplibregl.Map;
Expand Down
7 changes: 7 additions & 0 deletions packages/landing/src/config.map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,13 @@ function addDefaultLayers(output: Map<string, LayerInfo>): void {
category: 'Basemaps',
},

{
id: 'topo-raster::topo-raster',
title: 'NZ Topo Gridless Maps',
projections: new Set([EpsgCode.Nztm2000, EpsgCode.Google]),
category: 'Basemaps',
},

{
id: 'elevation',
title: 'Elevation',
Expand Down

0 comments on commit 7f4d1f7

Please sign in to comment.