@smart-factor/gem-ui-map-component 0.0.20 → 0.0.21
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-jqCWr3CL.js → MapButtons-S-jADkgq.js} +11626 -11602
- package/dist/components/Map/Map.d.ts +1 -1
- package/dist/components/Map/types.d.ts +5 -0
- package/dist/components/MapButtons/index.js +1 -1
- package/dist/hooks/useSetupMap.d.ts +2 -2
- package/dist/main.js +210 -206
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MapExternalProps } from './types';
|
|
2
|
-
declare const MapWithProviders: ({ id, mapLayers, caseObjectId, sidebarConfig, mapButtonsConfig, mapElementsConfig, setOuterDrawnGeometries, setOuterSelectedMapObjects, selectedFeatures, multiSelectEnabled, }: MapExternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const MapWithProviders: ({ id, mapLayers, caseObjectId, sidebarConfig, mapButtonsConfig, mapElementsConfig, setOuterDrawnGeometries, setOuterSelectedMapObjects, selectedFeatures, multiSelectEnabled, initialDrawnGeometries, }: MapExternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MapWithProviders;
|
|
@@ -156,6 +156,10 @@ export type MapLayer = {
|
|
|
156
156
|
geometryType?: string;
|
|
157
157
|
};
|
|
158
158
|
export type DrawnGeometryParam = Omit<Geometry, 'geometries'>[];
|
|
159
|
+
export type InitialDrawnGeometry = {
|
|
160
|
+
type: string;
|
|
161
|
+
coordinates: Coordinate | Coordinate[] | Coordinate[][] | Coordinate[][][];
|
|
162
|
+
};
|
|
159
163
|
export type SelectedFeature = {
|
|
160
164
|
id: number;
|
|
161
165
|
road_id?: number;
|
|
@@ -177,4 +181,5 @@ export interface MapExternalProps extends MapConfig {
|
|
|
177
181
|
setOuterSelectedMapObjects?: (selectedMapObjects: Feature<GeometryOl>[] | null) => void;
|
|
178
182
|
caseObjectId?: number;
|
|
179
183
|
selectedFeatures?: SelectedFeature[];
|
|
184
|
+
initialDrawnGeometries?: InitialDrawnGeometry[];
|
|
180
185
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { MapLayer, SelectedFeature } from '../components/Map/types';
|
|
1
|
+
import { InitialDrawnGeometry, MapLayer, SelectedFeature } from '../components/Map/types';
|
|
2
2
|
export declare const GEOLOCATION_LAYER = "geolocationLayer";
|
|
3
|
-
export declare const useSetupMap: (id: string, mapLayers: MapLayer[], caseObjectId: number, initialSelectedFeatures?: SelectedFeature[], multiSelectEnabled?: boolean) => void;
|
|
3
|
+
export declare const useSetupMap: (id: string, mapLayers: MapLayer[], caseObjectId: number, initialSelectedFeatures?: SelectedFeature[], multiSelectEnabled?: boolean, initialDrawnGeometries?: InitialDrawnGeometry[]) => void;
|