aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-02-25 13:51:42 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-03-03 14:25:03 +0000
commit32f0e3ba1aaafb3c19708770c482dc529f481289 (patch)
tree78073a7697b97a21660febe6d2e019f02245b163 /templates
parent3da77796fed135c5b38a226b4154dabfc398b854 (diff)
Add map staging flag for client side to use.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/base/maps/openlayers.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/web/base/maps/openlayers.html b/templates/web/base/maps/openlayers.html
index 48a2f0890..f4c78767c 100644
--- a/templates/web/base/maps/openlayers.html
+++ b/templates/web/base/maps/openlayers.html
@@ -6,6 +6,9 @@
<input type="hidden" name="zoom" value="[% map.zoom %]">
<div id="js-map-data"
+[%- IF c.config.STAGING_SITE %]
+ data-staging=1
+[%- END %]
[%- UNLESS c.cobrand.call_hook('hide_areas_on_reports') %]
data-area="[% map.area.join(',') %]"
[%- END %]