From 69243197c2080d1612b7a90c8d6888c1d52591cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Reppen?= Date: Thu, 6 Feb 2020 11:06:26 +0100 Subject: [PATCH] Vis punkt-data i kartet (#1660) Relatert til https://github.com/Artsdatabanken/nin-kart/issues/1659 --- src/Funksjoner/config.js | 6 +++++- .../LeafletTangram/scene/visualisering/polygon.js | 14 ++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/Funksjoner/config.js b/src/Funksjoner/config.js index 46ef7fcb7..22548b8d1 100644 --- a/src/Funksjoner/config.js +++ b/src/Funksjoner/config.js @@ -50,7 +50,11 @@ class config { static hack(kode) { // TODO: Erstatt denne med kode.split("-").pop() - if (kode.indexOf("AO") === 0 || kode.indexOf("VV") === 0) + if ( + kode.indexOf("AO") === 0 || + kode.indexOf("VV") === 0 || + kode.indexOf("NN-NA-BS-3EL") === 0 + ) return kode.split("-").pop(); if (kode.indexOf("NN-") !== 0) return kode; return kode.substring(3).replace("-TI-", "-"); diff --git a/src/Kart/LeafletTangram/scene/visualisering/polygon.js b/src/Kart/LeafletTangram/scene/visualisering/polygon.js index 27e375cf2..191870b00 100644 --- a/src/Kart/LeafletTangram/scene/visualisering/polygon.js +++ b/src/Kart/LeafletTangram/scene/visualisering/polygon.js @@ -52,10 +52,16 @@ function draw(args) { .toHexString(), width: "1.0px" }, - po: { - size: 500, - collide: true, - color: farge + points: { + order: 850, + size: 10, + collide: false, + color: farge, + interactive: true, + outline: { + width: 2, + color: "rgba(0,0,0,30%)" + } } } };