diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2024-01-29 01:54:12 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2024-01-29 04:43:20 +0100 |
commit | 27eceb6b023392a70612e248b6c60787bfe7cd42 (patch) | |
tree | dabf9fd5f85f2cbad82158c56a247d952a9d721b | |
parent | 5ee343943a155627152624a39aa581b0d0c8eaf4 (diff) |
Add SVK's transmissionsnätsprojekt.
From https://www.svk.se/utveckling-av-kraftsystemet/transmissionsnatet/transmissionsnatsprojekt/
-rw-r--r-- | main.js | 32 |
1 files changed, 31 insertions, 1 deletions
@@ -532,6 +532,32 @@ const layers = { }); })), }, + svk_planned: { + popoverTitle: 'Transmissionsnätsprojekt', + popover: [ + ['Projektnamn', 'name'], + ['Spänning', 'voltage', { fn: (v) => v + '\u202FkV' }], + ['Länk', 'url', { fn: function(v) { + const a = document.createElement('a'); + a.href = v; + a.target = '_blank'; + const i = document.createElement('i'); + i.classList.add('bi', 'bi-box-arrow-up-right'); + a.appendChild(i); + return a; + }}], + ], + style: [1, 1.5, 2, 2, 2, 2, 3, 4, 5, 6, 8, 10].map(function(width) { + return new Style({ + zIndex: 53, + stroke: new Stroke({ + color: 'black', + width: width, + lineDash: [4], + }), + }); + }), + }, svk_stations: { style: [5, 6, 8, 8, 10, 12, 12].map(function(radius) { return new Style({ @@ -566,13 +592,17 @@ const layerHierarchy = [ text: 'Transmissionsnät för el', children: [ { - text: 'Kraftledningar', + text: 'Kraftledningar (befintliga)', layer: ['svk_lines', 'svk_pylons'], }, { text: 'Stationer', layer: 'svk_stations', }, + { + text: 'Transmissionsnätsprojekt ', + layer: 'svk_planned', + }, ], }, ]; |