Show bg=photo apart from bg=satellite, on the service's layers
The operator, after seeing real posters: EOX's 2016 mosaic is rejected, and a layout's Commons photo now serves only an explicit bg=photo, which falls back to what bg=satellite draws. The picker therefore puts the satellite-or-map choice first, per layout, on the layers the service uses (PDOK HR, IGN's frozen BD ORTHO 2021-2023, USGS, EOxCloudless 2025), and offers the photos as optional for bg=photo. One picks entry may carry a photo, "use": "map", or both, and each choice keeps the other half. The builder and the posters page offer bg=photo; width starts at 400; the licences page sets the options in "used for" as code. Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
This commit is contained in:
@@ -99,8 +99,9 @@
|
||||
{ name: 'style', kind: 'select', def: 'classic', values: [['classic', 'classic'], ['minimal', 'minimal']],
|
||||
note: 'A preset of the options below; any option given overrides it.' },
|
||||
{ name: 'bg', kind: 'select', def: 'satellite', values: [
|
||||
['satellite', 'satellite: the layout’s picked Commons photo, else the national aerial photo, else EOxCloudless'],
|
||||
['satellite', 'satellite: the national aerial photo, else EOxCloudless 2025; the dark map for a layout that asks for it'],
|
||||
['aerial', 'aerial: the same as satellite, for addresses in use'],
|
||||
['photo', 'photo: the layout’s picked Commons photo, else what satellite draws'],
|
||||
['osm', 'osm: OpenStreetMap'], ['dark', 'dark: OpenStreetMap, recoloured dark'],
|
||||
['light', 'light: OpenStreetMap, recoloured light'], ['none', 'none: no map']],
|
||||
note: 'The kept map or photo layer.' },
|
||||
@@ -112,7 +113,7 @@
|
||||
{ name: 'track', kind: 'track', def: 'white, 6', note: 'The outline, from the kept points; an inset over a photo layer.' },
|
||||
{ name: 'dim', kind: 'range', def: 'the style’s', note: 'How much the background is darkened, 0 to 1.' },
|
||||
{ name: 'accent', kind: 'color', def: 'the style’s', note: 'The wordmark’s colour.' },
|
||||
{ name: 'width', kind: 'width', def: 'the frame’s', note: 'Scaled down at encoding, from 200 up to the frame’s width.' },
|
||||
{ name: 'width', kind: 'width', def: 'the frame’s', note: 'Scaled down at encoding, from 400 up to the frame’s width.' },
|
||||
{ name: 'format', kind: 'select', def: 'png', values: [['png', 'png'], ['jpg', 'jpg'], ['webp', 'webp']], note: 'The encoding.' },
|
||||
];
|
||||
|
||||
@@ -182,11 +183,11 @@
|
||||
value = () => pick.value;
|
||||
box._set = (v) => { if (/^#[0-9a-f]{6}$/i.test(v)) pick.value = v; };
|
||||
} else if (o.kind === 'width') {
|
||||
const num = h('input', { type: 'number', min: 200, step: 10, value: 600, 'aria-label': o.name });
|
||||
const num = h('input', { type: 'number', min: 400, step: 10, value: 600, 'aria-label': o.name });
|
||||
const max = h('span', { class: 'hint' });
|
||||
num.addEventListener('input', touch);
|
||||
body.append(num, max);
|
||||
box._max = (m) => { num.max = m; max.textContent = `200 to ${m} for this route`; };
|
||||
box._max = (m) => { num.max = m; max.textContent = `400 to ${m} for this route`; };
|
||||
value = () => num.value;
|
||||
box._set = (v) => { num.value = v; };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user