feat: refine supply map layers and workbench branding

This commit is contained in:
2026-10-27 17:56:38 +08:00
parent 6983ba03f1
commit 4f0f34f460
23 changed files with 948 additions and 171 deletions
@@ -66,10 +66,11 @@ describe("workbench supply layer controls", () => {
collection: "fx-water-assets-20200423",
collectionLabel: "2020-04-23 · 全网除头桥快照",
featureCount: 215_797,
minZoom: 10,
minZoom: 8.5,
visible: false
});
expect(items.find((item) => item.id === "fx_20200811_dn100_pipes")).toMatchObject({
minZoom: 8.5,
collection: "fx-pipe-inventory-20200811",
featureCount: 122_686,
visual: { kind: "line", dashed: true }
@@ -77,9 +78,15 @@ describe("workbench supply layer controls", () => {
expect(items.find((item) => item.id === "water_quality_monitoring_points")).toMatchObject({
group: "monitoring",
groupLabel: "监测点",
minZoom: 11,
visual: { kind: "image", imageSrc: "/map/water-quality-monitoring.svg" },
visible: true
});
expect(items.find((item) => item.id === "fx_20200423_flow_meters")).toMatchObject({ minZoom: 11 });
for (const id of ["fx_20200423_hydrants", "fx_20200423_service_connections",
"fx_20200423_customer_meters", "fx_20200423_non_residential_meters"]) {
expect(items.find((item) => item.id === id)).toMatchObject({ minZoom: 12 });
}
});
it("omits data-dependent controls when their GeoServer layers are empty", () => {