aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/maps/openlayers.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/maps/openlayers.html')
-rw-r--r--templates/web/base/maps/openlayers.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/web/base/maps/openlayers.html b/templates/web/base/maps/openlayers.html
index 698ae2dab..37059910e 100644
--- a/templates/web/base/maps/openlayers.html
+++ b/templates/web/base/maps/openlayers.html
@@ -6,7 +6,8 @@
<input type="hidden" name="zoom" value="[% map.zoom %]">
<script type="text/javascript">
-var fixmystreet = {
+var fixmystreet = fixmystreet || {};
+$.extend(fixmystreet, {
'page': '[% page %]',
'area': [ [% map.area.join(',') %] ],
'all_pins': '[% all_pins %]',
@@ -26,7 +27,7 @@ var fixmystreet = {
'key': '[% c.config.BING_MAPS_API_KEY %]',
[%- END %]
'pins': [% INCLUDE maps/pins_js.html %]
-}
+});
</script>
<div id="map_box" aria-hidden="true">
[% pre_map %]