Skip to content

Commit 746e570

Browse files
authored
Update countrypagemap_new.js
1 parent 84c3dd0 commit 746e570

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

public/javascripts/countrypagemap_new.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,12 @@ $(document).ready(function () {
9999
});
100100
$.each(countryMapData, function (i, v) {
101101
var calculatedOpacity = calculateOpacity(v.extra.budget, maxBudget);
102+
var fOpacity = 0.8;
102103
if (v.extra.id == 'SO') {
103-
calculatedOpacity = 0
104+
calculatedOpacity = 0;
105+
fOpacity = 0;
104106
}
107+
105108
var tempMapBorder = {
106109
"type": "Feature",
107110
"properties": {
@@ -112,7 +115,7 @@ $(document).ready(function () {
112115
color: "white",
113116
opacity: calculatedOpacity,
114117
fillColor: calculateBrightness(v.extra.budget, maxBudget),
115-
fillOpacity: 0.8
118+
fillOpacity: fOpacity
116119
}
117120
},
118121
"geometry": {

0 commit comments

Comments
 (0)