Skip to content

Commit

Permalink
Add "" to class max attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaGeo committed Oct 4, 2023
1 parent 75a545f commit 0e4d5a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radon/radon-ol.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// Define your style categories and corresponding styles here
// Adjust the conditions and styles to match your data
if (classMax === 1) {
if (classMax === "1") {
return new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'red',
Expand All @@ -32,7 +32,7 @@
color: 'rgba(240, 0, 0, 1)',
})
});
} else if (classMax === 2) {
} else if (classMax === "2") {
return new ol.style.Style({
stroke: new ol.style.Stroke({
color: 'blue',
Expand Down Expand Up @@ -63,7 +63,7 @@
url: "radon_v2.pmtiles",
attributions: ["© British Geological Survey"]
}),
style: getStyle // Use the custom style function for styling
style: getStyle() // Use the custom style function for styling
});

ol.proj.useGeographic();
Expand Down

0 comments on commit 0e4d5a5

Please sign in to comment.