aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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',
+ },
],
},
];