@opengeoweb/core 9.25.3 → 9.26.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
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { useState, useCallback, useRef } from 'react';
|
|
4
4
|
import { Grid, Box, MenuItem, Typography, useTheme, Popper, Fade, Tooltip, styled, LinearProgress, FormControl, InputLabel, Paper, List, ListItemButton, ListItemText, CircularProgress, ListSubheader, Dialog, DialogTitle, DialogContent, DialogContentText, TextField, InputAdornment, DialogActions, Button, circularProgressClasses, ListItemIcon, Checkbox } from '@mui/material';
|
|
5
|
-
import { SHARED_NAMESPACE, sharedTranslations, CustomIconButton, TooltipSelect, AlertIcon, sliderHeaderStyle, CustomSlider, ToggleMenu, CustomTooltip, tooltipContainerStyles, renderCounter, AlertBanner, CustomAccordion, calculateStartSize, ToolContainerDraggable, useDebounce, dateUtils, withEggs, ErrorBoundary } from '@opengeoweb/shared';
|
|
5
|
+
import { SHARED_NAMESPACE, sharedTranslations, CustomIconButton, TooltipSelect, AlertIcon, sliderHeaderStyle, CustomSlider, ToggleMenu, CustomTooltip, tooltipContainerStyles, renderCounter, AlertBanner, CustomAccordion, PROJECTION, calculateStartSize, ToolContainerDraggable, useDebounce, dateUtils, withEggs, ErrorBoundary } from '@opengeoweb/shared';
|
|
6
6
|
import { CollapseSmall, CollapseMedium, CollapseLarge, CollapseWindow, ExpandWindow, LayersAdd, CloudLoading, Copy, None, FastForward, AutoUpdateActive, Both, Visibility, VisibilityOff, Delete, DragHandle as DragHandle$1, Cached, Add, MapAdd, WorldMapProjection, Layers, ExitDomain, Info, Search, Exclamation, MyLocation, Close, ThemeWrapper, lightTheme } from '@opengeoweb/theme';
|
|
7
7
|
import i18n from 'i18next';
|
|
8
8
|
import { useTranslation, initReactI18next, I18nextProvider } from 'react-i18next';
|
|
@@ -6490,79 +6490,63 @@ const HeaderOptionsConnect = ({
|
|
|
6490
6490
|
});
|
|
6491
6491
|
};
|
|
6492
6492
|
|
|
6493
|
-
const availableProjections = [{
|
|
6494
|
-
name: 'Europe Mercator',
|
|
6495
|
-
value: 'EPSG:3857',
|
|
6493
|
+
const availableProjections = [Object.assign(Object.assign({}, PROJECTION.EPSG_3857), {
|
|
6496
6494
|
bbox: {
|
|
6497
6495
|
left: -1342329.1465696818,
|
|
6498
6496
|
bottom: 3920707.9160590963,
|
|
6499
6497
|
right: 4520696.671030318,
|
|
6500
6498
|
top: 11588870.593609098
|
|
6501
6499
|
}
|
|
6502
|
-
}, {
|
|
6503
|
-
name: 'Northern Hemisphere North Pole',
|
|
6504
|
-
value: 'EPSG:3575',
|
|
6500
|
+
}), Object.assign(Object.assign({}, PROJECTION.EPSG_3575), {
|
|
6505
6501
|
bbox: {
|
|
6506
6502
|
left: -6974291.292427451,
|
|
6507
6503
|
bottom: -4143517.10430627,
|
|
6508
6504
|
right: 7160410.554092634,
|
|
6509
6505
|
top: 3403105.194804561
|
|
6510
6506
|
}
|
|
6511
|
-
}, {
|
|
6512
|
-
name: 'Sea Ice Polar Stereographic North',
|
|
6513
|
-
value: 'EPSG:3411',
|
|
6507
|
+
}), Object.assign(Object.assign({}, PROJECTION.EPSG_3411), {
|
|
6514
6508
|
bbox: {
|
|
6515
6509
|
left: -8586591.790921725,
|
|
6516
6510
|
bottom: -6905418.5308475215,
|
|
6517
6511
|
right: 11520691.230089426,
|
|
6518
6512
|
top: 3830009.2177224844
|
|
6519
6513
|
}
|
|
6520
|
-
}, {
|
|
6521
|
-
name: 'Sea Ice Polar Stereographic South',
|
|
6522
|
-
value: 'EPSG:3412',
|
|
6514
|
+
}), Object.assign(Object.assign({}, PROJECTION.EPSG_3412), {
|
|
6523
6515
|
bbox: {
|
|
6524
6516
|
left: -23805428.64174738,
|
|
6525
6517
|
bottom: -13538921.571034307,
|
|
6526
6518
|
right: 24880766.607377376,
|
|
6527
6519
|
top: 12454999.681458568
|
|
6528
6520
|
}
|
|
6529
|
-
}, {
|
|
6530
|
-
name: 'Europe Polar Stereographic',
|
|
6531
|
-
value: 'EPSG:32661',
|
|
6521
|
+
}), Object.assign(Object.assign({}, PROJECTION.EPSG_32661), {
|
|
6532
6522
|
bbox: {
|
|
6533
6523
|
left: -3078812.468202346,
|
|
6534
6524
|
bottom: -5551735.866551964,
|
|
6535
6525
|
right: 9359725.15673533,
|
|
6536
6526
|
top: 1089291.7566655697
|
|
6537
6527
|
}
|
|
6538
|
-
}, {
|
|
6539
|
-
name: 'Europe Robinson',
|
|
6540
|
-
value: 'EPSG:54030',
|
|
6528
|
+
}), Object.assign(Object.assign({}, PROJECTION.EPSG_54030), {
|
|
6541
6529
|
bbox: {
|
|
6542
6530
|
left: -2020532.0269369134,
|
|
6543
6531
|
bottom: 4102671.9257380506,
|
|
6544
6532
|
right: 3149912.1784659545,
|
|
6545
6533
|
top: 6863210.489656053
|
|
6546
6534
|
}
|
|
6547
|
-
}, {
|
|
6548
|
-
name: 'The Netherlands (28992)',
|
|
6549
|
-
value: 'EPSG:28992',
|
|
6535
|
+
}), Object.assign(Object.assign({}, PROJECTION.EPSG_28992), {
|
|
6550
6536
|
bbox: {
|
|
6551
6537
|
left: -875225.6439854703,
|
|
6552
6538
|
bottom: -36779.36485252716,
|
|
6553
6539
|
right: 1356591.6745628114,
|
|
6554
6540
|
top: 1154804.4779891823
|
|
6555
6541
|
}
|
|
6556
|
-
}, {
|
|
6557
|
-
name: 'ETRS89 / TM35FIN(E,N) -- Finland',
|
|
6558
|
-
value: 'EPSG:3067',
|
|
6542
|
+
}), Object.assign(Object.assign({}, PROJECTION.EPSG_3067), {
|
|
6559
6543
|
bbox: {
|
|
6560
6544
|
left: -1197402.0,
|
|
6561
6545
|
bottom: 6439686.0,
|
|
6562
6546
|
right: 2090705,
|
|
6563
6547
|
top: 7975202
|
|
6564
6548
|
}
|
|
6565
|
-
}];
|
|
6549
|
+
})];
|
|
6566
6550
|
const ProjectionSelect = ({
|
|
6567
6551
|
currentProjection,
|
|
6568
6552
|
onChangeProjection
|
|
@@ -9583,7 +9567,7 @@ const titleStyle = theme => ({
|
|
|
9583
9567
|
userSelect: 'none'
|
|
9584
9568
|
});
|
|
9585
9569
|
const defaultBbox = {
|
|
9586
|
-
srs:
|
|
9570
|
+
srs: PROJECTION.EPSG_3857.value,
|
|
9587
9571
|
bbox: {
|
|
9588
9572
|
left: 58703.6377,
|
|
9589
9573
|
bottom: 6408480.4514,
|
|
@@ -10092,7 +10076,7 @@ const makeMapPreset = (timeIncrement, uniqueId, referenceTime, layers, syncGroup
|
|
|
10092
10076
|
right: 1215891.3289626688,
|
|
10093
10077
|
top: 7540256.313079321
|
|
10094
10078
|
},
|
|
10095
|
-
srs:
|
|
10079
|
+
srs: PROJECTION.EPSG_3857.value,
|
|
10096
10080
|
layers: layers.map((layer, index) => Object.assign(Object.assign({}, layer), {
|
|
10097
10081
|
id: `${uniqueId}-${index}`,
|
|
10098
10082
|
dimensions: [{
|
|
@@ -10183,7 +10167,7 @@ const HarmonieTempAndPrecipPreset = ({
|
|
|
10183
10167
|
right: 1428345.8183648037,
|
|
10184
10168
|
top: 7438773.776232235
|
|
10185
10169
|
},
|
|
10186
|
-
srs:
|
|
10170
|
+
srs: PROJECTION.EPSG_3857.value,
|
|
10187
10171
|
layers: [Object.assign(Object.assign({}, layer), {
|
|
10188
10172
|
id: uniqueId,
|
|
10189
10173
|
dimensions: [{
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { mapTypes } from '@opengeoweb/store';
|
|
3
|
+
import { PlotPreset, TimeSeriesService } from '@opengeoweb/shared';
|
|
3
4
|
import { InitialHarmTempAndPrecipProps } from '../MultiMapViewConnect/HarmoniePresets';
|
|
4
5
|
import { ModelRunIntervalProps } from '../MultiMapViewConnect/ModelRunInterval';
|
|
5
6
|
interface InitialMultiMapProps {
|
|
@@ -20,7 +21,11 @@ export interface InitialMapProps {
|
|
|
20
21
|
shouldDisplayDrawControls?: boolean;
|
|
21
22
|
displaySearchButtonInMap?: boolean;
|
|
22
23
|
}
|
|
23
|
-
export
|
|
24
|
+
export interface InitialTimeSeriesProps {
|
|
25
|
+
plotPreset: PlotPreset;
|
|
26
|
+
services: TimeSeriesService[];
|
|
27
|
+
}
|
|
28
|
+
export type InitialProps = InitialMapProps | InitialMultiMapProps | InitialHarmTempAndPrecipProps | ModelRunIntervalProps | mapTypes.MapPresetInitialProps | InitialSliderProps | InitialTimeSeriesProps;
|
|
24
29
|
/**
|
|
25
30
|
* The lookup table is for registering your own components with the workspace.
|
|
26
31
|
* @param payload
|
|
@@ -15,7 +15,7 @@ export declare const mapPresetRadar: {
|
|
|
15
15
|
right: number;
|
|
16
16
|
top: number;
|
|
17
17
|
};
|
|
18
|
-
srs:
|
|
18
|
+
srs: "EPSG:3857";
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
export declare const mapPresetObsTA: {
|
|
@@ -32,7 +32,7 @@ export declare const mapPresetObsTA: {
|
|
|
32
32
|
right: number;
|
|
33
33
|
top: number;
|
|
34
34
|
};
|
|
35
|
-
srs:
|
|
35
|
+
srs: "EPSG:3857";
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
export declare const mapPresetObsWind: {
|
|
@@ -49,7 +49,7 @@ export declare const mapPresetObsWind: {
|
|
|
49
49
|
right: number;
|
|
50
50
|
top: number;
|
|
51
51
|
};
|
|
52
|
-
srs:
|
|
52
|
+
srs: "EPSG:3857";
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
export declare const mapPresetObsPP: {
|
|
@@ -66,7 +66,7 @@ export declare const mapPresetObsPP: {
|
|
|
66
66
|
right: number;
|
|
67
67
|
top: number;
|
|
68
68
|
};
|
|
69
|
-
srs:
|
|
69
|
+
srs: "EPSG:3857";
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
72
|
export declare const mapPresetObsRH: {
|
|
@@ -83,7 +83,7 @@ export declare const mapPresetObsRH: {
|
|
|
83
83
|
right: number;
|
|
84
84
|
top: number;
|
|
85
85
|
};
|
|
86
|
-
srs:
|
|
86
|
+
srs: "EPSG:3857";
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
89
|
export declare const mapPresetObsQG: {
|
|
@@ -100,7 +100,7 @@ export declare const mapPresetObsQG: {
|
|
|
100
100
|
right: number;
|
|
101
101
|
top: number;
|
|
102
102
|
};
|
|
103
|
-
srs:
|
|
103
|
+
srs: "EPSG:3857";
|
|
104
104
|
};
|
|
105
105
|
};
|
|
106
106
|
export declare const mapPresetEumetsat: {
|
|
@@ -118,7 +118,7 @@ export declare const mapPresetEumetsat: {
|
|
|
118
118
|
right: number;
|
|
119
119
|
top: number;
|
|
120
120
|
};
|
|
121
|
-
srs:
|
|
121
|
+
srs: "EPSG:3857";
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
124
|
export declare const mapPresetHarmoniePrecipitationFlux: {
|
|
@@ -136,7 +136,7 @@ export declare const mapPresetHarmoniePrecipitationFlux: {
|
|
|
136
136
|
right: number;
|
|
137
137
|
top: number;
|
|
138
138
|
};
|
|
139
|
-
srs:
|
|
139
|
+
srs: "EPSG:3857";
|
|
140
140
|
};
|
|
141
141
|
};
|
|
142
142
|
export declare const mapPresetHarmonieTemperature2m: {
|
|
@@ -154,7 +154,7 @@ export declare const mapPresetHarmonieTemperature2m: {
|
|
|
154
154
|
right: number;
|
|
155
155
|
top: number;
|
|
156
156
|
};
|
|
157
|
-
srs:
|
|
157
|
+
srs: "EPSG:3857";
|
|
158
158
|
};
|
|
159
159
|
};
|
|
160
160
|
export declare const mapPresetHarmoniePressureMSL: {
|
|
@@ -172,6 +172,6 @@ export declare const mapPresetHarmoniePressureMSL: {
|
|
|
172
172
|
right: number;
|
|
173
173
|
top: number;
|
|
174
174
|
};
|
|
175
|
-
srs:
|
|
175
|
+
srs: "EPSG:3857";
|
|
176
176
|
};
|
|
177
177
|
};
|