aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-01-29 01:54:12 +0100
committerGuilhem Moulin <guilhem@fripost.org>2024-01-29 04:43:20 +0100
commit27eceb6b023392a70612e248b6c60787bfe7cd42 (patch)
treedabf9fd5f85f2cbad82158c56a247d952a9d721b
parent5ee343943a155627152624a39aa581b0d0c8eaf4 (diff)
Add SVK's transmissionsnätsprojekt.
From https://www.svk.se/utveckling-av-kraftsystemet/transmissionsnatet/transmissionsnatsprojekt/
-rw-r--r--main.js32
1 files changed, 31 insertions, 1 deletions
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',
+ },
],
},
];