Skip to content

Commit

Permalink
Fix FSA outline colour in map for Probabilistic Loss Exceedance Curve
Browse files Browse the repository at this point in the history
Change the outline colour enclosing the selected forward sortation area
(FSA) from black to red to match the text description.

Also thicken the outline to make it more obvious.

Fixed for www.riskprofiler.ca on 2023-11-22 originally,
but not fixed in source JavaScript and PHP code until now.

Thanks to Tiegan Hobbs (@tieganh) for reporting the issue!

Fixes OpenDRR/riskprofiler#121
  • Loading branch information
anthonyfok committed Mar 12, 2024
1 parent adab6a4 commit 1e5e61b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions site/assets/themes/fw-child/resources/js/rp_risks.js
Original file line number Diff line number Diff line change
Expand Up @@ -1855,8 +1855,8 @@ var color_ramp = [
plugin_settings.map.layers.fsa = new L.GeoJSON(source, {
style: {
fill: false,
color: '#000000',
weight: 2,
color: '#FF0000',
weight: 4,
opacity: 0.6
},
pane: 'fsa'
Expand Down
6 changes: 3 additions & 3 deletions site/assets/themes/fw-child/template/risks/detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ class="collapse"

printf (
__ (
'Loss exceedance curve data for postal code %s, as outlined in %sred%s on the map.', 'rp'
'Loss exceedance curve data for postal code %s, as enclosed in the %sthick red outline%s on the map.', 'rp'
),
'<strong data-indicator="fsauid"></strong>',
'<span class="text-primary">',
'</span>'
'<strong class="text-primary">',
'</strong>'
);

?></p>
Expand Down

0 comments on commit 1e5e61b

Please sign in to comment.