From eb13f5be1aeda755e2cae6dda561cc89155bd11d Mon Sep 17 00:00:00 2001 From: Wentao Kuang Date: Tue, 17 Dec 2024 13:28:20 +1300 Subject: [PATCH] Add topo-raster into layer selector --- packages/landing/src/components/map.label.tsx | 2 +- packages/landing/src/config.map.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/landing/src/components/map.label.tsx b/packages/landing/src/components/map.label.tsx index 9a94e1711..62b033893 100644 --- a/packages/landing/src/components/map.label.tsx +++ b/packages/landing/src/components/map.label.tsx @@ -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; diff --git a/packages/landing/src/config.map.ts b/packages/landing/src/config.map.ts index 2d0a899fe..23c957462 100644 --- a/packages/landing/src/config.map.ts +++ b/packages/landing/src/config.map.ts @@ -404,6 +404,13 @@ function addDefaultLayers(output: Map): 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',