aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-01-15 17:56:35 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-01-15 17:58:14 +0000
commitbacf38043286a1361c8a41b8e8084f6eabafafe1 (patch)
tree4c6fa47b4f81b28c0833f57e442b91418ad72ef0 /web/js/map-OpenLayers.js
parent9e75d02fd745f64dfee1f960196718c299d3bd0a (diff)
Zoom out as much as necessary, even on mobile.
This also fixes an inconsistency between what you can see on the map and the list of reports underneath.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r--web/js/map-OpenLayers.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index 1d417f68e..1238bb351 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -240,9 +240,6 @@ $.extend(fixmystreet.utils, {
strategy.deactivate();
var center = bounds.getCenterLonLat();
var z = fixmystreet.map.getZoomForExtent(bounds);
- if ( z < 13 && $('html').hasClass('mobile') ) {
- z = 13;
- }
fixmystreet.map.setCenter(center, z);
// Reactivate the strategy and make it think it's done an update
strategy.activate();