From 598619d119bcedd62b5c8ad428bdcfaaacb2df63 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Wed, 27 Nov 2024 18:03:04 +0000 Subject: [PATCH] feat: add custom baselayer with oam logo --- src/mapper/src/assets/images/oam-logo.svg | 36 +++++++++++++++++++++++ src/mapper/src/constants/baseLayers.ts | 29 ++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 src/mapper/src/assets/images/oam-logo.svg diff --git a/src/mapper/src/assets/images/oam-logo.svg b/src/mapper/src/assets/images/oam-logo.svg new file mode 100644 index 0000000000..c96a2549f3 --- /dev/null +++ b/src/mapper/src/assets/images/oam-logo.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/mapper/src/constants/baseLayers.ts b/src/mapper/src/constants/baseLayers.ts index 19708fedef..1cb3658523 100644 --- a/src/mapper/src/constants/baseLayers.ts +++ b/src/mapper/src/constants/baseLayers.ts @@ -1,3 +1,5 @@ +import oamLogo from '$assets/images/oam-logo.svg'; + export const osmStyle = { id: 'OSM Raster', version: 8, @@ -105,4 +107,31 @@ let satellite = { ], }; +export const customStyle = { + id: 'Custom', + version: 8, + name: 'Custom', + metadata: { + thumbnail: oamLogo, + }, + sources: { + custom: { + type: 'raster', + url: '', + tileSize: 512, + attribution: 'Protmaps', + }, + }, + layers: [ + { + id: 'custom', + type: 'raster', + source: 'custom', + layout: { + visibility: 'visible', + }, + }, + ], +}; + export const baseLayers = [stamenStyle, esriStyle, satellite];