Preset Défaut : fond OSM visible à 30 % sous la pile de couches
This commit is contained in:
@ -2474,7 +2474,7 @@ async function syncCustomPresets() {
|
|||||||
const BUILTIN_PRESETS = [
|
const BUILTIN_PRESETS = [
|
||||||
{ label: 'Défaut', on: ['positive_openness', 'aspect', 'slope'],
|
{ label: 'Défaut', on: ['positive_openness', 'aspect', 'slope'],
|
||||||
opacity: { slope: 0, aspect: 0.5, positive_openness: 1 },
|
opacity: { slope: 0, aspect: 0.5, positive_openness: 1 },
|
||||||
osm: { on: false } },
|
osm: { on: true, opacity: 0.3 } },
|
||||||
];
|
];
|
||||||
|
|
||||||
// Niveaux de transparence d'un preset, lisibles dans la liste
|
// Niveaux de transparence d'un preset, lisibles dans la liste
|
||||||
|
|||||||
@ -287,7 +287,7 @@ def test_build_index_generates_html(tmp_path):
|
|||||||
assert 'id="presetSave"' in content
|
assert 'id="presetSave"' in content
|
||||||
assert "BUILTIN_PRESETS" in app_js and "applyPreset" in app_js
|
assert "BUILTIN_PRESETS" in app_js and "applyPreset" in app_js
|
||||||
assert "presetDetail" in app_js and "lidarPresets_v1" in app_js
|
assert "presetDetail" in app_js and "lidarPresets_v1" in app_js
|
||||||
assert "osm: { on: false }" in app_js # presets portent le fond OSM
|
assert "osm: { on: true, opacity: 0.3 }" in app_js # preset porte le fond OSM
|
||||||
assert "p.osm" in app_js # l'application y inclut le fond
|
assert "p.osm" in app_js # l'application y inclut le fond
|
||||||
# Partage de la vue : bouton « Partager » + lien contenant vue, couches
|
# Partage de la vue : bouton « Partager » + lien contenant vue, couches
|
||||||
# et transparences (hash #zoom,lat,lng&L=...&O=...) — le destinataire
|
# et transparences (hash #zoom,lat,lng&L=...&O=...) — le destinataire
|
||||||
|
|||||||
Reference in New Issue
Block a user