@opengeoweb/core 12.3.0 → 12.4.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.
package/index.esm.js
CHANGED
|
@@ -8183,12 +8183,14 @@ var NowButtonConnect = function NowButtonConnect(_ref) {
|
|
|
8183
8183
|
* Expects the following props:
|
|
8184
8184
|
* @param {string} mapId mapId: string - Id of the map
|
|
8185
8185
|
* @param {string} sourceId mapId: string - Id of the source
|
|
8186
|
+
* @param {boolean} isVisible mapId: boolean - Whether the time slider is visible or not
|
|
8186
8187
|
* @example
|
|
8187
|
-
* ``` <TimeSliderButtonsConnect mapId={mapId} sourceId={sourceId} />```
|
|
8188
|
+
* ``` <TimeSliderButtonsConnect mapId={mapId} sourceId={sourceId} isVisible={isVisible} />```
|
|
8188
8189
|
*/
|
|
8189
8190
|
var TimeSliderButtonsConnectComponent = function TimeSliderButtonsConnectComponent(_ref) {
|
|
8190
8191
|
var sourceId = _ref.sourceId,
|
|
8191
|
-
mapId = _ref.mapId
|
|
8192
|
+
mapId = _ref.mapId,
|
|
8193
|
+
isVisible = _ref.isVisible;
|
|
8192
8194
|
return jsx(TimeSliderButtons, {
|
|
8193
8195
|
nowBtn: jsx(NowButtonConnect, {
|
|
8194
8196
|
mapId: mapId,
|
|
@@ -8210,7 +8212,8 @@ var TimeSliderButtonsConnectComponent = function TimeSliderButtonsConnectCompone
|
|
|
8210
8212
|
forwardBtn: jsx(BackwardForwardStepButtonConnect, {
|
|
8211
8213
|
mapId: mapId,
|
|
8212
8214
|
isForwardStep: true
|
|
8213
|
-
})
|
|
8215
|
+
}),
|
|
8216
|
+
isVisible: isVisible
|
|
8214
8217
|
});
|
|
8215
8218
|
};
|
|
8216
8219
|
var TimeSliderButtonsConnect = /*#__PURE__*/React.memo(TimeSliderButtonsConnectComponent);
|
|
@@ -8679,6 +8682,7 @@ var TimeSliderConnect = function TimeSliderConnect(_ref) {
|
|
|
8679
8682
|
},
|
|
8680
8683
|
selectedTime: selectedTime,
|
|
8681
8684
|
buttons: jsx(TimeSliderButtonsConnect, {
|
|
8685
|
+
isVisible: isVisible,
|
|
8682
8686
|
mapId: mapId,
|
|
8683
8687
|
sourceId: sourceId
|
|
8684
8688
|
}),
|
|
@@ -8936,50 +8940,79 @@ var ConfigurableMapConnect = function ConfigurableMapConnect(_ref) {
|
|
|
8936
8940
|
return jsxs(Box, {
|
|
8937
8941
|
ref: mapWindowRef,
|
|
8938
8942
|
sx: {
|
|
8939
|
-
width: '100%',
|
|
8940
|
-
height: '100%',
|
|
8941
8943
|
position: 'relative',
|
|
8942
|
-
|
|
8944
|
+
minHeight: '100dvh',
|
|
8945
|
+
display: 'flex'
|
|
8943
8946
|
},
|
|
8944
8947
|
"data-testid": "ConfigurableMap",
|
|
8945
8948
|
children: [title && jsx(Typography, {
|
|
8946
8949
|
"data-testid": "mapTitle",
|
|
8947
8950
|
sx: titleStyle,
|
|
8948
8951
|
children: title
|
|
8952
|
+
}), jsxs(Box, {
|
|
8953
|
+
sx: {
|
|
8954
|
+
flex: '1'
|
|
8955
|
+
},
|
|
8956
|
+
children: [useOl ? jsx(OlMapViewConnect, {
|
|
8957
|
+
controls: mapControlConfig,
|
|
8958
|
+
displayTimeInMap: displayTimeInMap,
|
|
8959
|
+
showScaleBar: false,
|
|
8960
|
+
shouldAutoFetch: shouldAutoFetch,
|
|
8961
|
+
mapId: mapId,
|
|
8962
|
+
initialBbox: initialBbox,
|
|
8963
|
+
shouldDisablePrefetching: shouldDisablePrefetching,
|
|
8964
|
+
tileServerSettings: tileServerSettings,
|
|
8965
|
+
children: children
|
|
8966
|
+
}) : jsx(MapViewConnect, {
|
|
8967
|
+
controls: mapControlConfig,
|
|
8968
|
+
displayTimeInMap: displayTimeInMap,
|
|
8969
|
+
showScaleBar: false,
|
|
8970
|
+
shouldAutoFetch: shouldAutoFetch,
|
|
8971
|
+
mapId: mapId,
|
|
8972
|
+
shouldDisablePrefetching: shouldDisablePrefetching,
|
|
8973
|
+
tileServerSettings: tileServerSettings,
|
|
8974
|
+
children: children
|
|
8975
|
+
}), showClock && jsx(TimeSliderClockConnect, {
|
|
8976
|
+
mapId: mapId
|
|
8977
|
+
})]
|
|
8949
8978
|
}), !disableTimeSlider && jsx(Box, {
|
|
8950
8979
|
sx: {
|
|
8951
8980
|
position: 'absolute',
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8981
|
+
width: '100%',
|
|
8982
|
+
paddingRight: 'env(safe-area-inset-right)',
|
|
8983
|
+
'@media screen and (orientation: landscape)': {
|
|
8984
|
+
minHeight: {
|
|
8985
|
+
xs: '125px',
|
|
8986
|
+
sm: '100px',
|
|
8987
|
+
md: '80px'
|
|
8988
|
+
},
|
|
8989
|
+
paddingLeft: {
|
|
8990
|
+
xs: '40px',
|
|
8991
|
+
md: 'env(safe-area-inset-right)'
|
|
8992
|
+
},
|
|
8993
|
+
bottom: {
|
|
8994
|
+
xs: 'max(5px, 7dvh)',
|
|
8995
|
+
sm: 'max(5px, 6dvh)',
|
|
8996
|
+
md: 'max(5px, 6dvh)',
|
|
8997
|
+
xl: 'max(5px, 4dvh)'
|
|
8998
|
+
}
|
|
8999
|
+
},
|
|
9000
|
+
'@media screen and (orientation: portrait)': {
|
|
9001
|
+
minHeight: {
|
|
9002
|
+
xs: '110px',
|
|
9003
|
+
sm: '100px',
|
|
9004
|
+
md: '80px'
|
|
9005
|
+
},
|
|
9006
|
+
bottom: 'max(5px, 6dvh)',
|
|
9007
|
+
paddingLeft: 'env(safe-area-inset-left)'
|
|
9008
|
+
},
|
|
9009
|
+
zIndex: 1000
|
|
8956
9010
|
},
|
|
8957
9011
|
children: jsx(TimeSliderConnect, {
|
|
8958
9012
|
mapId: id,
|
|
8959
9013
|
sourceId: id,
|
|
8960
9014
|
mapWindowRef: mapWindowRef
|
|
8961
9015
|
})
|
|
8962
|
-
}), useOl ? jsx(OlMapViewConnect, {
|
|
8963
|
-
controls: mapControlConfig,
|
|
8964
|
-
displayTimeInMap: displayTimeInMap,
|
|
8965
|
-
showScaleBar: false,
|
|
8966
|
-
shouldAutoFetch: shouldAutoFetch,
|
|
8967
|
-
mapId: mapId,
|
|
8968
|
-
initialBbox: initialBbox,
|
|
8969
|
-
shouldDisablePrefetching: shouldDisablePrefetching,
|
|
8970
|
-
tileServerSettings: tileServerSettings,
|
|
8971
|
-
children: children
|
|
8972
|
-
}) : jsx(MapViewConnect, {
|
|
8973
|
-
controls: mapControlConfig,
|
|
8974
|
-
displayTimeInMap: displayTimeInMap,
|
|
8975
|
-
showScaleBar: false,
|
|
8976
|
-
shouldAutoFetch: shouldAutoFetch,
|
|
8977
|
-
mapId: mapId,
|
|
8978
|
-
shouldDisablePrefetching: shouldDisablePrefetching,
|
|
8979
|
-
tileServerSettings: tileServerSettings,
|
|
8980
|
-
children: children
|
|
8981
|
-
}), showClock && jsx(TimeSliderClockConnect, {
|
|
8982
|
-
mapId: mapId
|
|
8983
9016
|
})]
|
|
8984
9017
|
});
|
|
8985
9018
|
}, [mapId, title, id, useOl, initialBbox, mapControlConfig, tileServerSettings, disableTimeSlider, displayTimeInMap, shouldAutoFetch, shouldDisablePrefetching, children, showClock]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.4.1",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,31 +8,31 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "12.
|
|
11
|
+
"@opengeoweb/shared": "12.4.1",
|
|
12
12
|
"react-redux": "^9.2.0",
|
|
13
|
-
"@opengeoweb/store": "12.
|
|
14
|
-
"@opengeoweb/timeslider": "12.
|
|
13
|
+
"@opengeoweb/store": "12.4.1",
|
|
14
|
+
"@opengeoweb/timeslider": "12.4.1",
|
|
15
15
|
"@reduxjs/toolkit": "^2.6.1",
|
|
16
|
-
"@opengeoweb/webmap-react": "12.
|
|
17
|
-
"@opengeoweb/webmap": "12.
|
|
18
|
-
"@opengeoweb/theme": "12.
|
|
16
|
+
"@opengeoweb/webmap-react": "12.4.1",
|
|
17
|
+
"@opengeoweb/webmap": "12.4.1",
|
|
18
|
+
"@opengeoweb/theme": "12.4.1",
|
|
19
19
|
"axios": "^1.7.7",
|
|
20
|
-
"@opengeoweb/layer-select": "12.
|
|
20
|
+
"@opengeoweb/layer-select": "12.4.1",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
22
|
"ol": "^10.4.0",
|
|
23
23
|
"react-sortablejs": "^6.1.4",
|
|
24
24
|
"sortablejs": "^1.15.1",
|
|
25
25
|
"@mui/system": "^7.0.1",
|
|
26
|
-
"@opengeoweb/snackbar": "12.
|
|
26
|
+
"@opengeoweb/snackbar": "12.4.1",
|
|
27
27
|
"react-router-dom": "^6.21.0",
|
|
28
28
|
"react-draggable": "^4.4.6",
|
|
29
|
-
"i18next": "^
|
|
29
|
+
"i18next": "^25.0.1",
|
|
30
30
|
"react-i18next": "^15.1.1",
|
|
31
31
|
"dompurify": "^3.0.6",
|
|
32
32
|
"@mui/material": "^7.0.1",
|
|
33
33
|
"@sentry/react": "^8.34.0",
|
|
34
34
|
"@tanstack/react-query": "^5.69.2",
|
|
35
|
-
"@opengeoweb/api": "12.
|
|
35
|
+
"@opengeoweb/api": "12.4.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": "18",
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
interface TimeSliderButtonsConnectProps {
|
|
3
3
|
sourceId: string;
|
|
4
4
|
mapId: string;
|
|
5
|
+
isVisible: boolean | undefined;
|
|
5
6
|
}
|
|
6
7
|
export declare const TimeSliderButtonsConnect: React.NamedExoticComponent<TimeSliderButtonsConnectProps>;
|
|
7
8
|
export {};
|