From bacf38043286a1361c8a41b8e8084f6eabafafe1 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Mon, 15 Jan 2018 17:56:35 +0000 Subject: 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. --- CHANGELOG.md | 1 + web/js/map-OpenLayers.js | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f37ca7088..7f908665e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ * Unreleased - Front end improvements: - Include "SameSite=Lax" with all cookies. + - Zoom out as much as necessary on body map page, even on mobile. #1958 - Bugfixes: - Fix bug specifying category in URL on /around. #1950 - Fix bug with multiple select-multiples on a page. #1951 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(); -- cgit v1.2.3