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];