Skip to content

Commit 115f36c

Browse files
Add better key
1 parent 216b913 commit 115f36c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/layers/layerDefinitions.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const linzTopo: TileLayerDefinition =
3333
},
3434
};
3535

36+
const LINZ_BASEMAPS = 'd01fbtg0ar3v159zx4e0ajt0n09'
3637
export const layerDefinitions: TileLayerDefinition[] = [
3738
linzTopo,
3839
{
@@ -52,7 +53,7 @@ export const layerDefinitions: TileLayerDefinition[] = [
5253
description: "High resolution imagery of New Zealand, provided by LINZ",
5354
type: 'base',
5455
url: ([z,x,y]: TileCoord) => {
55-
return `https://basemaps.linz.govt.nz/v1/tiles/aerial/EPSG:3857/${z}/${x}/${y}.webp?api=d01fbtg0ar3v159zx4e0ajt0n09`;
56+
return `https://basemaps.linz.govt.nz/v1/tiles/aerial/EPSG:3857/${z}/${x}/${y}.webp?api=${LINZ_BASEMAPS}`;
5657
}
5758
},
5859
{
@@ -61,6 +62,6 @@ export const layerDefinitions: TileLayerDefinition[] = [
6162
type: 'overlay',
6263
defaultVisible: true,
6364
minZoom: 10,
64-
url: 'https://basemaps.linz.govt.nz/v1/tiles/geographx-nz-dem-2012-8m/WebMercatorQuad/{z}/{x}/{y}.webp?api=c01hvn7wv0004d4njsf6rwk1t7p',
65+
url: `https://basemaps.linz.govt.nz/v1/tiles/geographx-nz-dem-2012-8m/WebMercatorQuad/{z}/{x}/{y}.webp?api=${LINZ_BASEMAPS}`,
6566
},
6667
]

0 commit comments

Comments
 (0)