@smart-factor/gem-ui-map-component 0.0.36 → 0.0.37
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-BBrNnHVQ.js → MapButtons-CFqTDk2i.js} +18279 -18276
- package/dist/components/Map/Map.d.ts +1 -1
- package/dist/components/Map/types.d.ts +15 -0
- package/dist/components/MapButtons/index.js +1 -1
- package/dist/hooks/useSetupMap.d.ts +2 -2
- package/dist/main.d.ts +1 -0
- package/dist/main.js +455 -447
- 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, initialDrawnGeometries, disableEditNonUserDrawnGeometries, enforceWithinRoad, disableTreeConfig, }: MapExternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const MapWithProviders: ({ id, mapLayers, caseObjectId, sidebarConfig, mapButtonsConfig, mapElementsConfig, setOuterDrawnGeometries, setOuterSelectedMapObjects, selectedFeatures, multiSelectEnabled, initialDrawnGeometries, disableEditNonUserDrawnGeometries, enforceWithinRoad, disableTreeConfig, defaultCoordinate, defaultZoom, }: MapExternalProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default MapWithProviders;
|
|
@@ -184,4 +184,19 @@ export interface MapExternalProps extends MapConfig {
|
|
|
184
184
|
caseObjectId?: number;
|
|
185
185
|
selectedFeatures?: SelectedFeature[];
|
|
186
186
|
initialDrawnGeometries?: InitialDrawnGeometry[];
|
|
187
|
+
/** GeoJSON-style Point with optional CRS used as the initial map center.
|
|
188
|
+
* `null` means the user has no saved default and the map should fall back. */
|
|
189
|
+
defaultCoordinate?: DefaultCoordinate | null;
|
|
190
|
+
/** Initial map zoom level (0-30). `null` falls back to the default zoom. */
|
|
191
|
+
defaultZoom?: number | null;
|
|
192
|
+
}
|
|
193
|
+
export interface DefaultCoordinate {
|
|
194
|
+
type?: string;
|
|
195
|
+
coordinates?: number[];
|
|
196
|
+
crs?: {
|
|
197
|
+
type?: string;
|
|
198
|
+
properties?: {
|
|
199
|
+
name?: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
187
202
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InitialDrawnGeometry, MapLayer, SelectedFeature } from '../components/Map/types';
|
|
1
|
+
import { DefaultCoordinate, 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, disableEditNonUserDrawnGeometries: boolean, enforceWithinRoad: boolean, initialSelectedFeatures?: SelectedFeature[], multiSelectEnabled?: boolean, initialDrawnGeometries?: InitialDrawnGeometry[]) => void;
|
|
3
|
+
export declare const useSetupMap: (id: string, mapLayers: MapLayer[], caseObjectId: number, disableEditNonUserDrawnGeometries: boolean, enforceWithinRoad: boolean, initialSelectedFeatures?: SelectedFeature[], multiSelectEnabled?: boolean, initialDrawnGeometries?: InitialDrawnGeometry[], defaultCoordinate?: DefaultCoordinate | null, defaultZoom?: number | null) => void;
|
package/dist/main.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { type MapConfig } from './components/Map/config';
|
|
2
2
|
export { default as Map } from './components/Map/Map';
|
|
3
|
+
export { type DefaultCoordinate } from './components/Map/types';
|
|
3
4
|
export { default as GemUIMapComponentProvider } from './providers/GemUIMapComponentProvider';
|