diff options
author | Dave Arter <davea@mysociety.org> | 2017-07-03 17:58:47 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2017-08-31 13:39:10 +0100 |
commit | e62439494abf74bd1518bd499986aebd5bfafc68 (patch) | |
tree | fe3b768e7713f0f99079b13fe3c1b3b4776bd0fe | |
parent | 217cc18a47c09120a75668eaf365e8e62171b853 (diff) |
Add ability for area outlines on /reports to be hidden by cobrand
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | templates/web/base/maps/openlayers.html | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index f7703fea4..d9326b2b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Front end improvements: - Always show pagination figures even if only one page. #1787 - Report pages list every update to a report. #1806 + - Cobrands can implement `hide_areas_on_reports` to hide outline on map. - Admin improvements: - Highlight current shortlisted user in list tooltip. #1788 - Extra fields on contacts can be edited. #1743 diff --git a/templates/web/base/maps/openlayers.html b/templates/web/base/maps/openlayers.html index e8d6c2e06..a9758f738 100644 --- a/templates/web/base/maps/openlayers.html +++ b/templates/web/base/maps/openlayers.html @@ -6,7 +6,9 @@ <input type="hidden" name="zoom" value="[% map.zoom %]"> <div id="js-map-data" +[%- UNLESS c.cobrand.call_hook('hide_areas_on_reports') %] data-area="[% map.area.join(',') %]" +[%- END %] data-all_pins='[% all_pins %]' data-latitude=[% map.latitude %] data-longitude=[% map.longitude %] @@ -23,7 +25,7 @@ data-map_type="[% map.map_type %]" [% IF include_key -%] data-key='[% c.config.BING_MAPS_API_KEY %]' -[%- END %] +[%- END -%] > </div> <div id="map_box" aria-hidden="true"> |