Persist explicit provider toggles through the layer state coordinator

This commit is contained in:
Sameh Khamis committed 2026-10-09 19:09:30 -07:00
1 parent 3ba8c6d61b
commit eacfc1b06a
7 files changed
+152 -23

No files matched your search

+2 -1
View File
@@ -1,4 +1,4 @@
import { normalizeIdSwitches } from './idSwitches.js';
import { normalizeIdSwitches, patchRequestedIdSwitches } from './idSwitches.js';
import reservationRows from './layerStateTokenReservations.json' with { type: 'json' };
const VALID_DISPOSITIONS = new Set([
@@ -416,6 +416,7 @@ const OPTION_GROUPS = Object.freeze({
booleanOption('mapillary', 'm', true),
Object.freeze({
key: 'providerSwitches',
patchRequested: patchRequestedIdSwitches,
token: 'r',
defaultValue: '',
normalize: (value) => normalizeIdSwitches(value, ['mapillary']),