From 27eceb6b023392a70612e248b6c60787bfe7cd42 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 29 Jan 2024 01:54:12 +0100 Subject: =?UTF-8?q?Add=20SVK's=20transmissionsn=C3=A4tsprojekt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From https://www.svk.se/utveckling-av-kraftsystemet/transmissionsnatet/transmissionsnatsprojekt/ --- main.js | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 2540ba5..8842b2b 100644 --- a/main.js +++ b/main.js @@ -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', + }, ], }, ]; -- cgit v1.2.3