refactor(frontend): align TJWater Next integrations
This commit is contained in:
@@ -22,30 +22,30 @@ const FEATURE_TYPE_MAP: Record<
|
||||
string,
|
||||
{ layer: string; geometryKind: "point" | "line"; label: string }
|
||||
> = {
|
||||
junction: { layer: "geo_junctions_mat", geometryKind: "point", label: "节点" },
|
||||
junctions: { layer: "geo_junctions_mat", geometryKind: "point", label: "节点" },
|
||||
pipe: { layer: "geo_pipes_mat", geometryKind: "line", label: "管道" },
|
||||
pipes: { layer: "geo_pipes_mat", geometryKind: "line", label: "管道" },
|
||||
valve: { layer: "geo_valves", geometryKind: "point", label: "阀门" },
|
||||
valves: { layer: "geo_valves", geometryKind: "point", label: "阀门" },
|
||||
reservoir: { layer: "geo_reservoirs", geometryKind: "point", label: "水源" },
|
||||
reservoirs: { layer: "geo_reservoirs", geometryKind: "point", label: "水源" },
|
||||
pump: { layer: "geo_pumps", geometryKind: "point", label: "泵站" },
|
||||
pumps: { layer: "geo_pumps", geometryKind: "point", label: "泵站" },
|
||||
tank: { layer: "geo_tanks", geometryKind: "point", label: "水池" },
|
||||
tanks: { layer: "geo_tanks", geometryKind: "point", label: "水池" },
|
||||
junction: { layer: "junctions", geometryKind: "point", label: "节点" },
|
||||
junctions: { layer: "junctions", geometryKind: "point", label: "节点" },
|
||||
pipe: { layer: "pipes", geometryKind: "line", label: "管道" },
|
||||
pipes: { layer: "pipes", geometryKind: "line", label: "管道" },
|
||||
valve: { layer: "valves", geometryKind: "point", label: "阀门" },
|
||||
valves: { layer: "valves", geometryKind: "point", label: "阀门" },
|
||||
reservoir: { layer: "reservoirs", geometryKind: "point", label: "水源" },
|
||||
reservoirs: { layer: "reservoirs", geometryKind: "point", label: "水源" },
|
||||
pump: { layer: "pumps", geometryKind: "point", label: "泵站" },
|
||||
pumps: { layer: "pumps", geometryKind: "point", label: "泵站" },
|
||||
tank: { layer: "tanks", geometryKind: "point", label: "水池" },
|
||||
tanks: { layer: "tanks", geometryKind: "point", label: "水池" },
|
||||
};
|
||||
|
||||
const LOCATE_TOOL_CONFIG: Record<
|
||||
string,
|
||||
{ layer: string; geometryKind: "point" | "line"; label: string }
|
||||
> = {
|
||||
locate_pipes: { layer: "geo_pipes_mat", geometryKind: "line", label: "管道" },
|
||||
locate_junctions: { layer: "geo_junctions_mat", geometryKind: "point", label: "节点" },
|
||||
locate_valves: { layer: "geo_valves", geometryKind: "point", label: "阀门" },
|
||||
locate_reservoirs: { layer: "geo_reservoirs", geometryKind: "point", label: "水源" },
|
||||
locate_pumps: { layer: "geo_pumps", geometryKind: "point", label: "泵站" },
|
||||
locate_tanks: { layer: "geo_tanks", geometryKind: "point", label: "水池" },
|
||||
locate_pipes: { layer: "pipes", geometryKind: "line", label: "管道" },
|
||||
locate_junctions: { layer: "junctions", geometryKind: "point", label: "节点" },
|
||||
locate_valves: { layer: "valves", geometryKind: "point", label: "阀门" },
|
||||
locate_reservoirs: { layer: "reservoirs", geometryKind: "point", label: "水源" },
|
||||
locate_pumps: { layer: "pumps", geometryKind: "point", label: "泵站" },
|
||||
locate_tanks: { layer: "tanks", geometryKind: "point", label: "水池" },
|
||||
};
|
||||
|
||||
const LOCATE_ID_PARAM_KEYS = [
|
||||
|
||||
Reference in New Issue
Block a user