Skip to content

Commit

Permalink
fix: opacity slider (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyliec committed Aug 27, 2023
1 parent 2caa547 commit 3c870a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,6 @@ <h2 class="f5 mb1 black-40">Overlays</h2>
value="senate" />
Senate Districts
</label>
</div>
</div>

<div id="ZoneOpacity">
<h2 class="f5 mb1 black-40">Zone Opacity</h2>
Expand Down
3 changes: 2 additions & 1 deletion scripts/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ var zType = 'Ty'
var zAcres = 'MA' // municipal area

var style = function (filters, feature) {
var opacity = $('input[name="opacity"]').val() / 100
var opacity = $('input[name="opacity"]').val() / 100;

let fillColor = satisfiesFilters(filters, feature)
? zone2color[feature.properties[zType]]
: zone2color['NS'];
Expand Down

0 comments on commit 3c870a6

Please sign in to comment.