@opengeoweb/webmap-react 9.14.0 → 9.15.0
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/index.esm.js +404 -141
- package/package.json +4 -2
- package/src/lib/components/MapDrawTool/utils.d.ts +2 -0
- package/src/lib/components/MapView/MapView.ShiftToZoom.stories.d.ts +10 -0
- package/src/lib/components/Providers/Providers.d.ts +7 -0
- package/src/lib/components/Providers/index.d.ts +1 -0
- package/src/lib/components/ReactMapView/ReactMapView.d.ts +1 -0
- package/src/lib/components/ReactMapView/types.d.ts +2 -1
- package/src/lib/utils/i18n.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/webmap-react",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.15.0",
|
|
4
4
|
"description": "GeoWeb react wrapper for webmap",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"@turf/turf": "^6.5.0",
|
|
19
19
|
"immer": "^10.0.3",
|
|
20
20
|
"react-resize-detector": "^9.1.0",
|
|
21
|
-
"throttle-debounce": "^5.0.0"
|
|
21
|
+
"throttle-debounce": "^5.0.0",
|
|
22
|
+
"i18next": "^23.7.11",
|
|
23
|
+
"react-i18next": "^13.5.0"
|
|
22
24
|
},
|
|
23
25
|
"peerDependencies": {
|
|
24
26
|
"react": "18"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Feature } from '@turf/turf';
|
|
2
2
|
import { FeatureCollection, GeoJsonProperties, Point } from 'geojson';
|
|
3
|
+
import { Bbox } from '@opengeoweb/webmap';
|
|
3
4
|
import { DrawMode, SelectionType } from './types';
|
|
4
5
|
/**
|
|
5
6
|
* Adds properties to the first geojson feature based on the given property object.
|
|
@@ -59,3 +60,4 @@ export declare const isGeoJSONFeatureCreatedByTool: (existingJSON: GeoJSON.Featu
|
|
|
59
60
|
export declare const rewindGeometry: (geoJSON: FeatureCollection) => FeatureCollection;
|
|
60
61
|
export declare const addGeoJSONProperties: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection, newProperties: GeoJsonProperties) => GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
61
62
|
export declare const addSelectionTypeToGeoJSON: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection, selectionType: SelectionType) => GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
63
|
+
export declare const getFeatureExtent: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection) => Bbox;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface WebmapReactTranslationWrapperProps {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const WebmapReactTranslationsWrapper: React.FC<WebmapReactTranslationWrapperProps>;
|
|
6
|
+
export declare const WebmapReactI18nProvider: React.FC<WebmapReactTranslationWrapperProps>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Providers';
|
|
@@ -5,6 +5,7 @@ import { ReactMapViewProps } from './types';
|
|
|
5
5
|
import type { MapViewLayerProps } from '../MapView';
|
|
6
6
|
export declare const ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION = "ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION";
|
|
7
7
|
export declare const ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO = "ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO";
|
|
8
|
+
export declare const MINUTE_TO_MILLISECOND = 60000;
|
|
8
9
|
interface ReactMapViewState {
|
|
9
10
|
adagucInitialised: boolean;
|
|
10
11
|
}
|
|
@@ -22,9 +22,10 @@ export interface ReactMapViewProps {
|
|
|
22
22
|
onClick?: () => void;
|
|
23
23
|
displayMapPin?: boolean;
|
|
24
24
|
mapPinLocation?: MapLocation;
|
|
25
|
-
shouldAutoFetch?: boolean;
|
|
25
|
+
shouldAutoFetch?: number | boolean;
|
|
26
26
|
showLayerInfo?: boolean;
|
|
27
27
|
disableMapPin?: boolean;
|
|
28
|
+
holdShiftToScroll?: boolean;
|
|
28
29
|
onWMJSMount?: (mapId: string) => void;
|
|
29
30
|
onWMJSUnMount?: (mapId: string) => void;
|
|
30
31
|
onMapChangeDimension?: (payload: SetMapDimensionPayload) => void;
|