feat: extend agent-driven map workbench

This commit is contained in:
2026-07-20 19:57:35 +08:00
parent 86e9b08235
commit 7fbd8a5618
63 changed files with 4506 additions and 457 deletions
@@ -8,7 +8,7 @@ import {
} from "./map-control-config";
describe("workbench source layer controls", () => {
it("creates one business control for each Lingang source", () => {
it("creates one business control for each GeoServer source", () => {
const items = createLayerControlItems(INITIAL_LAYER_VISIBILITY);
expect(items.map((item) => item.id)).toEqual([
@@ -20,12 +20,16 @@ describe("workbench source layer controls", () => {
"scada"
]);
expect(items.slice(0, 5).map((item) => item.description)).toEqual([
"lingang:geo_conduits_mat",
"lingang:geo_junctions_mat",
"lingang:geo_orifices_mat",
"lingang:geo_outfalls_mat",
"lingang:geo_pumps_mat"
"wenzhou:geo_conduits_mat",
"wenzhou:geo_junctions_mat",
"wenzhou:geo_orifices_mat",
"wenzhou:geo_outfalls_mat",
"wenzhou:geo_pumps_mat"
]);
expect(items.at(-1)).toMatchObject({
label: "综合监测点",
description: "wenzhou:geo_scadas_mat"
});
});
it("finds every rendered layer that uses a source", () => {