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
+10 -4
View File
@@ -3,14 +3,20 @@ import { describe, expect, it } from "vitest";
import { createBaseStyle, createWaterNetworkSources, SOURCE_LAYERS } from "./sources";
describe("createWaterNetworkSources", () => {
it("loads SCADA tiles from the lingang:scada_points GeoServer layer", () => {
it("loads SCADA tiles from the configured GeoServer workspace", () => {
const scada = createWaterNetworkSources().scada;
expect(SOURCE_LAYERS.scada).toBe("scada_points");
expect(SOURCE_LAYERS.scada).toBe("geo_scadas_mat");
expect(scada.tiles).toEqual([
expect.stringContaining("/lingang:scada_points/point/WebMercatorQuad/")
expect.stringContaining("/wenzhou:geo_scadas_mat/point/WebMercatorQuad/")
]);
expect(scada.promoteId).toBe("scada_id");
expect(scada.bounds).toEqual([
120.63483136963328,
27.957404243937606,
120.76346113516635,
28.02399422971424
]);
expect(scada.promoteId).toBe("sensor_id");
});
});