@opengeoweb/webmap-react 9.17.0 → 9.18.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
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
3
3
|
import { legendImageStore, WMImageEventType, webmapUtils, getLegendGraphicURLForLayer, LayerType, getWMJSMapById, debugLogger, DebugType, WMLayer, registerWMLayer, WMBBOX, getWMLayerById, WMJSMap, tilesettings } from '@opengeoweb/webmap';
|
|
4
|
-
import { CustomTooltip, CanvasComponent, ToolContainerDraggable,
|
|
5
|
-
import 'i18next';
|
|
6
|
-
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import { CustomTooltip, CanvasComponent, ToolContainerDraggable, CustomIconButton, dateUtils } from '@opengeoweb/shared';
|
|
5
|
+
import i18n from 'i18next';
|
|
6
|
+
import { initReactI18next, useTranslation } from 'react-i18next';
|
|
7
7
|
import { Paper, Box, Typography, Grid, TextField, FormControl, InputLabel, Select, MenuItem, Icon as Icon$1, FormLabel, Switch, styled, Slider } from '@mui/material';
|
|
8
|
+
import { Home, Add, Minus, List, Delete, Edit, DrawRegion, DrawPolygon, Location, DrawFIRLand, ArrowUp, Equalizer, DimensionsElevation, Link, LinkOff, Info, DimensionsOther, DimensionsRefTime, DimensionsTime } from '@opengeoweb/theme';
|
|
8
9
|
import _, { cloneDeep } from 'lodash';
|
|
9
10
|
import proj4 from 'proj4';
|
|
10
11
|
import * as turf from '@turf/turf';
|
|
11
12
|
import { polygonToLineString, booleanClockwise, rewind } from '@turf/turf';
|
|
12
|
-
import { Delete, Edit, DrawRegion, DrawPolygon, Location, DrawFIRLand, ArrowUp, Home, Add, Minus, Equalizer, DimensionsElevation, Link, LinkOff, Info, DimensionsOther, DimensionsRefTime, DimensionsTime } from '@opengeoweb/theme';
|
|
13
13
|
import { produce } from 'immer';
|
|
14
14
|
import { debounce } from 'throttle-debounce';
|
|
15
15
|
import { useResizeDetector } from 'react-resize-detector';
|
|
@@ -1675,25 +1675,6 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
1675
1675
|
|
|
1676
1676
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1677
1677
|
|
|
1678
|
-
/* *
|
|
1679
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1680
|
-
* you may not use this file except in compliance with the License.
|
|
1681
|
-
* You may obtain a copy of the License at
|
|
1682
|
-
*
|
|
1683
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1684
|
-
*
|
|
1685
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1686
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1687
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1688
|
-
* See the License for the specific language governing permissions and
|
|
1689
|
-
* limitations under the License.
|
|
1690
|
-
*
|
|
1691
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1692
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
1693
|
-
* */
|
|
1694
|
-
const WEBMAP_REACT_NAMESPACE = 'webmapreact';
|
|
1695
|
-
const useWebmapReactTranslation = () => useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
1696
|
-
|
|
1697
1678
|
var DESCRIPTORS$4 = descriptors;
|
|
1698
1679
|
var uncurryThis$f = functionUncurryThis;
|
|
1699
1680
|
var call$d = functionCall;
|
|
@@ -1761,6 +1742,30 @@ $$h({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }
|
|
|
1761
1742
|
assign: assign
|
|
1762
1743
|
});
|
|
1763
1744
|
|
|
1745
|
+
const WEBMAP_REACT_NAMESPACE = 'webmapreact';
|
|
1746
|
+
i18n.use(initReactI18next).init({
|
|
1747
|
+
lng: 'en',
|
|
1748
|
+
ns: WEBMAP_REACT_NAMESPACE,
|
|
1749
|
+
interpolation: {
|
|
1750
|
+
escapeValue: false
|
|
1751
|
+
},
|
|
1752
|
+
resources: {
|
|
1753
|
+
en: {
|
|
1754
|
+
[WEBMAP_REACT_NAMESPACE]: webmapReactTranslations.en
|
|
1755
|
+
},
|
|
1756
|
+
fi: {
|
|
1757
|
+
[WEBMAP_REACT_NAMESPACE]: webmapReactTranslations.fi
|
|
1758
|
+
},
|
|
1759
|
+
no: {
|
|
1760
|
+
[WEBMAP_REACT_NAMESPACE]: webmapReactTranslations.no
|
|
1761
|
+
},
|
|
1762
|
+
nl: {
|
|
1763
|
+
[WEBMAP_REACT_NAMESPACE]: webmapReactTranslations.nl
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
});
|
|
1767
|
+
const useWebmapReactTranslation = () => useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
1768
|
+
|
|
1764
1769
|
const LegendLayout = ({
|
|
1765
1770
|
title,
|
|
1766
1771
|
name,
|
|
@@ -2017,6 +2022,166 @@ const LegendDialog = ({
|
|
|
2017
2022
|
}, t('webmap-react-no-layers')))));
|
|
2018
2023
|
};
|
|
2019
2024
|
|
|
2025
|
+
/******************************************************************************
|
|
2026
|
+
Copyright (c) Microsoft Corporation.
|
|
2027
|
+
|
|
2028
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
2029
|
+
purpose with or without fee is hereby granted.
|
|
2030
|
+
|
|
2031
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
2032
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
2033
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
2034
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
2035
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
2036
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
2037
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
2038
|
+
***************************************************************************** */
|
|
2039
|
+
|
|
2040
|
+
function __rest(s, e) {
|
|
2041
|
+
var t = {};
|
|
2042
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
2043
|
+
t[p] = s[p];
|
|
2044
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
2045
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2046
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
2047
|
+
t[p[i]] = s[p[i]];
|
|
2048
|
+
}
|
|
2049
|
+
return t;
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
2053
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
2054
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
2055
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
2056
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
2057
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
2058
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
2059
|
+
});
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
2063
|
+
var e = new Error(message);
|
|
2064
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
2065
|
+
};
|
|
2066
|
+
|
|
2067
|
+
const MapControlButton = _a => {
|
|
2068
|
+
var {
|
|
2069
|
+
onClick,
|
|
2070
|
+
children,
|
|
2071
|
+
title,
|
|
2072
|
+
placement = 'right',
|
|
2073
|
+
isActive = false
|
|
2074
|
+
} = _a,
|
|
2075
|
+
props = __rest(_a, ["onClick", "children", "title", "placement", "isActive"]);
|
|
2076
|
+
return /*#__PURE__*/React.createElement(CustomIconButton, Object.assign({
|
|
2077
|
+
variant: "tool",
|
|
2078
|
+
tooltipProps: {
|
|
2079
|
+
placement,
|
|
2080
|
+
title
|
|
2081
|
+
},
|
|
2082
|
+
onClick: onClick,
|
|
2083
|
+
isSelected: isActive
|
|
2084
|
+
}, props), children);
|
|
2085
|
+
};
|
|
2086
|
+
|
|
2087
|
+
/* *
|
|
2088
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2089
|
+
* you may not use this file except in compliance with the License.
|
|
2090
|
+
* You may obtain a copy of the License at
|
|
2091
|
+
*
|
|
2092
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2093
|
+
*
|
|
2094
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2095
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2096
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2097
|
+
* See the License for the specific language governing permissions and
|
|
2098
|
+
* limitations under the License.
|
|
2099
|
+
*
|
|
2100
|
+
* Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
2101
|
+
* Copyright 2020 - Finnish Meteorological Institute (FMI)
|
|
2102
|
+
* */
|
|
2103
|
+
const ZoomControls = ({
|
|
2104
|
+
onZoomIn,
|
|
2105
|
+
onZoomOut,
|
|
2106
|
+
onZoomReset
|
|
2107
|
+
}) => {
|
|
2108
|
+
const {
|
|
2109
|
+
t
|
|
2110
|
+
} = useWebmapReactTranslation();
|
|
2111
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MapControlButton, {
|
|
2112
|
+
title: t('webmap-react-zoom-reset'),
|
|
2113
|
+
"data-testid": "zoom-reset",
|
|
2114
|
+
onClick: onZoomReset
|
|
2115
|
+
}, /*#__PURE__*/React.createElement(Home, null)), /*#__PURE__*/React.createElement(MapControlButton, {
|
|
2116
|
+
title: t('webmap-react-zoom-in'),
|
|
2117
|
+
"data-testid": "zoom-in",
|
|
2118
|
+
onClick: onZoomIn
|
|
2119
|
+
}, /*#__PURE__*/React.createElement(Add, null)), /*#__PURE__*/React.createElement(MapControlButton, {
|
|
2120
|
+
title: t('webmap-react-zoom-out'),
|
|
2121
|
+
"data-testid": "zoom-out",
|
|
2122
|
+
onClick: onZoomOut
|
|
2123
|
+
}, /*#__PURE__*/React.createElement(Minus, null)));
|
|
2124
|
+
};
|
|
2125
|
+
|
|
2126
|
+
const MapControls = _a => {
|
|
2127
|
+
var {
|
|
2128
|
+
children
|
|
2129
|
+
} = _a,
|
|
2130
|
+
props = __rest(_a, ["children"]);
|
|
2131
|
+
return /*#__PURE__*/React.createElement(Box, Object.assign({
|
|
2132
|
+
sx: {
|
|
2133
|
+
position: 'absolute',
|
|
2134
|
+
overflow: 'visible',
|
|
2135
|
+
display: 'block',
|
|
2136
|
+
left: 0,
|
|
2137
|
+
margin: 1,
|
|
2138
|
+
zIndex: 50,
|
|
2139
|
+
top: '96px',
|
|
2140
|
+
userSelect: 'none'
|
|
2141
|
+
}
|
|
2142
|
+
}, props), /*#__PURE__*/React.createElement(Grid, {
|
|
2143
|
+
sx: {
|
|
2144
|
+
'& > button': {
|
|
2145
|
+
marginBottom: 1
|
|
2146
|
+
}
|
|
2147
|
+
},
|
|
2148
|
+
container: true,
|
|
2149
|
+
direction: "column"
|
|
2150
|
+
}, children));
|
|
2151
|
+
};
|
|
2152
|
+
|
|
2153
|
+
/* *
|
|
2154
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2155
|
+
* you may not use this file except in compliance with the License.
|
|
2156
|
+
* You may obtain a copy of the License at
|
|
2157
|
+
*
|
|
2158
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2159
|
+
*
|
|
2160
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2161
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2162
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2163
|
+
* See the License for the specific language governing permissions and
|
|
2164
|
+
* limitations under the License.
|
|
2165
|
+
*
|
|
2166
|
+
* Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
2167
|
+
* Copyright 2024 - Finnish Meteorological Institute (FMI)
|
|
2168
|
+
* */
|
|
2169
|
+
const LegendButton = ({
|
|
2170
|
+
openLegendDialog,
|
|
2171
|
+
isOpen
|
|
2172
|
+
}) => {
|
|
2173
|
+
const {
|
|
2174
|
+
t
|
|
2175
|
+
} = useWebmapReactTranslation();
|
|
2176
|
+
const onClickButton = () => openLegendDialog();
|
|
2177
|
+
return /*#__PURE__*/React.createElement(MapControlButton, {
|
|
2178
|
+
title: t('webmap-react-legend'),
|
|
2179
|
+
"data-testid": "open-Legend",
|
|
2180
|
+
onClick: onClickButton,
|
|
2181
|
+
isActive: isOpen
|
|
2182
|
+
}, /*#__PURE__*/React.createElement(List, null));
|
|
2183
|
+
};
|
|
2184
|
+
|
|
2020
2185
|
var wellKnownSymbol$a = wellKnownSymbol$h;
|
|
2021
2186
|
|
|
2022
2187
|
var TO_STRING_TAG$1 = wellKnownSymbol$a('toStringTag');
|
|
@@ -6504,48 +6669,6 @@ const ReactMapViewLayer = props => {
|
|
|
6504
6669
|
}, /*#__PURE__*/React.createElement("div", null, id));
|
|
6505
6670
|
};
|
|
6506
6671
|
|
|
6507
|
-
/******************************************************************************
|
|
6508
|
-
Copyright (c) Microsoft Corporation.
|
|
6509
|
-
|
|
6510
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6511
|
-
purpose with or without fee is hereby granted.
|
|
6512
|
-
|
|
6513
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
6514
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
6515
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
6516
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
6517
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
6518
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
6519
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
6520
|
-
***************************************************************************** */
|
|
6521
|
-
|
|
6522
|
-
function __rest(s, e) {
|
|
6523
|
-
var t = {};
|
|
6524
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
6525
|
-
t[p] = s[p];
|
|
6526
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6527
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
6528
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
6529
|
-
t[p[i]] = s[p[i]];
|
|
6530
|
-
}
|
|
6531
|
-
return t;
|
|
6532
|
-
}
|
|
6533
|
-
|
|
6534
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
6535
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6536
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6537
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6538
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6539
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
6540
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
6541
|
-
});
|
|
6542
|
-
}
|
|
6543
|
-
|
|
6544
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
6545
|
-
var e = new Error(message);
|
|
6546
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
6547
|
-
};
|
|
6548
|
-
|
|
6549
6672
|
var defineProperty$1 = objectDefineProperty.f;
|
|
6550
6673
|
|
|
6551
6674
|
var proxyAccessor$1 = function (Target, Source, key) {
|
|
@@ -8873,92 +8996,6 @@ ReactMapView.defaultProps = {
|
|
|
8873
8996
|
}
|
|
8874
8997
|
};
|
|
8875
8998
|
|
|
8876
|
-
const MapControlButton = _a => {
|
|
8877
|
-
var {
|
|
8878
|
-
onClick,
|
|
8879
|
-
children,
|
|
8880
|
-
title,
|
|
8881
|
-
placement = 'right',
|
|
8882
|
-
isActive = false
|
|
8883
|
-
} = _a,
|
|
8884
|
-
props = __rest(_a, ["onClick", "children", "title", "placement", "isActive"]);
|
|
8885
|
-
return /*#__PURE__*/React.createElement(CustomIconButton, Object.assign({
|
|
8886
|
-
variant: "tool",
|
|
8887
|
-
tooltipProps: {
|
|
8888
|
-
placement,
|
|
8889
|
-
title
|
|
8890
|
-
},
|
|
8891
|
-
onClick: onClick,
|
|
8892
|
-
isSelected: isActive
|
|
8893
|
-
}, props), children);
|
|
8894
|
-
};
|
|
8895
|
-
|
|
8896
|
-
/* *
|
|
8897
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8898
|
-
* you may not use this file except in compliance with the License.
|
|
8899
|
-
* You may obtain a copy of the License at
|
|
8900
|
-
*
|
|
8901
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8902
|
-
*
|
|
8903
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
8904
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
8905
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
8906
|
-
* See the License for the specific language governing permissions and
|
|
8907
|
-
* limitations under the License.
|
|
8908
|
-
*
|
|
8909
|
-
* Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
8910
|
-
* Copyright 2020 - Finnish Meteorological Institute (FMI)
|
|
8911
|
-
* */
|
|
8912
|
-
const ZoomControls = ({
|
|
8913
|
-
onZoomIn,
|
|
8914
|
-
onZoomOut,
|
|
8915
|
-
onZoomReset
|
|
8916
|
-
}) => {
|
|
8917
|
-
const {
|
|
8918
|
-
t
|
|
8919
|
-
} = useWebmapReactTranslation();
|
|
8920
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MapControlButton, {
|
|
8921
|
-
title: t('webmap-react-zoom-reset'),
|
|
8922
|
-
"data-testid": "zoom-reset",
|
|
8923
|
-
onClick: onZoomReset
|
|
8924
|
-
}, /*#__PURE__*/React.createElement(Home, null)), /*#__PURE__*/React.createElement(MapControlButton, {
|
|
8925
|
-
title: t('webmap-react-zoom-in'),
|
|
8926
|
-
"data-testid": "zoom-in",
|
|
8927
|
-
onClick: onZoomIn
|
|
8928
|
-
}, /*#__PURE__*/React.createElement(Add, null)), /*#__PURE__*/React.createElement(MapControlButton, {
|
|
8929
|
-
title: t('webmap-react-zoom-out'),
|
|
8930
|
-
"data-testid": "zoom-out",
|
|
8931
|
-
onClick: onZoomOut
|
|
8932
|
-
}, /*#__PURE__*/React.createElement(Minus, null)));
|
|
8933
|
-
};
|
|
8934
|
-
|
|
8935
|
-
const MapControls = _a => {
|
|
8936
|
-
var {
|
|
8937
|
-
children
|
|
8938
|
-
} = _a,
|
|
8939
|
-
props = __rest(_a, ["children"]);
|
|
8940
|
-
return /*#__PURE__*/React.createElement(Box, Object.assign({
|
|
8941
|
-
sx: {
|
|
8942
|
-
position: 'absolute',
|
|
8943
|
-
overflow: 'visible',
|
|
8944
|
-
display: 'block',
|
|
8945
|
-
left: 0,
|
|
8946
|
-
margin: 1,
|
|
8947
|
-
zIndex: 50,
|
|
8948
|
-
top: '96px',
|
|
8949
|
-
userSelect: 'none'
|
|
8950
|
-
}
|
|
8951
|
-
}, props), /*#__PURE__*/React.createElement(Grid, {
|
|
8952
|
-
sx: {
|
|
8953
|
-
'& > button': {
|
|
8954
|
-
marginBottom: 1
|
|
8955
|
-
}
|
|
8956
|
-
},
|
|
8957
|
-
container: true,
|
|
8958
|
-
direction: "column"
|
|
8959
|
-
}, children));
|
|
8960
|
-
};
|
|
8961
|
-
|
|
8962
8999
|
/* *
|
|
8963
9000
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8964
9001
|
* you may not use this file except in compliance with the License.
|
|
@@ -10964,4 +11001,4 @@ var publicLayers = /*#__PURE__*/Object.freeze({
|
|
|
10964
11001
|
msgNaturalEUMETSAT: msgNaturalEUMETSAT
|
|
10965
11002
|
});
|
|
10966
11003
|
|
|
10967
|
-
export { DRAWMODE, DimensionSelectButton, DimensionSelectDialog, DimensionSelectSlider, EDITMODE, EditModeButton as EditModeButtonField, FeatureLayers, GeoJSONTextField, IntersectionSelect, LayerInfoButton, LayerInfoDialog, LayerInfoLegend, LayerInfoList, LayerInfoText, Legend, LegendDialog, LegendLayout, MINUTE_TO_MILLISECOND, MapControlButton, MapControls, MapDimensionSelect, MapDrawContainer, MapTime, MapView, MapViewLayer, MapWarningProperties, NEW_FEATURE_CREATED, NEW_LINESTRING_CREATED, NEW_POINT_CREATED, ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION, ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO, ReactMapView, ReactMapViewLayer, SelectField, StoryLayoutGrid, WEBMAP_REACT_NAMESPACE, ZoomControls, addFeatureProperties, addGeoJSONProperties, addSelectionTypeToGeoJSON, addWMLayerPropsBasedOnChildProps, basicExampleDrawOptions, basicExampleMultipleShapeDrawOptions, basicExampleMultipleShapeWithValuesDrawOptions, checkHoverFeatures, createInterSections, currentlySupportedDrawModes, defaultBox, defaultDelete, defaultGeoJSONStyleProperties, defaultIntersectionStyleProperties, defaultLayers, defaultModes, defaultPoint, defaultPolygon, defaultTimeFormat, dimensionConfig, distance, drawPolyStoryStyles, emptyGeoJSON, endToolExampleConfig, exampleIntersectionOptions, exampleIntersectionWithShapeOptions, exampleIntersections, exampleIntersectionsMultiDrawTool, featureBox, featureMultiPoint, featurePoint, featurePolygon, fillOptions, firSelectionType, formatTime, getCurrentDimensionValue, getDimensionIcon, getDimensionLabel, getDimensionValue, getDimensionsList, getDoubleControlToolIcon, getDrawFunctionFromStore, getFeatureCollection, getFeatureExtent, getFeatureLayers, getFirTitle, getGeoJSONPropertyValue, getGeoJson, getIcon, getIntersectionToolIcon, getIsInsideAcceptanceTime, getLastEmptyFeatureIndex, getLayerBbox, getLayerStyles, getLayerUpdateInfo, getTimeDimension, getToolIcon, intersectPointGeoJSONS, intersectPolygonGeoJSONS, intersectionFeatureBE, intersectionFeatureNL, isAGeoJSONLayer, isAMapLayer, isGeoJSONFeatureCreatedByTool, isPointFeatureCollection, lineString, makeLayerPropListFromChildren, marksByDimension, moveFeature, opacityOptions, orderLayers, parseWMJSLayer, publicLayers, publicServices, registerDrawFunction, removeWMLayerFromMap, rewindGeometry, setWMLayerPropsBasedOnChildProps, simpleBoxGeoJSON, simpleBoxGeoJSONWrongOrder, simpleFlightRouteLineStringGeoJSON, simpleFlightRoutePointsGeoJSON, simpleLineStringGeoJSON, simpleMultiPolygon, simplePointsGeojson, simplePolygonGeoJSON, simpleSmallLineStringGeoJSON, startToolExampleConfig, strokeWidthOptions, textStyle, textStyleWithMargin, updateEditModeButtonsWithFir, useGeoJSON, useMapDrawTool, webmapReactTranslations };
|
|
11004
|
+
export { DRAWMODE, DimensionSelectButton, DimensionSelectDialog, DimensionSelectSlider, EDITMODE, EditModeButton as EditModeButtonField, FeatureLayers, GeoJSONTextField, IntersectionSelect, LayerInfoButton, LayerInfoDialog, LayerInfoLegend, LayerInfoList, LayerInfoText, Legend, LegendButton, LegendDialog, LegendLayout, MINUTE_TO_MILLISECOND, MapControlButton, MapControls, MapDimensionSelect, MapDrawContainer, MapTime, MapView, MapViewLayer, MapWarningProperties, NEW_FEATURE_CREATED, NEW_LINESTRING_CREATED, NEW_POINT_CREATED, ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION, ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO, ReactMapView, ReactMapViewLayer, SelectField, StoryLayoutGrid, WEBMAP_REACT_NAMESPACE, ZoomControls, addFeatureProperties, addGeoJSONProperties, addSelectionTypeToGeoJSON, addWMLayerPropsBasedOnChildProps, basicExampleDrawOptions, basicExampleMultipleShapeDrawOptions, basicExampleMultipleShapeWithValuesDrawOptions, checkHoverFeatures, createInterSections, currentlySupportedDrawModes, defaultBox, defaultDelete, defaultGeoJSONStyleProperties, defaultIntersectionStyleProperties, defaultLayers, defaultModes, defaultPoint, defaultPolygon, defaultTimeFormat, dimensionConfig, distance, drawPolyStoryStyles, emptyGeoJSON, endToolExampleConfig, exampleIntersectionOptions, exampleIntersectionWithShapeOptions, exampleIntersections, exampleIntersectionsMultiDrawTool, featureBox, featureMultiPoint, featurePoint, featurePolygon, fillOptions, firSelectionType, formatTime, getCurrentDimensionValue, getDimensionIcon, getDimensionLabel, getDimensionValue, getDimensionsList, getDoubleControlToolIcon, getDrawFunctionFromStore, getFeatureCollection, getFeatureExtent, getFeatureLayers, getFirTitle, getGeoJSONPropertyValue, getGeoJson, getIcon, getIntersectionToolIcon, getIsInsideAcceptanceTime, getLastEmptyFeatureIndex, getLayerBbox, getLayerStyles, getLayerUpdateInfo, getTimeDimension, getToolIcon, intersectPointGeoJSONS, intersectPolygonGeoJSONS, intersectionFeatureBE, intersectionFeatureNL, isAGeoJSONLayer, isAMapLayer, isGeoJSONFeatureCreatedByTool, isPointFeatureCollection, lineString, makeLayerPropListFromChildren, marksByDimension, moveFeature, opacityOptions, orderLayers, parseWMJSLayer, publicLayers, publicServices, registerDrawFunction, removeWMLayerFromMap, rewindGeometry, setWMLayerPropsBasedOnChildProps, simpleBoxGeoJSON, simpleBoxGeoJSONWrongOrder, simpleFlightRouteLineStringGeoJSON, simpleFlightRoutePointsGeoJSON, simpleLineStringGeoJSON, simpleMultiPolygon, simplePointsGeojson, simplePolygonGeoJSON, simpleSmallLineStringGeoJSON, startToolExampleConfig, strokeWidthOptions, textStyle, textStyleWithMargin, updateEditModeButtonsWithFir, useGeoJSON, useMapDrawTool, webmapReactTranslations };
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/src/lib/utils/i18n.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import i18n from 'i18next';
|
|
2
2
|
import { UseTranslationResponse } from 'react-i18next';
|
|
3
3
|
export declare const WEBMAP_REACT_NAMESPACE = "webmapreact";
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const translateKeyOutsideComponents: (key: string, params?: Record<string, string | number> | undefined) => string;
|
|
5
5
|
export declare const useWebmapReactTranslation: () => UseTranslationResponse<typeof WEBMAP_REACT_NAMESPACE, typeof i18n>;
|
|
6
|
+
export { i18n };
|