feat: add project-aware agent workspace
This commit is contained in:
@@ -8,6 +8,7 @@ import { WorkbenchMapController } from "../map/workbench-map-controller";
|
||||
|
||||
export function useWorkbenchMapController({
|
||||
mapRef,
|
||||
geoserverWorkspace,
|
||||
mapReady,
|
||||
leftPanelOpen,
|
||||
rightPanelOpen,
|
||||
@@ -16,6 +17,7 @@ export function useWorkbenchMapController({
|
||||
getScadaFeatures,
|
||||
availableSourceIds
|
||||
}: {
|
||||
geoserverWorkspace?: string;
|
||||
mapRef: RefObject<MapLibreMap | null>;
|
||||
mapReady: boolean;
|
||||
leftPanelOpen: boolean;
|
||||
@@ -42,6 +44,7 @@ export function useWorkbenchMapController({
|
||||
const controllerRef = useRef<WorkbenchMapController | null>(null);
|
||||
if (!controllerRef.current) {
|
||||
controllerRef.current = new WorkbenchMapController({
|
||||
geoserverWorkspace,
|
||||
getMap: () => mapRef.current,
|
||||
isReady: () => valuesRef.current.mapReady,
|
||||
getPadding: () => {
|
||||
|
||||
Reference in New Issue
Block a user