@smart-factor/gem-ui-map-component 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MapButtons-II1mKZSY.js → MapButtons-DjsRiW1d.js} +11572 -11519
- package/dist/components/Layers/Layers.d.ts +3 -1
- package/dist/components/Map/Map.d.ts +3 -1
- package/dist/components/Map/config.d.ts +2 -1
- package/dist/components/Map/types.d.ts +3 -1
- package/dist/components/MapButtons/index.js +1 -1
- package/dist/contexts/MapInteractionsContext/MapInteractionsContextProvider.d.ts +1 -1
- package/dist/contexts/MapInteractionsContext/types.d.ts +2 -0
- package/dist/hooks/useSetupMap.d.ts +1 -1
- package/dist/main.js +2487 -2475
- package/dist/services/Map/MapService.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { MapExternalProps } from './types';
|
|
2
|
-
declare const MapWithProviders: ({ mapLayers, caseObjectId, sidebarConfig, mapButtonsConfig, mapElementsConfig, setOuterDrawnGeometries, }: MapExternalProps
|
|
2
|
+
declare const MapWithProviders: ({ mapLayers, caseObjectId, sidebarConfig, mapButtonsConfig, mapElementsConfig, setOuterDrawnGeometries, setOuterSelectedMapObjects, selectedFeatureIds, multiSelectEnabled, }: MapExternalProps & {
|
|
3
|
+
selectedFeatureIds?: number[];
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
3
5
|
export default MapWithProviders;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface SidebarConfig {
|
|
2
2
|
sidebarVisible: boolean;
|
|
3
|
-
items: Record<'isStatic' | 'plotSearch' | 'addressSearch' | 'roadNavigation' | 'mapObjectSearch' | 'mapLayers', boolean>;
|
|
3
|
+
items: Record<'isStatic' | 'plotSearch' | 'addressSearch' | 'roadNavigation' | 'mapObjectSearch' | 'mapLayers' | 'onlyGemLayers', boolean>;
|
|
4
4
|
}
|
|
5
5
|
interface MapButtonsConfig {
|
|
6
6
|
mapButtonsVisible: boolean;
|
|
@@ -11,6 +11,7 @@ interface MapElementsConfig {
|
|
|
11
11
|
items: Record<'snapBar' | 'drawCreator', boolean>;
|
|
12
12
|
}
|
|
13
13
|
export interface MapConfig {
|
|
14
|
+
multiSelectEnabled: boolean;
|
|
14
15
|
sidebarConfig: SidebarConfig;
|
|
15
16
|
mapButtonsConfig: MapButtonsConfig;
|
|
16
17
|
mapElementsConfig: MapElementsConfig;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Feature } from 'ol';
|
|
2
2
|
import { Coordinate } from 'ol/coordinate';
|
|
3
|
-
import { Geometry as GeometryApi, LineString, Point, Polygon } from 'ol/geom';
|
|
3
|
+
import { Geometry as GeometryApi, Geometry as GeometryOl, LineString, Point, Polygon } from 'ol/geom';
|
|
4
4
|
import { Type } from 'ol/geom/Geometry';
|
|
5
5
|
import { default as VectorLayer } from 'ol/layer/Vector';
|
|
6
6
|
import { default as VectorSource } from 'ol/source/Vector';
|
|
@@ -158,5 +158,7 @@ export type DrawnGeometryParam = Omit<Geometry, 'geometries'>[];
|
|
|
158
158
|
export interface MapExternalProps extends MapConfig {
|
|
159
159
|
mapLayers: MapLayer[];
|
|
160
160
|
setOuterDrawnGeometries?: (drawnGeometries: DrawnGeometryParam) => void;
|
|
161
|
+
setOuterSelectedMapObjects?: (selectedMapObjects: Feature<GeometryOl>[] | null) => void;
|
|
161
162
|
caseObjectId?: number;
|
|
163
|
+
selectedFeatureIds?: number[];
|
|
162
164
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MapInteractionsContextProps } from './types';
|
|
2
|
-
export declare const MapInteractionsProvider: ({ children, mapLayers, caseObjectId, setOuterDrawnGeometries, }: MapInteractionsContextProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const MapInteractionsProvider: ({ children, mapLayers, caseObjectId, setOuterDrawnGeometries, setOuterSelectedMapObjects, }: MapInteractionsContextProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -40,10 +40,12 @@ export interface MapInteractionsContextValues {
|
|
|
40
40
|
onToggleShowLocation: () => void;
|
|
41
41
|
handleCollectGeometries: () => void;
|
|
42
42
|
onSmartGemSync: () => void;
|
|
43
|
+
setOuterSelectedMapObjects: MapExternalProps['setOuterSelectedMapObjects'];
|
|
43
44
|
}
|
|
44
45
|
export interface MapInteractionsContextProps {
|
|
45
46
|
children: React.ReactNode;
|
|
46
47
|
mapLayers: MapLayer[];
|
|
47
48
|
caseObjectId: number;
|
|
48
49
|
setOuterDrawnGeometries: MapExternalProps['setOuterDrawnGeometries'];
|
|
50
|
+
setOuterSelectedMapObjects: MapExternalProps['setOuterSelectedMapObjects'];
|
|
49
51
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MapLayer } from '../components/Map/types';
|
|
2
2
|
export declare const GEOLOCATION_LAYER = "geolocationLayer";
|
|
3
|
-
export declare const useSetupMap: (mapLayers: MapLayer[], caseObjectId: number) => void;
|
|
3
|
+
export declare const useSetupMap: (mapLayers: MapLayer[], caseObjectId: number, initialSelectedFeatureIds?: number[], multiSelectEnabled?: boolean) => void;
|