From f5cd3608c3961209f6d361d5bab5df586f990114 Mon Sep 17 00:00:00 2001 From: Kyle Hensel Date: Mon, 27 May 2024 21:21:31 +1000 Subject: [PATCH] add poweruser feature to allow editing at low zoom levels --- modules/core/context.js | 2 +- modules/ui/panels/progress.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/context.js b/modules/core/context.js index 695f848f80..c4e7d2c073 100644 --- a/modules/core/context.js +++ b/modules/core/context.js @@ -214,7 +214,7 @@ export function coreContext() { }); }; - let _minEditableZoom = 16; + let _minEditableZoom = localStorage.allowEditAtLowZoom ? 14 : 16; context.minEditableZoom = function(val) { if (!arguments.length) return _minEditableZoom; _minEditableZoom = val; diff --git a/modules/ui/panels/progress.js b/modules/ui/panels/progress.js index c3d03f676d..bb4e16ffd9 100644 --- a/modules/ui/panels/progress.js +++ b/modules/ui/panels/progress.js @@ -67,7 +67,7 @@ export function uiPanelProgress(context) { const { next, zoom } = getNext(); if (!next) return; - context.map().centerZoomEase(next.geo, /* zoom */ Math.max(zoom, 16), /* transition time */ 0); + context.map().centerZoomEase(next.geo, /* zoom */ Math.max(zoom, context.minEditableZoom()), /* transition time */ 0); // select the RapiD feature to open the sidebar context