diff --git a/api/config/layers/marine-layers.js b/api/config/layers/marine-layers.js new file mode 100644 index 00000000..872738b2 --- /dev/null +++ b/api/config/layers/marine-layers.js @@ -0,0 +1,35 @@ +module.exports = function () { + return [{ + name: 'Layers.OPENSEAMAP', + description: 'Layers.OPENSEAMAP_DESCRIPTION', + i18n: { + fr: { + Layers: { + OPENSEAMAP: 'Informations nautiques', + OPENSEAMAP_DESCRIPTION: 'Données OpenSeaMap©' + } + }, + en: { + Layers: { + OPENSEAMAP: 'Nautical informations', + OPENSEAMAP_DESCRIPTION: 'OpenSeaMap data©' + } + } + }, + tags: [ + 'marine' + ], + iconUrl: 'statics/OpenSeaMap-Logo-256.png', + icon: 'marine', + attribution: 'OpenSeaMap © OpenSeaMap contributors', + type: 'OverlayLayer', + leaflet: { + type: 'tileLayer', + isVisible: true, + source: `https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png` + maxZoom: 19, + maxNativeZoom: 19, + tms: true + } + }] +} diff --git a/src/statics/OpenSeaMap-Logo-256.png b/src/statics/OpenSeaMap-Logo-256.png new file mode 100644 index 00000000..393e9777 Binary files /dev/null and b/src/statics/OpenSeaMap-Logo-256.png differ