Skip to content
Snippets Groups Projects
Commit b9f38386 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

fix: Add "Negativ" to negative observations

parent ea45eb85
No related branches found
No related tags found
No related merge requests found
......@@ -83,11 +83,13 @@ async function initMap() {
: colors["plantae"];
let ikkeFunn = observationData["funn"] == "[Ukjent]" || observationData["funn"] == "Negativ";
retVal = [
new ol.style.Style({
image: new ol.style.Circle({
fill: new ol.style.Fill({ color: (observationData["funn"] == "[Ukjent]" ? color : observationData["funn"] == "Sanns. Phyt." ? [204, 204, 204, 1] : [0, 0, 0, 1]) }),
stroke: new ol.style.Stroke({ width: (observationData["funn"] == "[Ukjent]" ? 0 : 4), color: (observationData["funn"] == "[Ukjent]" ? [0, 0, 0, 1] : color) }),
fill: new ol.style.Fill({ color: (ikkeFunn ? color : observationData["funn"] == "Sanns. Phyt." ? [204, 204, 204, 1] : [0, 0, 0, 1]) }),
stroke: new ol.style.Stroke({ width: (ikkeFunn ? 0 : 4), color: (ikkeFunn ? [0, 0, 0, 1] : color) }),
radius: iconRadius
}),
text: new ol.style.Text({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment