Skip to content

Commit

Permalink
Vis punkt-data i kartet (#1660)
Browse files Browse the repository at this point in the history
Relatert til #1659
  • Loading branch information
bjornreppen authored Feb 6, 2020
1 parent f243356 commit 6924319
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/Funksjoner/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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-", "-");
Expand Down
14 changes: 10 additions & 4 deletions src/Kart/LeafletTangram/scene/visualisering/polygon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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%)"
}
}
}
};
Expand Down

0 comments on commit 6924319

Please sign in to comment.