feat(preview): default inspect mode to roads

This commit is contained in:
2026-08-07 13:23:33 +08:00
parent d382bc4462
commit 22f306249d

View File

@@ -258,6 +258,8 @@
const label = document.createElement("label"); const label = document.createElement("label");
const input = document.createElement("input"); const input = document.createElement("input");
input.type = "checkbox"; input.type = "checkbox";
// Road observation is the primary workflow. Keep the optional semantic
// layers available, but avoid letting buildings obscure the first view.
input.checked = false; input.checked = false;
input.dataset.assetId = asset.id; input.dataset.assetId = asset.id;
input.addEventListener("change", async () => { input.addEventListener("change", async () => {
@@ -347,8 +349,9 @@
} }
return; return;
} }
model.show = true; const roadFocus = asset.id === "roads";
if (asset.toggle) asset.toggle.checked = true; model.show = roadFocus;
if (asset.toggle) asset.toggle.checked = roadFocus;
})); }));
if (viewMode !== "inspect") { if (viewMode !== "inspect") {
for (const asset of semanticAssets(assets)) { for (const asset of semanticAssets(assets)) {