@opengeoweb/webmap-react 12.9.1 → 12.10.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 +11084 -12307
- package/package.json +4 -4
- package/src/index.d.ts +2 -5
- package/src/lib/components/MapDrawTool/utils.d.ts +6 -6
- package/src/lib/components/OpenLayers/OlStyles.d.ts +1 -1
- package/src/lib/components/OpenLayers/controls/OpenLayersGetFeatureInfo.d.ts +1 -1
- package/src/lib/components/OpenLayers/draw/types.d.ts +0 -15
- package/src/lib/components/OpenLayers/index.d.ts +1 -0
- package/src/lib/components/index.d.ts +0 -3
- package/src/lib/index.d.ts +2 -0
- package/src/lib/types/index.d.ts +1 -0
- package/src/lib/utils/index.d.ts +1 -0
- package/src/lib/utils/utils.d.ts +4 -0
- package/src/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +0 -4
- package/src/lib/components/ReactMapView/ReactMapViewParseLayer.spec.d.ts +0 -1
- package/src/lib/components/ReactMapView/index.d.ts +0 -3
- package/src/lib/components/ReactMapView/utils.d.ts +0 -18
- /package/src/lib/{components/ReactMapView → types}/types.d.ts +0 -0
- /package/src/lib/{components/ReactMapView → utils}/utils.spec.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/webmap-react",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.10.0",
|
|
4
4
|
"description": "GeoWeb react wrapper for webmap",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/webmap": "12.
|
|
12
|
-
"@opengeoweb/theme": "12.
|
|
13
|
-
"@opengeoweb/shared": "12.
|
|
11
|
+
"@opengeoweb/webmap": "12.10.0",
|
|
12
|
+
"@opengeoweb/theme": "12.10.0",
|
|
13
|
+
"@opengeoweb/shared": "12.10.0",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
15
|
"ol": "^10.4.0",
|
|
16
16
|
"proj4": "^2.9.2",
|
package/src/index.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { WEBMAP_NAMESPACE, webmapTranslations } from '@opengeoweb/webmap';
|
|
2
2
|
import webmapReactTranslations from '../locales/webmap-react.json';
|
|
3
|
-
import { OpenLayersLayerProps, OpenLayersLayer } from './lib/components/OpenLayers/layers/OpenLayersLayer';
|
|
4
|
-
import { DefaultBaseLayers } from './lib/components/OpenLayers/layers/DefaultBaseLayers';
|
|
5
|
-
import { OpenLayersFeatureLayer, TimeAwareEDRLocationLayer, WMSLayer } from './lib/components/OpenLayers/layers';
|
|
6
3
|
import TimeContext from './lib/components/OpenLayers/context/TimeContext';
|
|
7
4
|
import { TimeContextType } from './lib/components/OpenLayers/types/Timespan';
|
|
8
5
|
import { TimeawareImageSource } from './lib/components/OpenLayers/utils/TimeawareImageSource';
|
|
9
6
|
export * from './lib';
|
|
10
7
|
export { webmapReactTranslations };
|
|
11
8
|
export { WEBMAP_NAMESPACE, webmapTranslations };
|
|
12
|
-
export { TimeContext, TimeawareImageSource
|
|
13
|
-
export type { TimeContextType
|
|
9
|
+
export { TimeContext, TimeawareImageSource };
|
|
10
|
+
export type { TimeContextType };
|
|
@@ -31,11 +31,11 @@ export declare const getGeoJSONPropertyValue: (property: string, properties: Geo
|
|
|
31
31
|
export declare const moveFeature: (currentGeoJSON: GeoJSON.FeatureCollection, newGeoJSON: GeoJSON.FeatureCollection, featureLayerIndex: number, reason: string, selectionType?: string) => number | undefined;
|
|
32
32
|
/**
|
|
33
33
|
* Returns the intersection of two point features. In case of a polygon, only the first feature is used.
|
|
34
|
-
* @param
|
|
35
|
-
* @param
|
|
34
|
+
* @param intersectA Feature A
|
|
35
|
+
* @param intersectB Feature B
|
|
36
36
|
* @returns The intersection of the two features.
|
|
37
37
|
*/
|
|
38
|
-
export declare const intersectPointGeoJSONS: (
|
|
38
|
+
export declare const intersectPointGeoJSONS: (intersectA: GeoJSON.FeatureCollection<GeoJSON.Point>, intersectB: GeoJSON.FeatureCollection, geoJSONProperties?: {
|
|
39
39
|
stroke: string;
|
|
40
40
|
'stroke-width': number;
|
|
41
41
|
'stroke-opacity': number;
|
|
@@ -44,11 +44,11 @@ export declare const intersectPointGeoJSONS: (a: GeoJSON.FeatureCollection<GeoJS
|
|
|
44
44
|
}) => GeoJSON.FeatureCollection;
|
|
45
45
|
/**
|
|
46
46
|
* Returns the intersection of two (multi) polygon features. In case of a polygon, only the first feature is used.
|
|
47
|
-
* @param
|
|
48
|
-
* @param
|
|
47
|
+
* @param intersectA Feature A
|
|
48
|
+
* @param intersectB Feature B
|
|
49
49
|
* @returns The intersection of the two features.
|
|
50
50
|
*/
|
|
51
|
-
export declare const intersectPolygonGeoJSONS: (
|
|
51
|
+
export declare const intersectPolygonGeoJSONS: (intersectA: GeoJSON.FeatureCollection, intersectB: GeoJSON.FeatureCollection, geoJSONProperties?: {
|
|
52
52
|
stroke: string;
|
|
53
53
|
'stroke-width': number;
|
|
54
54
|
'stroke-opacity': number;
|
|
@@ -23,7 +23,7 @@ export declare const textLabelStyle: (text: string) => Style;
|
|
|
23
23
|
export declare const multiPolygonLabelStyle: (text: string) => Style;
|
|
24
24
|
export declare const multiLineStringLabelStyle: (text: string) => Style;
|
|
25
25
|
export declare const geowebColorToOpenLayersColor: (color: string, opacity?: string | number) => ColorLike;
|
|
26
|
-
export declare const inlineFeatureStyle: (
|
|
26
|
+
export declare const inlineFeatureStyle: (feature: FeatureLike) => Style[];
|
|
27
27
|
export declare const genericOpenLayersFeatureStyle: StyleFunction;
|
|
28
28
|
export declare const drawStyles: Record<DrawModeValue, StyleLike>;
|
|
29
29
|
export declare const modifyStyles: Record<DrawModeValue, Style[]>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { GeometryObject } from 'geojson';
|
|
2
1
|
export declare enum DRAWMODE {
|
|
3
2
|
POLYGON = "POLYGON",
|
|
4
3
|
BOX = "BOX",
|
|
@@ -18,18 +17,4 @@ export interface FeatureEvent {
|
|
|
18
17
|
isInEditMode: boolean;
|
|
19
18
|
feature: GeoJSON.Feature;
|
|
20
19
|
}
|
|
21
|
-
export interface FeatureLayer {
|
|
22
|
-
id: string;
|
|
23
|
-
type: string;
|
|
24
|
-
features: [];
|
|
25
|
-
isInEditMode?: boolean;
|
|
26
|
-
isInDeleteMode?: boolean;
|
|
27
|
-
geojson?: GeoJSON.FeatureCollection;
|
|
28
|
-
drawMode?: string;
|
|
29
|
-
onHoverFeature?: (feature: FeatureEvent) => void;
|
|
30
|
-
onClickFeature?: (feature: FeatureEvent) => void;
|
|
31
|
-
updateGeojson?: (feature: GeometryObject, reason: string) => void;
|
|
32
|
-
exitDrawModeCallback?: (reason: DrawModeExitCallback, newGeoJSON?: GeoJSON.FeatureCollection) => void;
|
|
33
|
-
selectedFeatureIndex?: string;
|
|
34
|
-
}
|
|
35
20
|
export type DrawModeExitCallback = 'escaped' | 'doubleClicked' | 'shiftClick';
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export * from './Legend';
|
|
2
2
|
export * from './MapDraw';
|
|
3
3
|
export * from './MapDrawTool';
|
|
4
|
-
export * from './ReactMapView';
|
|
5
|
-
export * from './ReactMapView/ReactMapViewParseLayer';
|
|
6
|
-
export * from './ReactMapView/utils';
|
|
7
4
|
export * from './MapTime';
|
|
8
5
|
export * from './MapControls';
|
|
9
6
|
export * from './MapWarning';
|
package/src/lib/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './utils';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Dimension, WMLayer } from '@opengeoweb/webmap';
|
|
2
|
+
import { UpdateLayerInfoPayload } from '../types/types';
|
|
3
|
+
export declare function getIsInsideAcceptanceTime(acceptanceTimeInMinutes: number | undefined, mapDimensions: Dimension[] | undefined, layerDimensions: Dimension[] | undefined): boolean;
|
|
4
|
+
export declare const getLayerUpdateInfo: (wmLayer: WMLayer, mapId: string) => UpdateLayerInfoPayload;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { WMLayer, WMJSDimension } from '@opengeoweb/webmap';
|
|
2
|
-
import { UpdateLayerInfoPayload } from './types';
|
|
3
|
-
export declare const getCurrentDimensionValue: (name: string, dimensions?: WMJSDimension[]) => string;
|
|
4
|
-
export declare const getLayerUpdateInfo: (wmLayer: WMLayer, mapId: string) => UpdateLayerInfoPayload;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const mockGeoJSON: GeoJSON.FeatureCollection;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Dimension, LayerFoundation } from '@opengeoweb/webmap';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { FeatureLayer } from '../OpenLayers/draw/types';
|
|
4
|
-
/** Returns filtered list of props with geoJson
|
|
5
|
-
* @param children React.ReactNode, layers with geoJson
|
|
6
|
-
*/
|
|
7
|
-
export declare const getFeatureLayers: (children: React.ReactNode) => FeatureLayer[];
|
|
8
|
-
/**
|
|
9
|
-
* Returns true if this is a maplayer and not a baselayer or overlayer
|
|
10
|
-
* @param layer The LayerFoundation object, or the props from the ReactWMJSLayer
|
|
11
|
-
*/
|
|
12
|
-
export declare const isAMapLayer: (layer: LayerFoundation) => boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Returns true if this is a geojsonlayer (layer containing geojson field)
|
|
15
|
-
* @param layer The LayerFoundation object, or the props from the ReactWMJSLayer
|
|
16
|
-
*/
|
|
17
|
-
export declare const isAGeoJSONLayer: (layer: LayerFoundation) => boolean;
|
|
18
|
-
export declare function getIsInsideAcceptanceTime(acceptanceTimeInMinutes: number | undefined, mapDimensions: Dimension[] | undefined, layerDimensions: Dimension[] | undefined): boolean;
|
|
File without changes
|
|
File without changes
|