From 623305e4fbf0e04b1f28e92f3baa458a3362a8cf Mon Sep 17 00:00:00 2001 From: George Goodall Date: Tue, 29 Oct 2024 10:34:31 +0000 Subject: [PATCH 1/2] set base zoom to 6 --- assets/javascripts/MapController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/MapController.js b/assets/javascripts/MapController.js index f4728470..d497288f 100644 --- a/assets/javascripts/MapController.js +++ b/assets/javascripts/MapController.js @@ -74,7 +74,7 @@ export default class MapController { [ 13, 57 ] ], center: viewFromUrl.centre || [ -1, 52.9 ], - zoom: viewFromUrl.zoom || 5.5, + zoom: viewFromUrl.zoom || 6, transformRequest: (url, resourceType) => { if(url.indexOf('api.os.uk') > -1){ if(! /[?&]key=/.test(url) ) url += '?key=null' From c5fd591c6c3cf3273e6822ce16b8acfca5d88a23 Mon Sep 17 00:00:00 2001 From: George Goodall Date: Tue, 29 Oct 2024 10:40:44 +0000 Subject: [PATCH 2/2] change min zoom to 6 --- assets/javascripts/MapController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/MapController.js b/assets/javascripts/MapController.js index d497288f..c8af8e9f 100644 --- a/assets/javascripts/MapController.js +++ b/assets/javascripts/MapController.js @@ -66,7 +66,7 @@ export default class MapController { var map = new maplibregl.Map({ container: this.mapId, - minZoom: 5.5, + minZoom: 6, maxZoom: 18, style: this.customStyleJson, maxBounds: [