@opengeoweb/webmap-react 9.28.1 → 9.29.1

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.
Files changed (126) hide show
  1. package/index.esm.js +251 -245
  2. package/package.json +1 -1
  3. package/src/index.d.ts +5 -5
  4. package/src/lib/components/Axis/ProfileAxis.d.ts +8 -8
  5. package/src/lib/components/Axis/ProfileAxis.spec.d.ts +1 -1
  6. package/src/lib/components/Axis/ProfileAxis.stories.d.ts +9 -9
  7. package/src/lib/components/Axis/profileUtils.d.ts +17 -17
  8. package/src/lib/components/Axis/profileUtils.spec.d.ts +1 -1
  9. package/src/lib/components/LayerInfo/LayerInfoButton.d.ts +9 -9
  10. package/src/lib/components/LayerInfo/LayerInfoButton.spec.d.ts +1 -1
  11. package/src/lib/components/LayerInfo/LayerInfoDialog.d.ts +14 -14
  12. package/src/lib/components/LayerInfo/LayerInfoDialog.spec.d.ts +1 -1
  13. package/src/lib/components/LayerInfo/LayerInfoDialog.stories.d.ts +25 -25
  14. package/src/lib/components/LayerInfo/LayerInfoLegend.d.ts +9 -9
  15. package/src/lib/components/LayerInfo/LayerInfoLegend.spec.d.ts +1 -1
  16. package/src/lib/components/LayerInfo/LayerInfoList.d.ts +11 -11
  17. package/src/lib/components/LayerInfo/LayerInfoText.d.ts +15 -15
  18. package/src/lib/components/LayerInfo/LayerInfoUtils.d.ts +9 -9
  19. package/src/lib/components/LayerInfo/LayerInfoUtils.spec.d.ts +1 -1
  20. package/src/lib/components/LayerInfo/index.d.ts +6 -6
  21. package/src/lib/components/Legend/Legend.d.ts +7 -7
  22. package/src/lib/components/Legend/Legend.spec.d.ts +1 -1
  23. package/src/lib/components/Legend/Legend.stories.d.ts +8 -8
  24. package/src/lib/components/Legend/LegendButton.d.ts +5 -5
  25. package/src/lib/components/Legend/LegendButton.spec.d.ts +1 -1
  26. package/src/lib/components/Legend/LegendDialog.d.ts +15 -15
  27. package/src/lib/components/Legend/LegendDialog.spec.d.ts +1 -1
  28. package/src/lib/components/Legend/LegendLayout.d.ts +13 -13
  29. package/src/lib/components/Legend/LegendLayout.spec.d.ts +1 -1
  30. package/src/lib/components/Legend/index.d.ts +4 -4
  31. package/src/lib/components/MapControls/MapControlButton.d.ts +10 -10
  32. package/src/lib/components/MapControls/MapControlButton.spec.d.ts +1 -1
  33. package/src/lib/components/MapControls/MapControls.d.ts +7 -7
  34. package/src/lib/components/MapControls/MapControls.spec.d.ts +1 -1
  35. package/src/lib/components/MapControls/ZoomControls.d.ts +8 -8
  36. package/src/lib/components/MapControls/ZoomControls.spec.d.ts +1 -1
  37. package/src/lib/components/MapControls/index.d.ts +3 -3
  38. package/src/lib/components/MapDimensionSelect/DimensionSelectButton.d.ts +8 -8
  39. package/src/lib/components/MapDimensionSelect/DimensionSelectButton.spec.d.ts +1 -1
  40. package/src/lib/components/MapDimensionSelect/DimensionSelectDialog.d.ts +14 -14
  41. package/src/lib/components/MapDimensionSelect/DimensionSelectDialog.stories.d.ts +29 -29
  42. package/src/lib/components/MapDimensionSelect/DimensionSelectSlider.d.ts +14 -14
  43. package/src/lib/components/MapDimensionSelect/DimensionSelectSlider.spec.d.ts +1 -1
  44. package/src/lib/components/MapDimensionSelect/MapDimensionSelect.d.ts +11 -11
  45. package/src/lib/components/MapDimensionSelect/MapDimensionSelect.spec.d.ts +1 -1
  46. package/src/lib/components/MapDimensionSelect/MapDimensionSelect.stories.d.ts +7 -7
  47. package/src/lib/components/MapDimensionSelect/index.d.ts +6 -6
  48. package/src/lib/components/MapDimensionSelect/utils.d.ts +17 -17
  49. package/src/lib/components/MapDimensionSelect/utils.spec.d.ts +1 -1
  50. package/src/lib/components/MapDraw/MapDraw.d.ts +158 -158
  51. package/src/lib/components/MapDraw/MapDraw.spec.d.ts +1 -1
  52. package/src/lib/components/MapDraw/MapDraw.stories.d.ts +37 -37
  53. package/src/lib/components/MapDraw/MapDrawContainer.d.ts +23 -23
  54. package/src/lib/components/MapDraw/MapDrawContainer.spec.d.ts +1 -1
  55. package/src/lib/components/MapDraw/geojsonShapes.d.ts +19 -19
  56. package/src/lib/components/MapDraw/index.d.ts +5 -5
  57. package/src/lib/components/MapDraw/mapDrawUtils.d.ts +44 -44
  58. package/src/lib/components/MapDraw/mapDrawUtils.spec.d.ts +1 -1
  59. package/src/lib/components/MapDraw/storyComponents/EditModeButton.d.ts +8 -8
  60. package/src/lib/components/MapDraw/storyComponents/FeatureInfo.d.ts +3 -3
  61. package/src/lib/components/MapDraw/storyComponents/FeatureInfoHTML.d.ts +3 -3
  62. package/src/lib/components/MapDraw/storyComponents/FeatureLayers.d.ts +9 -9
  63. package/src/lib/components/MapDraw/storyComponents/GeoJSONTextField.d.ts +11 -11
  64. package/src/lib/components/MapDraw/storyComponents/IntersectionSelect.d.ts +12 -12
  65. package/src/lib/components/MapDraw/storyComponents/MapDrawGeoJSON.d.ts +3 -3
  66. package/src/lib/components/MapDraw/storyComponents/SelectField.d.ts +10 -10
  67. package/src/lib/components/MapDraw/storyComponents/StoryLayout.d.ts +10 -10
  68. package/src/lib/components/MapDraw/storyComponents/StoryLayoutGrid.d.ts +5 -5
  69. package/src/lib/components/MapDraw/storyComponents/Synops.d.ts +3 -3
  70. package/src/lib/components/MapDraw/storyComponents/ToolButton.d.ts +10 -10
  71. package/src/lib/components/MapDraw/storyComponents/geojsonExamples.d.ts +12 -12
  72. package/src/lib/components/MapDraw/storyComponents/index.d.ts +8 -8
  73. package/src/lib/components/MapDraw/storyComponents/storyUtils.d.ts +49 -49
  74. package/src/lib/components/MapDrawTool/MapDrawTool.stories.d.ts +13 -13
  75. package/src/lib/components/MapDrawTool/MapDrawToolIntersection.stories.d.ts +11 -11
  76. package/src/lib/components/MapDrawTool/MapDrawToolMultipleDrawTools.stories.d.ts +6 -6
  77. package/src/lib/components/MapDrawTool/index.d.ts +7 -7
  78. package/src/lib/components/MapDrawTool/storyExamplesMapDrawTool.d.ts +10 -10
  79. package/src/lib/components/MapDrawTool/storyExamplesMapDrawToolIntersection.d.ts +10 -10
  80. package/src/lib/components/MapDrawTool/storyExamplesMapDrawToolMultipleDrawTools.d.ts +13 -13
  81. package/src/lib/components/MapDrawTool/types.d.ts +13 -13
  82. package/src/lib/components/MapDrawTool/useMapDrawTool.d.ts +53 -53
  83. package/src/lib/components/MapDrawTool/useMapDrawTool.spec.d.ts +1 -1
  84. package/src/lib/components/MapDrawTool/utils.d.ts +62 -62
  85. package/src/lib/components/MapDrawTool/utils.spec.d.ts +1 -1
  86. package/src/lib/components/MapTime/MapTime.d.ts +11 -11
  87. package/src/lib/components/MapTime/MapTime.spec.d.ts +1 -1
  88. package/src/lib/components/MapTime/index.d.ts +1 -1
  89. package/src/lib/components/MapView/MapView.Error.stories.d.ts +14 -14
  90. package/src/lib/components/MapView/MapView.MapPin.stories.d.ts +10 -10
  91. package/src/lib/components/MapView/MapView.Passive.stories.d.ts +10 -10
  92. package/src/lib/components/MapView/MapView.ProfileSounding.stories.d.ts +9 -9
  93. package/src/lib/components/MapView/MapView.RadarAnimation.stories.d.ts +10 -10
  94. package/src/lib/components/MapView/MapView.RadarData.stories.d.ts +10 -10
  95. package/src/lib/components/MapView/MapView.SetProjectionBBox.stories.d.ts +10 -10
  96. package/src/lib/components/MapView/MapView.SetProjectionBBoxLocalState.stories.d.ts +10 -10
  97. package/src/lib/components/MapView/MapView.ShiftToZoom.stories.d.ts +10 -10
  98. package/src/lib/components/MapView/MapView.ShowLayerInfo.stories.d.ts +10 -10
  99. package/src/lib/components/MapView/MapView.TiledBaseLayers.stories.d.ts +22 -22
  100. package/src/lib/components/MapView/MapView.d.ts +8 -8
  101. package/src/lib/components/MapView/MapView.spec.d.ts +1 -1
  102. package/src/lib/components/MapView/MapViewLayer.d.ts +16 -16
  103. package/src/lib/components/MapView/index.d.ts +2 -2
  104. package/src/lib/components/MapWarning/MapWarningProperties.d.ts +23 -23
  105. package/src/lib/components/MapWarning/MapWarningProperties.spec.d.ts +1 -1
  106. package/src/lib/components/MapWarning/index.d.ts +1 -1
  107. package/src/lib/components/Providers/Providers.d.ts +3 -3
  108. package/src/lib/components/Providers/index.d.ts +1 -1
  109. package/src/lib/components/ReactMapView/ReactMapView.d.ts +64 -64
  110. package/src/lib/components/ReactMapView/ReactMapView.spec.d.ts +2 -2
  111. package/src/lib/components/ReactMapView/ReactMapViewLayer.d.ts +8 -8
  112. package/src/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +4 -4
  113. package/src/lib/components/ReactMapView/ReactMapViewParseLayer.spec.d.ts +1 -1
  114. package/src/lib/components/ReactMapView/index.d.ts +5 -5
  115. package/src/lib/components/ReactMapView/types.d.ts +88 -86
  116. package/src/lib/components/ReactMapView/utils.d.ts +26 -26
  117. package/src/lib/components/ReactMapView/utils.spec.d.ts +1 -1
  118. package/src/lib/components/index.d.ts +12 -12
  119. package/src/lib/index.d.ts +3 -3
  120. package/src/lib/layers/defaultLayers.d.ts +15 -15
  121. package/src/lib/layers/defaultStorybookSettings.d.ts +9 -9
  122. package/src/lib/layers/index.d.ts +3 -3
  123. package/src/lib/layers/profileLayers.d.ts +19 -19
  124. package/src/lib/layers/publicLayers.d.ts +310 -310
  125. package/src/lib/layers/publicServices.d.ts +90 -90
  126. package/src/lib/utils/i18n.d.ts +6 -6
@@ -1,13 +1,13 @@
1
- import React from 'react';
2
- import { DrawMode } from './types';
3
- import { MapDrawToolOptions } from './useMapDrawTool';
4
- export declare const firSelectionType = "fir";
5
- export declare const exampleIntersectionsMultiDrawTool: {
6
- title: string;
7
- geojson: import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
8
- }[];
9
- export declare const getDoubleControlToolIcon: (drawMode: DrawMode) => React.ReactElement;
10
- export declare const getFirTitle: (isNL: boolean) => string;
11
- export declare const updateEditModeButtonsWithFir: (drawModes: DrawMode[], newFirGeoJSON: GeoJSON.FeatureCollection) => DrawMode[];
12
- export declare const startToolExampleConfig: MapDrawToolOptions;
13
- export declare const endToolExampleConfig: MapDrawToolOptions;
1
+ import React from 'react';
2
+ import { DrawMode } from './types';
3
+ import { MapDrawToolOptions } from './useMapDrawTool';
4
+ export declare const firSelectionType = "fir";
5
+ export declare const exampleIntersectionsMultiDrawTool: {
6
+ title: string;
7
+ geojson: import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
8
+ }[];
9
+ export declare const getDoubleControlToolIcon: (drawMode: DrawMode) => React.ReactElement;
10
+ export declare const getFirTitle: (isNL: boolean) => string;
11
+ export declare const updateEditModeButtonsWithFir: (drawModes: DrawMode[], newFirGeoJSON: GeoJSON.FeatureCollection) => DrawMode[];
12
+ export declare const startToolExampleConfig: MapDrawToolOptions;
13
+ export declare const endToolExampleConfig: MapDrawToolOptions;
@@ -1,13 +1,13 @@
1
- import { DRAWMODE } from '../MapDraw/MapDraw';
2
- export type DrawModeValue = DRAWMODE | 'DELETE' | '';
3
- type DefaultSelectionTypes = 'poly' | 'point' | 'box' | 'linestring';
4
- export type SelectionType = DefaultSelectionTypes | string;
5
- export interface DrawMode {
6
- drawModeId: string;
7
- value: DrawModeValue;
8
- shape: GeoJSON.Feature | GeoJSON.FeatureCollection;
9
- title: string;
10
- isSelectable: boolean;
11
- selectionType: SelectionType;
12
- }
13
- export {};
1
+ import { DRAWMODE } from '../MapDraw/MapDraw';
2
+ export type DrawModeValue = DRAWMODE | 'DELETE' | '';
3
+ type DefaultSelectionTypes = 'poly' | 'point' | 'box' | 'linestring';
4
+ export type SelectionType = DefaultSelectionTypes | string;
5
+ export interface DrawMode {
6
+ drawModeId: string;
7
+ value: DrawModeValue;
8
+ shape: GeoJSON.Feature | GeoJSON.FeatureCollection;
9
+ title: string;
10
+ isSelectable: boolean;
11
+ selectionType: SelectionType;
12
+ }
13
+ export {};
@@ -1,53 +1,53 @@
1
- import React from 'react';
2
- import { DrawMode, DrawModeValue, SelectionType } from './types';
3
- import { MapViewLayerProps } from '../MapView';
4
- export declare const defaultIntersectionStyleProperties: GeoJSON.GeoJsonProperties;
5
- export declare const emptyLineString: GeoJSON.Feature;
6
- export declare const emptyPoint: GeoJSON.Feature;
7
- export declare const emptyPolygon: GeoJSON.Feature;
8
- export declare const emptyBox: GeoJSON.Feature;
9
- export declare const emptyIntersectionShape: GeoJSON.FeatureCollection;
10
- type DrawLayerType = 'geoJSON' | 'geoJSONIntersection' | 'geoJSONIntersectionBounds';
11
- export interface MapDrawToolProps {
12
- geoJSON: GeoJSON.FeatureCollection;
13
- geoJSONIntersection?: GeoJSON.FeatureCollection;
14
- geoJSONIntersectionBounds?: GeoJSON.FeatureCollection;
15
- setGeoJSON: (geojson: GeoJSON.Feature | GeoJSON.FeatureCollection, reason?: string) => GeoJSON.FeatureCollection[];
16
- setGeoJSONIntersectionBounds: (geojson: GeoJSON.FeatureCollection) => void;
17
- drawModes: DrawMode[];
18
- changeDrawMode: (mode: DrawModeValue) => void;
19
- setDrawModes: (drawModes: DrawMode[]) => void;
20
- isInEditMode: boolean;
21
- setEditMode: (shouldEnable: boolean) => void;
22
- featureLayerIndex: number;
23
- setFeatureLayerIndex: (newIndex: number) => void;
24
- activeTool: string;
25
- changeActiveTool: (newMode: DrawMode) => void;
26
- setActiveTool: (newToolId: string) => void;
27
- layers: MapViewLayerProps[];
28
- getLayer: (layerType: DrawLayerType, layerId: string) => MapViewLayerProps;
29
- deactivateTool: () => void;
30
- changeProperties: (geoJSONProperties: GeoJSON.GeoJsonProperties) => void;
31
- getProperties: () => GeoJSON.GeoJsonProperties;
32
- }
33
- export interface MapDrawToolOptions {
34
- shouldAllowMultipleShapes?: boolean;
35
- defaultDrawModes?: DrawMode[];
36
- defaultGeoJSON?: GeoJSON.FeatureCollection;
37
- defaultGeoJSONIntersection?: GeoJSON.FeatureCollection;
38
- defaultGeoJSONIntersectionBounds?: GeoJSON.FeatureCollection;
39
- defaultGeoJSONIntersectionProperties?: GeoJSON.GeoJsonProperties;
40
- geoJSONLayerId?: string;
41
- geoJSONIntersectionLayerId?: string;
42
- geoJSONIntersectionBoundsLayerId?: string;
43
- }
44
- export declare const getIcon: (selectionType: SelectionType) => React.ReactElement | null;
45
- export declare const defaultPoint: DrawMode;
46
- export declare const defaultPolygon: DrawMode;
47
- export declare const defaultBox: DrawMode;
48
- export declare const defaultLineString: DrawMode;
49
- export declare const defaultDelete: DrawMode;
50
- export declare const defaultModes: DrawMode[];
51
- export declare const currentlySupportedDrawModes: DrawMode[];
52
- export declare const useMapDrawTool: ({ defaultDrawModes, shouldAllowMultipleShapes, defaultGeoJSON, defaultGeoJSONIntersection, defaultGeoJSONIntersectionBounds, defaultGeoJSONIntersectionProperties, geoJSONLayerId, geoJSONIntersectionLayerId, geoJSONIntersectionBoundsLayerId, }: MapDrawToolOptions) => MapDrawToolProps;
53
- export {};
1
+ import React from 'react';
2
+ import { DrawMode, DrawModeValue, SelectionType } from './types';
3
+ import { MapViewLayerProps } from '../MapView';
4
+ export declare const defaultIntersectionStyleProperties: GeoJSON.GeoJsonProperties;
5
+ export declare const emptyLineString: GeoJSON.Feature;
6
+ export declare const emptyPoint: GeoJSON.Feature;
7
+ export declare const emptyPolygon: GeoJSON.Feature;
8
+ export declare const emptyBox: GeoJSON.Feature;
9
+ export declare const emptyIntersectionShape: GeoJSON.FeatureCollection;
10
+ type DrawLayerType = 'geoJSON' | 'geoJSONIntersection' | 'geoJSONIntersectionBounds';
11
+ export interface MapDrawToolProps {
12
+ geoJSON: GeoJSON.FeatureCollection;
13
+ geoJSONIntersection?: GeoJSON.FeatureCollection;
14
+ geoJSONIntersectionBounds?: GeoJSON.FeatureCollection;
15
+ setGeoJSON: (geojson: GeoJSON.Feature | GeoJSON.FeatureCollection, reason?: string) => GeoJSON.FeatureCollection[];
16
+ setGeoJSONIntersectionBounds: (geojson: GeoJSON.FeatureCollection) => void;
17
+ drawModes: DrawMode[];
18
+ changeDrawMode: (mode: DrawModeValue) => void;
19
+ setDrawModes: (drawModes: DrawMode[]) => void;
20
+ isInEditMode: boolean;
21
+ setEditMode: (shouldEnable: boolean) => void;
22
+ featureLayerIndex: number;
23
+ setFeatureLayerIndex: (newIndex: number) => void;
24
+ activeTool: string;
25
+ changeActiveTool: (newMode: DrawMode) => void;
26
+ setActiveTool: (newToolId: string) => void;
27
+ layers: MapViewLayerProps[];
28
+ getLayer: (layerType: DrawLayerType, layerId: string) => MapViewLayerProps;
29
+ deactivateTool: () => void;
30
+ changeProperties: (geoJSONProperties: GeoJSON.GeoJsonProperties) => void;
31
+ getProperties: () => GeoJSON.GeoJsonProperties;
32
+ }
33
+ export interface MapDrawToolOptions {
34
+ shouldAllowMultipleShapes?: boolean;
35
+ defaultDrawModes?: DrawMode[];
36
+ defaultGeoJSON?: GeoJSON.FeatureCollection;
37
+ defaultGeoJSONIntersection?: GeoJSON.FeatureCollection;
38
+ defaultGeoJSONIntersectionBounds?: GeoJSON.FeatureCollection;
39
+ defaultGeoJSONIntersectionProperties?: GeoJSON.GeoJsonProperties;
40
+ geoJSONLayerId?: string;
41
+ geoJSONIntersectionLayerId?: string;
42
+ geoJSONIntersectionBoundsLayerId?: string;
43
+ }
44
+ export declare const getIcon: (selectionType: SelectionType) => React.ReactElement | null;
45
+ export declare const defaultPoint: DrawMode;
46
+ export declare const defaultPolygon: DrawMode;
47
+ export declare const defaultBox: DrawMode;
48
+ export declare const defaultLineString: DrawMode;
49
+ export declare const defaultDelete: DrawMode;
50
+ export declare const defaultModes: DrawMode[];
51
+ export declare const currentlySupportedDrawModes: DrawMode[];
52
+ export declare const useMapDrawTool: ({ defaultDrawModes, shouldAllowMultipleShapes, defaultGeoJSON, defaultGeoJSONIntersection, defaultGeoJSONIntersectionBounds, defaultGeoJSONIntersectionProperties, geoJSONLayerId, geoJSONIntersectionLayerId, geoJSONIntersectionBoundsLayerId, }: MapDrawToolOptions) => MapDrawToolProps;
53
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,62 +1,62 @@
1
- import { Feature, FeatureCollection, GeoJsonProperties, Point } from 'geojson';
2
- import { Bbox } from '@opengeoweb/webmap';
3
- import { DrawMode, SelectionType } from './types';
4
- /**
5
- * Adds properties to the first geojson feature based on the given property object.
6
- * It only extends or changes the properties which are defined in styleConfig,
7
- * all other properties in the geojson are left unchanged.
8
- * @param geojson
9
- * @param featureProperties
10
- */
11
- export declare const addFeatureProperties: (geojson: GeoJSON.FeatureCollection | undefined, featureProperties: GeoJSON.GeoJsonProperties, featureIndex?: number) => GeoJSON.FeatureCollection;
12
- export declare const getGeoJSONPropertyValue: (property: string, properties: GeoJSON.GeoJsonProperties, polygonDrawMode: DrawMode | undefined, defaultProperties?: GeoJSON.GeoJsonProperties) => number | string;
13
- /**
14
- * moves geoJSON feature as new feature. Mutates newGeoJSON
15
- * @constructor
16
- * @param {GeoJSON.FeatureCollection} currentGeoJSON - current geoJSON
17
- * @param {GeoJSON.FeatureCollection} newGeoJSON - new geoJSON
18
- * @param {number} featureLayerIndex - feature layer index
19
- * @param {string} text - reason of change
20
- */
21
- export declare const moveFeature: (currentGeoJSON: GeoJSON.FeatureCollection, newGeoJSON: GeoJSON.FeatureCollection, featureLayerIndex: number, reason: string, selectionType?: string) => number | undefined;
22
- /**
23
- * Returns the intersection of two point features. In case of a polygon, only the first feature is used.
24
- * @param a Feature A
25
- * @param b Feature B
26
- * @returns The intersection of the two features.
27
- */
28
- export declare const intersectPointGeoJSONS: (a: GeoJSON.FeatureCollection<GeoJSON.Point>, b: GeoJSON.FeatureCollection, geoJSONProperties?: {
29
- stroke: string;
30
- 'stroke-width': number;
31
- 'stroke-opacity': number;
32
- fill: string;
33
- 'fill-opacity': number;
34
- }) => GeoJSON.FeatureCollection;
35
- /**
36
- * Returns the intersection of two (multi) polygon features. In case of a polygon, only the first feature is used.
37
- * @param a Feature A
38
- * @param b Feature B
39
- * @returns The intersection of the two features.
40
- */
41
- export declare const intersectPolygonGeoJSONS: (a: GeoJSON.FeatureCollection, b: GeoJSON.FeatureCollection, geoJSONProperties?: {
42
- stroke: string;
43
- 'stroke-width': number;
44
- 'stroke-opacity': number;
45
- fill: string;
46
- 'fill-opacity': number;
47
- }) => GeoJSON.FeatureCollection;
48
- export declare const isPointFeatureCollection: (geojson: GeoJSON.FeatureCollection) => geojson is FeatureCollection<Point, GeoJsonProperties>;
49
- /**
50
- * Adds the intersectionStart and intersectionEnd properties to the GeoJSONS structure
51
- * @param geoJSONs
52
- * @returns GeoJSONS extend with intersections
53
- */
54
- export declare const createInterSections: (geojson: GeoJSON.FeatureCollection, otherGeoJSON: GeoJSON.FeatureCollection, geoJSONproperties?: GeoJSON.GeoJsonProperties) => GeoJSON.FeatureCollection;
55
- export declare const getGeoJson: (geojson: GeoJSON.FeatureCollection, shouldAllowMultipleShapes: boolean) => GeoJSON.FeatureCollection;
56
- export declare const getLastEmptyFeatureIndex: (geoJSONFeatureCollection: GeoJSON.FeatureCollection) => number | undefined;
57
- export declare const getFeatureCollection: (geoJSONFeature: GeoJSON.Feature | GeoJSON.FeatureCollection, shouldAllowMultipleShapes: boolean, geoJSONFeatureCollection?: GeoJSON.FeatureCollection) => GeoJSON.FeatureCollection;
58
- export declare const isGeoJSONFeatureCreatedByTool: (existingJSON: GeoJSON.FeatureCollection, selectionType: SelectionType, featureLayerIndex?: number) => boolean;
59
- export declare const rewindGeometry: (geoJSON: FeatureCollection) => FeatureCollection;
60
- export declare const addGeoJSONProperties: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection, newProperties: GeoJsonProperties) => GeoJSON.Feature | GeoJSON.FeatureCollection;
61
- export declare const addSelectionTypeToGeoJSON: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection, selectionType: SelectionType) => GeoJSON.Feature | GeoJSON.FeatureCollection;
62
- export declare const getFeatureExtent: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection) => Bbox;
1
+ import { Feature, FeatureCollection, GeoJsonProperties, Point } from 'geojson';
2
+ import { Bbox } from '@opengeoweb/webmap';
3
+ import { DrawMode, SelectionType } from './types';
4
+ /**
5
+ * Adds properties to the first geojson feature based on the given property object.
6
+ * It only extends or changes the properties which are defined in styleConfig,
7
+ * all other properties in the geojson are left unchanged.
8
+ * @param geojson
9
+ * @param featureProperties
10
+ */
11
+ export declare const addFeatureProperties: (geojson: GeoJSON.FeatureCollection | undefined, featureProperties: GeoJSON.GeoJsonProperties, featureIndex?: number) => GeoJSON.FeatureCollection;
12
+ export declare const getGeoJSONPropertyValue: (property: string, properties: GeoJSON.GeoJsonProperties, polygonDrawMode: DrawMode | undefined, defaultProperties?: GeoJSON.GeoJsonProperties) => number | string;
13
+ /**
14
+ * moves geoJSON feature as new feature. Mutates newGeoJSON
15
+ * @constructor
16
+ * @param {GeoJSON.FeatureCollection} currentGeoJSON - current geoJSON
17
+ * @param {GeoJSON.FeatureCollection} newGeoJSON - new geoJSON
18
+ * @param {number} featureLayerIndex - feature layer index
19
+ * @param {string} text - reason of change
20
+ */
21
+ export declare const moveFeature: (currentGeoJSON: GeoJSON.FeatureCollection, newGeoJSON: GeoJSON.FeatureCollection, featureLayerIndex: number, reason: string, selectionType?: string) => number | undefined;
22
+ /**
23
+ * Returns the intersection of two point features. In case of a polygon, only the first feature is used.
24
+ * @param a Feature A
25
+ * @param b Feature B
26
+ * @returns The intersection of the two features.
27
+ */
28
+ export declare const intersectPointGeoJSONS: (a: GeoJSON.FeatureCollection<GeoJSON.Point>, b: GeoJSON.FeatureCollection, geoJSONProperties?: {
29
+ stroke: string;
30
+ 'stroke-width': number;
31
+ 'stroke-opacity': number;
32
+ fill: string;
33
+ 'fill-opacity': number;
34
+ }) => GeoJSON.FeatureCollection;
35
+ /**
36
+ * Returns the intersection of two (multi) polygon features. In case of a polygon, only the first feature is used.
37
+ * @param a Feature A
38
+ * @param b Feature B
39
+ * @returns The intersection of the two features.
40
+ */
41
+ export declare const intersectPolygonGeoJSONS: (a: GeoJSON.FeatureCollection, b: GeoJSON.FeatureCollection, geoJSONProperties?: {
42
+ stroke: string;
43
+ 'stroke-width': number;
44
+ 'stroke-opacity': number;
45
+ fill: string;
46
+ 'fill-opacity': number;
47
+ }) => GeoJSON.FeatureCollection;
48
+ export declare const isPointFeatureCollection: (geojson: GeoJSON.FeatureCollection) => geojson is FeatureCollection<Point, GeoJsonProperties>;
49
+ /**
50
+ * Adds the intersectionStart and intersectionEnd properties to the GeoJSONS structure
51
+ * @param geoJSONs
52
+ * @returns GeoJSONS extend with intersections
53
+ */
54
+ export declare const createInterSections: (geojson: GeoJSON.FeatureCollection, otherGeoJSON: GeoJSON.FeatureCollection, geoJSONproperties?: GeoJSON.GeoJsonProperties) => GeoJSON.FeatureCollection;
55
+ export declare const getGeoJson: (geojson: GeoJSON.FeatureCollection, shouldAllowMultipleShapes: boolean) => GeoJSON.FeatureCollection;
56
+ export declare const getLastEmptyFeatureIndex: (geoJSONFeatureCollection: GeoJSON.FeatureCollection) => number | undefined;
57
+ export declare const getFeatureCollection: (geoJSONFeature: GeoJSON.Feature | GeoJSON.FeatureCollection, shouldAllowMultipleShapes: boolean, geoJSONFeatureCollection?: GeoJSON.FeatureCollection) => GeoJSON.FeatureCollection;
58
+ export declare const isGeoJSONFeatureCreatedByTool: (existingJSON: GeoJSON.FeatureCollection, selectionType: SelectionType, featureLayerIndex?: number) => boolean;
59
+ export declare const rewindGeometry: (geoJSON: FeatureCollection) => FeatureCollection;
60
+ export declare const addGeoJSONProperties: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection, newProperties: GeoJsonProperties) => GeoJSON.Feature | GeoJSON.FeatureCollection;
61
+ export declare const addSelectionTypeToGeoJSON: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection, selectionType: SelectionType) => GeoJSON.Feature | GeoJSON.FeatureCollection;
62
+ export declare const getFeatureExtent: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection) => Bbox;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,11 +1,11 @@
1
- import * as React from 'react';
2
- import { Dimension } from '@opengeoweb/webmap';
3
- export declare const getTimeDimension: (dimensions: Dimension[]) => Dimension;
4
- export declare const formatTime: (time: string, timeFormat: string) => string;
5
- interface MapeTimeProps {
6
- dimensions: Dimension[];
7
- timeFormat?: string;
8
- }
9
- export declare const defaultTimeFormat = "EEE dd MMM yyyy HH:mm 'UTC'";
10
- export declare const MapTime: React.FC<MapeTimeProps>;
11
- export {};
1
+ import * as React from 'react';
2
+ import { Dimension } from '@opengeoweb/webmap';
3
+ export declare const getTimeDimension: (dimensions: Dimension[]) => Dimension;
4
+ export declare const formatTime: (time: string, timeFormat: string) => string;
5
+ interface MapeTimeProps {
6
+ dimensions: Dimension[];
7
+ timeFormat?: string;
8
+ }
9
+ export declare const defaultTimeFormat = "EEE dd MMM yyyy HH:mm 'UTC'";
10
+ export declare const MapTime: React.FC<MapeTimeProps>;
11
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export * from './MapTime';
1
+ export * from './MapTime';
@@ -1,14 +1,14 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./MapView").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const MapError: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
11
- export declare const MapWithDuplicateLayerIdsError: {
12
- (): React.ReactElement;
13
- storyName: string;
14
- };
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<import("./MapView").MapViewProps>;
5
+ };
6
+ export default _default;
7
+ export declare const MapError: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
11
+ export declare const MapWithDuplicateLayerIdsError: {
12
+ (): React.ReactElement;
13
+ storyName: string;
14
+ };
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./MapView").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const SetMapPin: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<import("./MapView").MapViewProps>;
5
+ };
6
+ export default _default;
7
+ export declare const SetMapPin: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./MapView").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const PassiveMap: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<import("./MapView").MapViewProps>;
5
+ };
6
+ export default _default;
7
+ export declare const PassiveMap: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
@@ -1,9 +1,9 @@
1
- import * as React from 'react';
2
- export declare const MapViewProfile: {
3
- (): React.ReactElement;
4
- storyName: string;
5
- };
6
- declare const _default: {
7
- title: string;
8
- };
9
- export default _default;
1
+ import * as React from 'react';
2
+ export declare const MapViewProfile: {
3
+ (): React.ReactElement;
4
+ storyName: string;
5
+ };
6
+ declare const _default: {
7
+ title: string;
8
+ };
9
+ export default _default;
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./MapView").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const RadarAnimation: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<import("./MapView").MapViewProps>;
5
+ };
6
+ export default _default;
7
+ export declare const RadarAnimation: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./MapView").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const MapViewRadar: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<import("./MapView").MapViewProps>;
5
+ };
6
+ export default _default;
7
+ export declare const MapViewRadar: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./MapView").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const SetProjectionBBox: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<import("./MapView").MapViewProps>;
5
+ };
6
+ export default _default;
7
+ export declare const SetProjectionBBox: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./MapView").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const SetProjectionBBoxLocalState: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<import("./MapView").MapViewProps>;
5
+ };
6
+ export default _default;
7
+ export declare const SetProjectionBBoxLocalState: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./MapView").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const HoldShiftToZoom: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<import("./MapView").MapViewProps>;
5
+ };
6
+ export default _default;
7
+ export declare const HoldShiftToZoom: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
@@ -1,10 +1,10 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./MapView").MapViewProps>;
5
- };
6
- export default _default;
7
- export declare const MapWithShowLayerInfoEnabled: {
8
- (): React.ReactElement;
9
- storyName: string;
10
- };
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<import("./MapView").MapViewProps>;
5
+ };
6
+ export default _default;
7
+ export declare const MapWithShowLayerInfoEnabled: {
8
+ (): React.ReactElement;
9
+ storyName: string;
10
+ };
@@ -1,22 +1,22 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./MapView").MapViewProps>;
5
- };
6
- export default _default;
7
- export interface MapDropDownItem {
8
- name: string;
9
- title: string;
10
- }
11
- export interface MapDropDownProps {
12
- value: string;
13
- change: (updatedValue: string) => void;
14
- options: MapDropDownItem[];
15
- top?: number;
16
- left?: number;
17
- }
18
- export declare const MapDropDown: ({ value, change, options, top, left, }: MapDropDownProps) => React.ReactElement<MapDropDownProps>;
19
- export declare const MapViewTiledBaseLayers: {
20
- (): React.ReactElement;
21
- storyName: string;
22
- };
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<import("./MapView").MapViewProps>;
5
+ };
6
+ export default _default;
7
+ export interface MapDropDownItem {
8
+ name: string;
9
+ title: string;
10
+ }
11
+ export interface MapDropDownProps {
12
+ value: string;
13
+ change: (updatedValue: string) => void;
14
+ options: MapDropDownItem[];
15
+ top?: number;
16
+ left?: number;
17
+ }
18
+ export declare const MapDropDown: ({ value, change, options, top, left, }: MapDropDownProps) => React.ReactElement<MapDropDownProps>;
19
+ export declare const MapViewTiledBaseLayers: {
20
+ (): React.ReactElement;
21
+ storyName: string;
22
+ };
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- import { ReactMapViewProps } from '../ReactMapView';
3
- export interface MapViewProps extends ReactMapViewProps {
4
- controls?: {
5
- zoomControls?: boolean;
6
- };
7
- }
8
- export declare const MapView: React.FC<MapViewProps>;
1
+ import * as React from 'react';
2
+ import { ReactMapViewProps } from '../ReactMapView';
3
+ export interface MapViewProps extends ReactMapViewProps {
4
+ controls?: {
5
+ zoomControls?: boolean;
6
+ };
7
+ }
8
+ export declare const MapView: React.FC<MapViewProps>;
@@ -1 +1 @@
1
- export {};
1
+ export {};