aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-01-29 12:22:02 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-01-29 17:16:18 +0000
commitb5cc0b4b866f576dc52587d9e993a221d476ef65 (patch)
tree173022b34f1277fb01162411493d22942cc475ea /web/js/map-OpenLayers.js
parent9f48fd21d8ab9dea7726dec169506629c9611f4d (diff)
Make staff JavaScript more self-contained.
So it can run even when fixmystreet.js is not loaded.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r--web/js/map-OpenLayers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index 2a9897e5b..27e89df1d 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -720,9 +720,9 @@ $.extend(fixmystreet.utils, {
);
fixmystreet.map.addControl( fixmystreet.select_feature );
fixmystreet.select_feature.activate();
- fixmystreet.map.events.register( 'zoomend', null, fixmystreet.maps.markers_resize );
fixmystreet.map.events.register( 'zoomend', null, function() {
- fixmystreet.run(fixmystreet.maps.show_shortlist_control);
+ fixmystreet.maps.markers_resize();
+ $(fixmystreet).trigger('map:zoomend');
});
// Set up the event handlers to populate the filters and react to them changing