Skip to content

Commit

Permalink
add poweruser feature to allow editing at low zoom levels
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yle committed May 27, 2024
1 parent 71b2a64 commit f5cd360
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/core/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/ui/panels/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5cd360

Please sign in to comment.