Skip to content

Commit

Permalink
Merge pull request #144 from benoit-jpi/marine-layers-branch
Browse files Browse the repository at this point in the history
feat: added nautical informations layer (OpenSeaMap). 
closes #143.
  • Loading branch information
claustres committed Nov 1, 2020
2 parents 4a17df8 + f3f6f0d commit 71b82d4
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions api/config/layers/marine-layers.js
Original file line number Diff line number Diff line change
@@ -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 © <a href="http://www.openseamap.org">OpenSeaMap</a> contributors',
type: 'OverlayLayer',
leaflet: {
type: 'tileLayer',
isVisible: true,
source: `https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png`
maxZoom: 19,
maxNativeZoom: 19,
tms: true
}
}]
}
Binary file added src/statics/OpenSeaMap-Logo-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 71b82d4

Please sign in to comment.