Skip to content

Commit 84c3dd0

Browse files
authored
Update countrypagemap_new.js
1 parent 6fc5291 commit 84c3dd0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

public/javascripts/countrypagemap_new.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ $(document).ready(function () {
9898
layers: [layer]
9999
});
100100
$.each(countryMapData, function (i, v) {
101+
var calculatedOpacity = calculateOpacity(v.extra.budget, maxBudget);
102+
if (v.extra.id == 'SO') {
103+
calculatedOpacity = 0
104+
}
101105
var tempMapBorder = {
102106
"type": "Feature",
103107
"properties": {
@@ -106,7 +110,7 @@ $(document).ready(function () {
106110
stroke: true,
107111
weight: 1,
108112
color: "white",
109-
opacity: calculateOpacity(v.extra.budget, maxBudget),
113+
opacity: calculatedOpacity,
110114
fillColor: calculateBrightness(v.extra.budget, maxBudget),
111115
fillOpacity: 0.8
112116
}

0 commit comments

Comments
 (0)