From a1fdaff79bab2479c0d74b65c33f1cee2095f5a8 Mon Sep 17 00:00:00 2001 From: Jim O'Donnell Date: Wed, 12 Jun 2024 12:27:44 +0100 Subject: [PATCH] refactor(frontend): remove base map layers (#38) Since the move to vector base maps, the old base map labels layer isn't used any more. --- .../src/config/deck-layers/labels-layer.ts | 26 ------------------- 1 file changed, 26 deletions(-) delete mode 100644 frontend/src/config/deck-layers/labels-layer.ts diff --git a/frontend/src/config/deck-layers/labels-layer.ts b/frontend/src/config/deck-layers/labels-layer.ts deleted file mode 100644 index 7a41dbcb..00000000 --- a/frontend/src/config/deck-layers/labels-layer.ts +++ /dev/null @@ -1,26 +0,0 @@ -import GL from '@luma.gl/constants'; - -import { rasterTileLayer } from 'lib/deck/layers/raster-tile-layer'; - -export function labelsLayer(isRetina: boolean) { - const scale = isRetina ? '@2x' : ''; - - return rasterTileLayer( - { - [GL.TEXTURE_MAG_FILTER]: GL.NEAREST, - transparentColor: [255, 255, 255, 0], - }, - { - id: 'labels', - tileSize: 256, - data: [ - `https://a.basemaps.cartocdn.com/light_only_labels/{z}/{x}/{y}${scale}.png`, - `https://b.basemaps.cartocdn.com/light_only_labels/{z}/{x}/{y}${scale}.png`, - `https://c.basemaps.cartocdn.com/light_only_labels/{z}/{x}/{y}${scale}.png`, - `https://d.basemaps.cartocdn.com/light_only_labels/{z}/{x}/{y}${scale}.png`, - ], - refinementStrategy: 'no-overlap', - getPolygonOffset: ({ layerIndex }) => [0, -layerIndex * 100 - 2000], - }, - ); -}