Skip to content

Commit

Permalink
feat: add custom baselayer with oam logo
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Nov 27, 2024
1 parent 347f368 commit 598619d
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/mapper/src/assets/images/oam-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions src/mapper/src/constants/baseLayers.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import oamLogo from '$assets/images/oam-logo.svg';

export const osmStyle = {
id: 'OSM Raster',
version: 8,
Expand Down Expand Up @@ -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];

0 comments on commit 598619d

Please sign in to comment.