@opengeoweb/webmap-react 9.15.0 → 9.17.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 +217 -292
- package/package.json +1 -1
- package/src/index.d.ts +2 -0
- package/src/lib/components/LayerInfo/LayerInfoDialog.stories.d.ts +2 -2
- package/src/lib/components/MapDimensionSelect/DimensionSelectDialog.stories.d.ts +6 -6
- package/src/lib/components/MapView/MapView.TiledBaseLayers.stories.d.ts +22 -0
- package/src/lib/components/Providers/Providers.d.ts +2 -1
- package/src/lib/components/index.d.ts +2 -0
- package/src/lib/index.d.ts +1 -0
- package/src/lib/utils/i18n.d.ts +3 -0
- package/src/lib/storyshots/Storyshots.spec.d.ts +0 -1
package/index.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
3
|
-
import { legendImageStore, WMImageEventType, webmapUtils, getLegendGraphicURLForLayer, getWMJSMapById, debugLogger, DebugType,
|
|
3
|
+
import { legendImageStore, WMImageEventType, webmapUtils, getLegendGraphicURLForLayer, LayerType, getWMJSMapById, debugLogger, DebugType, WMLayer, registerWMLayer, WMBBOX, getWMLayerById, WMJSMap, tilesettings } from '@opengeoweb/webmap';
|
|
4
4
|
import { CustomTooltip, CanvasComponent, ToolContainerDraggable, dateUtils, CustomIconButton } from '@opengeoweb/shared';
|
|
5
|
-
import { useTranslation } from 'react-i18next';
|
|
6
5
|
import 'i18next';
|
|
6
|
+
import { 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
8
|
import _, { cloneDeep } from 'lodash';
|
|
9
9
|
import proj4 from 'proj4';
|
|
@@ -17,6 +17,117 @@ import Box$1 from '@mui/material/Box';
|
|
|
17
17
|
import Typography$1 from '@mui/material/Typography';
|
|
18
18
|
import Grid$1 from '@mui/material/Grid';
|
|
19
19
|
|
|
20
|
+
var en = {
|
|
21
|
+
"webmap-react-event": "event:",
|
|
22
|
+
"webmap-react-sent": "Sent:",
|
|
23
|
+
"webmap-react-utc": "UTC",
|
|
24
|
+
"webmap-react-expires": "Expires:",
|
|
25
|
+
"webmap-react-sender": "Sender:",
|
|
26
|
+
"webmap-react-identifier": "Identifier:",
|
|
27
|
+
"webmap-react-no-layers": "No layers",
|
|
28
|
+
"webmap-react-legend": "Legend",
|
|
29
|
+
"webmap-react-title": "Title",
|
|
30
|
+
"webmap-react-name": "Name",
|
|
31
|
+
"webmap-react-service": "Service",
|
|
32
|
+
"webmap-react-abstract": "Abstract",
|
|
33
|
+
"webmap-react-dimensions": "Dimensions",
|
|
34
|
+
"webmap-react-styles": "Styles",
|
|
35
|
+
"webmap-react-bounding-box": "Bounding Box",
|
|
36
|
+
"webmap-react-groups": "Groups",
|
|
37
|
+
"webmap-react-keywords": "Keywords",
|
|
38
|
+
"webmap-react-zoom-reset": "Reset zoom",
|
|
39
|
+
"webmap-react-zoom-in": "Zoom in",
|
|
40
|
+
"webmap-react-zoom-out": "Zoom out",
|
|
41
|
+
"webmap-react-show": "Show",
|
|
42
|
+
"webmap-react-click-disconnect": "Click to disconnect layer",
|
|
43
|
+
"webmap-react-click-connect": "Click to connect layer",
|
|
44
|
+
"webmap-react-layer-info": "Layer Info"
|
|
45
|
+
};
|
|
46
|
+
var fi = {
|
|
47
|
+
"webmap-react-event": "ei käännetty",
|
|
48
|
+
"webmap-react-sent": "ei käännetty",
|
|
49
|
+
"webmap-react-utc": "ei käännetty",
|
|
50
|
+
"webmap-react-expires": "ei käännetty",
|
|
51
|
+
"webmap-react-sender": "ei käännetty",
|
|
52
|
+
"webmap-react-identifier": "ei käännetty",
|
|
53
|
+
"webmap-react-no-layers": "ei käännetty",
|
|
54
|
+
"webmap-react-legend": "ei käännetty",
|
|
55
|
+
"webmap-react-title": "ei käännetty",
|
|
56
|
+
"webmap-react-name": "ei käännetty",
|
|
57
|
+
"webmap-react-service": "ei käännetty",
|
|
58
|
+
"webmap-react-abstract": "ei käännetty",
|
|
59
|
+
"webmap-react-dimensions": "ei käännetty",
|
|
60
|
+
"webmap-react-styles": "ei käännetty",
|
|
61
|
+
"webmap-react-bounding-box": "ei käännetty",
|
|
62
|
+
"webmap-react-groups": "ei käännetty",
|
|
63
|
+
"webmap-react-keywords": "ei käännetty",
|
|
64
|
+
"webmap-react-zoom-reset": "ei käännetty",
|
|
65
|
+
"webmap-react-zoom-in": "ei käännetty",
|
|
66
|
+
"webmap-react-zoom-out": "ei käännetty",
|
|
67
|
+
"webmap-react-show": "ei käännetty",
|
|
68
|
+
"webmap-react-click-disconnect": "ei käännetty",
|
|
69
|
+
"webmap-react-click-connect": "ei käännetty",
|
|
70
|
+
"webmap-react-layer-info": "ei käännetty"
|
|
71
|
+
};
|
|
72
|
+
var no = {
|
|
73
|
+
"webmap-react-event": "hendelse:",
|
|
74
|
+
"webmap-react-sent": "Sendt:",
|
|
75
|
+
"webmap-react-utc": "UTC",
|
|
76
|
+
"webmap-react-expires": "Utgår:",
|
|
77
|
+
"webmap-react-sender": "Avsender:",
|
|
78
|
+
"webmap-react-identifier": "Identifikator:",
|
|
79
|
+
"webmap-react-no-layers": "Ingen lag",
|
|
80
|
+
"webmap-react-legend": "Legende",
|
|
81
|
+
"webmap-react-title": "Tittel",
|
|
82
|
+
"webmap-react-name": "Navn",
|
|
83
|
+
"webmap-react-service": "Service",
|
|
84
|
+
"webmap-react-abstract": "Abstrakt",
|
|
85
|
+
"webmap-react-dimensions": "Dimensjoner",
|
|
86
|
+
"webmap-react-styles": "Stiler",
|
|
87
|
+
"webmap-react-bounding-box": "Avgrensningsboks",
|
|
88
|
+
"webmap-react-groups": "Grupper",
|
|
89
|
+
"webmap-react-keywords": "Stikkord",
|
|
90
|
+
"webmap-react-zoom-reset": "Tilbakestill zoom",
|
|
91
|
+
"webmap-react-zoom-in": "Zoom inn",
|
|
92
|
+
"webmap-react-zoom-out": "Zoom ut",
|
|
93
|
+
"webmap-react-show": "Vis",
|
|
94
|
+
"webmap-react-click-disconnect": "Trykk for å avkoble lag",
|
|
95
|
+
"webmap-react-click-connect": "Trykk for å koble lag",
|
|
96
|
+
"webmap-react-layer-info": "Laginformasjon"
|
|
97
|
+
};
|
|
98
|
+
var nl = {
|
|
99
|
+
"webmap-react-event": "event:",
|
|
100
|
+
"webmap-react-sent": "Verzonden:",
|
|
101
|
+
"webmap-react-utc": "UTC",
|
|
102
|
+
"webmap-react-expires": "Verloopt:",
|
|
103
|
+
"webmap-react-sender": "Afzender:",
|
|
104
|
+
"webmap-react-identifier": "Id:",
|
|
105
|
+
"webmap-react-no-layers": "Geen lagen",
|
|
106
|
+
"webmap-react-legend": "Legenda",
|
|
107
|
+
"webmap-react-title": "Titel",
|
|
108
|
+
"webmap-react-name": "Naam",
|
|
109
|
+
"webmap-react-service": "Service",
|
|
110
|
+
"webmap-react-abstract": "Abstract",
|
|
111
|
+
"webmap-react-dimensions": "Dimensies",
|
|
112
|
+
"webmap-react-styles": "Stijlen",
|
|
113
|
+
"webmap-react-bounding-box": "Begrenzend kader",
|
|
114
|
+
"webmap-react-groups": "Groepen",
|
|
115
|
+
"webmap-react-keywords": "Trefwoorden",
|
|
116
|
+
"webmap-react-zoom-reset": "Reset zoom",
|
|
117
|
+
"webmap-react-zoom-in": "Zoom in",
|
|
118
|
+
"webmap-react-zoom-out": "Zoom uit",
|
|
119
|
+
"webmap-react-show": "Open",
|
|
120
|
+
"webmap-react-click-disconnect": "Klik om laag los te koppelen",
|
|
121
|
+
"webmap-react-click-connect": "Klik om laag te koppelen",
|
|
122
|
+
"webmap-react-layer-info": "Laag Informatie"
|
|
123
|
+
};
|
|
124
|
+
var webmapReactTranslations = {
|
|
125
|
+
en: en,
|
|
126
|
+
fi: fi,
|
|
127
|
+
no: no,
|
|
128
|
+
nl: nl
|
|
129
|
+
};
|
|
130
|
+
|
|
20
131
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
21
132
|
|
|
22
133
|
var fails$q = function (exec) {
|
|
@@ -1564,159 +1675,6 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
1564
1675
|
|
|
1565
1676
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1566
1677
|
|
|
1567
|
-
var en = {
|
|
1568
|
-
"webmap-react-event": "event:",
|
|
1569
|
-
"webmap-react-sent": "Sent:",
|
|
1570
|
-
"webmap-react-utc": "UTC",
|
|
1571
|
-
"webmap-react-expires": "Expires:",
|
|
1572
|
-
"webmap-react-sender": "Sender:",
|
|
1573
|
-
"webmap-react-identifier": "Identifier:",
|
|
1574
|
-
"webmap-react-h5": "Query features along buffered line using WFS and CQL",
|
|
1575
|
-
"webmap-react-wfs": "WFS JSON URL:",
|
|
1576
|
-
"webmap-react-cql": "CQL expression:",
|
|
1577
|
-
"webmap-react-delete": "Delete",
|
|
1578
|
-
"webmap-react-feature-type": "Feature type",
|
|
1579
|
-
"webmap-react-feature-number": "Feature number",
|
|
1580
|
-
"webmap-react-intersection-shapes": "Intersection shapes",
|
|
1581
|
-
"webmap-react-features": "Features",
|
|
1582
|
-
"webmap-react-url": "URL:",
|
|
1583
|
-
"webmap-react-get-feature-info-result": "GetFeatureInfo result:",
|
|
1584
|
-
"webmap-react-view": "View",
|
|
1585
|
-
"webmap-react-edit": "Edit",
|
|
1586
|
-
"webmap-react-esc": "press ESC to exit draw mode",
|
|
1587
|
-
"webmap-react-no-layers": "No layers",
|
|
1588
|
-
"webmap-react-legend": "Legend",
|
|
1589
|
-
"webmap-react-title": "Title",
|
|
1590
|
-
"webmap-react-name": "Name",
|
|
1591
|
-
"webmap-react-service": "Service",
|
|
1592
|
-
"webmap-react-abstract": "Abstract",
|
|
1593
|
-
"webmap-react-dimensions": "Dimensions",
|
|
1594
|
-
"webmap-react-styles": "Styles",
|
|
1595
|
-
"webmap-react-bounding-box": "Bounding Box",
|
|
1596
|
-
"webmap-react-groups": "Groups",
|
|
1597
|
-
"webmap-react-keywords": "Keywords",
|
|
1598
|
-
"webmap-react-zoom-reset": "Reset zoom",
|
|
1599
|
-
"webmap-react-zoom-in": "Zoom in",
|
|
1600
|
-
"webmap-react-zoom-out": "Zoom out",
|
|
1601
|
-
"webmap-react-show": "Show",
|
|
1602
|
-
"webmap-react-click-diconnect": "Click to disconnect layer",
|
|
1603
|
-
"webmap-react-click-connect": "Click to connect layer"
|
|
1604
|
-
};
|
|
1605
|
-
var fi = {
|
|
1606
|
-
"webmap-react-event": "ei käännetty",
|
|
1607
|
-
"webmap-react-sent": "ei käännetty",
|
|
1608
|
-
"webmap-react-utc": "ei käännetty",
|
|
1609
|
-
"webmap-react-expires": "ei käännetty",
|
|
1610
|
-
"webmap-react-sender": "ei käännetty",
|
|
1611
|
-
"webmap-react-identifier": "ei käännetty",
|
|
1612
|
-
"webmap-react-h5": "ei käännetty",
|
|
1613
|
-
"webmap-react-wfs": "ei käännetty",
|
|
1614
|
-
"webmap-react-cql": "ei käännetty",
|
|
1615
|
-
"webmap-react-delete": "ei käännetty",
|
|
1616
|
-
"webmap-react-feature-type": "ei käännetty",
|
|
1617
|
-
"webmap-react-feature-number": "ei käännetty",
|
|
1618
|
-
"webmap-react-intersection-shapes": "ei käännetty",
|
|
1619
|
-
"webmap-react-get-feature-info-result": "ei käännetty",
|
|
1620
|
-
"webmap-react-view": "ei käännetty",
|
|
1621
|
-
"webmap-react-edit": "ei käännetty",
|
|
1622
|
-
"webmap-react-esc": "ei käännetty",
|
|
1623
|
-
"webmap-react-no-layers": "ei käännetty",
|
|
1624
|
-
"webmap-react-legend": "ei käännetty",
|
|
1625
|
-
"webmap-react-title": "ei käännetty",
|
|
1626
|
-
"webmap-react-name": "ei käännetty",
|
|
1627
|
-
"webmap-react-service": "ei käännetty",
|
|
1628
|
-
"webmap-react-abstract": "ei käännetty",
|
|
1629
|
-
"webmap-react-dimensions": "ei käännetty",
|
|
1630
|
-
"webmap-react-styles": "ei käännetty",
|
|
1631
|
-
"webmap-react-bounding-box": "ei käännetty",
|
|
1632
|
-
"webmap-react-groups": "ei käännetty",
|
|
1633
|
-
"webmap-react-keywords": "ei käännetty",
|
|
1634
|
-
"webmap-react-zoom-reset": "ei käännetty",
|
|
1635
|
-
"webmap-react-zoom-in": "ei käännetty",
|
|
1636
|
-
"webmap-react-zoom-out": "ei käännetty",
|
|
1637
|
-
"webmap-react-show": "ei käännetty",
|
|
1638
|
-
"webmap-react-click-diconnect": "ei käännetty",
|
|
1639
|
-
"webmap-react-click-connect": "ei käännetty"
|
|
1640
|
-
};
|
|
1641
|
-
var no = {
|
|
1642
|
-
"webmap-react-event": "event:",
|
|
1643
|
-
"webmap-react-sent": "Sendt:",
|
|
1644
|
-
"webmap-react-utc": "UTC",
|
|
1645
|
-
"webmap-react-expires": "Utgår:",
|
|
1646
|
-
"webmap-react-sender": "Avsender:",
|
|
1647
|
-
"webmap-react-identifier": "ikke oversatt",
|
|
1648
|
-
"webmap-react-h5": "ikke oversatt",
|
|
1649
|
-
"webmap-react-wfs": "ikke oversatt",
|
|
1650
|
-
"webmap-react-cql": "ikke oversatt",
|
|
1651
|
-
"webmap-react-delete": "Slett",
|
|
1652
|
-
"webmap-react-feature-type": "Feature type",
|
|
1653
|
-
"webmap-react-feature-number": "Feature nummer",
|
|
1654
|
-
"webmap-react-intersection-shapes": "ikke oversatt",
|
|
1655
|
-
"webmap-react-get-feature-info-result": "GetFeatureInfo resultat:",
|
|
1656
|
-
"webmap-react-view": "View",
|
|
1657
|
-
"webmap-react-edit": "Endre",
|
|
1658
|
-
"webmap-react-esc": "trykk ESC for å avslutte tegnemodus",
|
|
1659
|
-
"webmap-react-no-layers": "Ingen lag",
|
|
1660
|
-
"webmap-react-legend": "Legende",
|
|
1661
|
-
"webmap-react-title": "Tittel",
|
|
1662
|
-
"webmap-react-name": "Navn",
|
|
1663
|
-
"webmap-react-service": "Service",
|
|
1664
|
-
"webmap-react-abstract": "Abstract",
|
|
1665
|
-
"webmap-react-dimensions": "Dimensjoner",
|
|
1666
|
-
"webmap-react-styles": "Styles",
|
|
1667
|
-
"webmap-react-bounding-box": "Bounding Box",
|
|
1668
|
-
"webmap-react-groups": "Grupper",
|
|
1669
|
-
"webmap-react-keywords": "Stikkord",
|
|
1670
|
-
"webmap-react-zoom-reset": "Reset zoom",
|
|
1671
|
-
"webmap-react-zoom-in": "Zoom inn",
|
|
1672
|
-
"webmap-react-zoom-out": "Zoom ut",
|
|
1673
|
-
"webmap-react-show": "Vis",
|
|
1674
|
-
"webmap-react-click-diconnect": "Trykk for å avkoble lag",
|
|
1675
|
-
"webmap-react-click-connect": "Trykk for å koble lag"
|
|
1676
|
-
};
|
|
1677
|
-
var nl = {
|
|
1678
|
-
"webmap-react-event": "niet vertaald",
|
|
1679
|
-
"webmap-react-sent": "niet vertaald",
|
|
1680
|
-
"webmap-react-utc": "niet vertaald",
|
|
1681
|
-
"webmap-react-expires": "niet vertaald",
|
|
1682
|
-
"webmap-react-sender": "niet vertaald",
|
|
1683
|
-
"workspce-search": "niet vertaald",
|
|
1684
|
-
"webmap-react-h5": "niet vertaald",
|
|
1685
|
-
"webmap-react-wfs": "niet vertaald",
|
|
1686
|
-
"webmap-react-cql": "niet vertaald",
|
|
1687
|
-
"webmap-react-delete": "niet vertaald",
|
|
1688
|
-
"webmap-react-feature-type": "niet vertaald",
|
|
1689
|
-
"webmap-react-feature-number": "niet vertaald",
|
|
1690
|
-
"webmap-react-intersection-shapes": "niet vertaald",
|
|
1691
|
-
"webmap-react-get-feature-info-result": "niet vertaald",
|
|
1692
|
-
"webmap-react-view": "niet vertaald",
|
|
1693
|
-
"webmap-react-edit": "niet vertaald",
|
|
1694
|
-
"webmap-react-esc": "niet vertaald",
|
|
1695
|
-
"webmap-react-no-layers": "niet vertaald",
|
|
1696
|
-
"webmap-react-legend": "niet vertaald",
|
|
1697
|
-
"webmap-react-title": "niet vertaald",
|
|
1698
|
-
"webmap-react-name": "niet vertaald",
|
|
1699
|
-
"webmap-react-service": "niet vertaald",
|
|
1700
|
-
"webmap-react-abstract": "niet vertaald",
|
|
1701
|
-
"webmap-react-dimensions": "niet vertaald",
|
|
1702
|
-
"webmap-react-styles": "niet vertaald",
|
|
1703
|
-
"webmap-react-bounding-box": "niet vertaald",
|
|
1704
|
-
"webmap-react-groups": "niet vertaald",
|
|
1705
|
-
"webmap-react-keywords": "niet vertaald",
|
|
1706
|
-
"webmap-react-zoom-reset": "niet vertaald",
|
|
1707
|
-
"webmap-react-zoom-in": "niet vertaald",
|
|
1708
|
-
"webmap-react-zoom-out": "niet vertaald",
|
|
1709
|
-
"webmap-react-show": "niet vertaald",
|
|
1710
|
-
"webmap-react-click-diconnect": "niet vertaald",
|
|
1711
|
-
"webmap-react-click-connect": "niet vertaald"
|
|
1712
|
-
};
|
|
1713
|
-
var webmapReactTranslations = {
|
|
1714
|
-
en: en,
|
|
1715
|
-
fi: fi,
|
|
1716
|
-
no: no,
|
|
1717
|
-
nl: nl
|
|
1718
|
-
};
|
|
1719
|
-
|
|
1720
1678
|
/* *
|
|
1721
1679
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1722
1680
|
* you may not use this file except in compliance with the License.
|
|
@@ -1734,6 +1692,7 @@ var webmapReactTranslations = {
|
|
|
1734
1692
|
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
1735
1693
|
* */
|
|
1736
1694
|
const WEBMAP_REACT_NAMESPACE = 'webmapreact';
|
|
1695
|
+
const useWebmapReactTranslation = () => useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
1737
1696
|
|
|
1738
1697
|
var DESCRIPTORS$4 = descriptors;
|
|
1739
1698
|
var uncurryThis$f = functionUncurryThis;
|
|
@@ -1907,7 +1866,7 @@ const Legend = ({
|
|
|
1907
1866
|
let imageHeight;
|
|
1908
1867
|
const {
|
|
1909
1868
|
t
|
|
1910
|
-
} =
|
|
1869
|
+
} = useWebmapReactTranslation();
|
|
1911
1870
|
const legendPrefix = t('webmap-react-legend');
|
|
1912
1871
|
/* Register callback to legendImagestore to trigger rerender when image is loaded. */
|
|
1913
1872
|
useEffect(() => {
|
|
@@ -1988,37 +1947,6 @@ const Legend = ({
|
|
|
1988
1947
|
}));
|
|
1989
1948
|
};
|
|
1990
1949
|
|
|
1991
|
-
/* *
|
|
1992
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1993
|
-
* you may not use this file except in compliance with the License.
|
|
1994
|
-
* You may obtain a copy of the License at
|
|
1995
|
-
*
|
|
1996
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1997
|
-
*
|
|
1998
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1999
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2000
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2001
|
-
* See the License for the specific language governing permissions and
|
|
2002
|
-
* limitations under the License.
|
|
2003
|
-
*
|
|
2004
|
-
* Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
2005
|
-
* Copyright 2024 - Finnish Meteorological Institute (FMI)
|
|
2006
|
-
* */
|
|
2007
|
-
const WebmapReactTranslationsWrapper = ({
|
|
2008
|
-
children
|
|
2009
|
-
}) => {
|
|
2010
|
-
const {
|
|
2011
|
-
i18n
|
|
2012
|
-
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
2013
|
-
React__default.useEffect(() => {
|
|
2014
|
-
i18n.addResourceBundle('en', WEBMAP_REACT_NAMESPACE, webmapReactTranslations.en);
|
|
2015
|
-
i18n.addResourceBundle('fi', WEBMAP_REACT_NAMESPACE, webmapReactTranslations.fi);
|
|
2016
|
-
i18n.addResourceBundle('no', WEBMAP_REACT_NAMESPACE, webmapReactTranslations.no);
|
|
2017
|
-
i18n.addResourceBundle('nl', WEBMAP_REACT_NAMESPACE, webmapReactTranslations.nl);
|
|
2018
|
-
}, [i18n]);
|
|
2019
|
-
return children;
|
|
2020
|
-
};
|
|
2021
|
-
|
|
2022
1950
|
/* *
|
|
2023
1951
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2024
1952
|
* you may not use this file except in compliance with the License.
|
|
@@ -2047,8 +1975,8 @@ const LegendDialog = ({
|
|
|
2047
1975
|
}) => {
|
|
2048
1976
|
const {
|
|
2049
1977
|
t
|
|
2050
|
-
} =
|
|
2051
|
-
return /*#__PURE__*/React.createElement(
|
|
1978
|
+
} = useWebmapReactTranslation();
|
|
1979
|
+
return /*#__PURE__*/React.createElement(ToolContainerDraggable, {
|
|
2052
1980
|
startPosition: {
|
|
2053
1981
|
right: 20,
|
|
2054
1982
|
top: 50
|
|
@@ -2086,7 +2014,7 @@ const LegendDialog = ({
|
|
|
2086
2014
|
fontWeight: 500,
|
|
2087
2015
|
fontSize: 14
|
|
2088
2016
|
}
|
|
2089
|
-
}, t('webmap-react-no-layers')))))
|
|
2017
|
+
}, t('webmap-react-no-layers')))));
|
|
2090
2018
|
};
|
|
2091
2019
|
|
|
2092
2020
|
var wellKnownSymbol$a = wellKnownSymbol$h;
|
|
@@ -4893,9 +4821,6 @@ const FeatureLayers = ({
|
|
|
4893
4821
|
activeFeatureLayerIndex,
|
|
4894
4822
|
getToolIcon
|
|
4895
4823
|
}) => {
|
|
4896
|
-
const {
|
|
4897
|
-
t
|
|
4898
|
-
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
4899
4824
|
const featureLayerList = geojson ? Array.from(Array(geojson.features.length).keys()).map(index => {
|
|
4900
4825
|
var _a;
|
|
4901
4826
|
return {
|
|
@@ -4915,7 +4840,7 @@ const FeatureLayers = ({
|
|
|
4915
4840
|
}
|
|
4916
4841
|
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
4917
4842
|
id: "demo-feature-number"
|
|
4918
|
-
},
|
|
4843
|
+
}, "Features"), /*#__PURE__*/React__default.createElement(Select, {
|
|
4919
4844
|
labelId: "demo-feature-type",
|
|
4920
4845
|
value: (featureLayerList.length ? activeFeatureLayerIndex : '').toString(),
|
|
4921
4846
|
onChange: event => {
|
|
@@ -4960,19 +4885,16 @@ const EditModeButton = ({
|
|
|
4960
4885
|
drawMode,
|
|
4961
4886
|
onToggleEditMode
|
|
4962
4887
|
}) => {
|
|
4963
|
-
const {
|
|
4964
|
-
t
|
|
4965
|
-
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
4966
4888
|
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
4967
4889
|
item: true,
|
|
4968
4890
|
xs: 12
|
|
4969
4891
|
}, /*#__PURE__*/React__default.createElement(CustomTooltip, {
|
|
4970
4892
|
title: "Switch mode"
|
|
4971
|
-
}, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(FormLabel, null,
|
|
4893
|
+
}, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(FormLabel, null, "View"), /*#__PURE__*/React__default.createElement(Switch, {
|
|
4972
4894
|
"data-testid": "switchMode",
|
|
4973
4895
|
checked: isInEditMode,
|
|
4974
4896
|
onClick: () => onToggleEditMode(!isInEditMode)
|
|
4975
|
-
}), /*#__PURE__*/React__default.createElement(FormLabel, null,
|
|
4897
|
+
}), /*#__PURE__*/React__default.createElement(FormLabel, null, "Edit"), drawMode && ( /*#__PURE__*/React__default.createElement(Typography, {
|
|
4976
4898
|
component: "span",
|
|
4977
4899
|
sx: {
|
|
4978
4900
|
display: 'inline-block',
|
|
@@ -4981,7 +4903,7 @@ const EditModeButton = ({
|
|
|
4981
4903
|
position: 'relative',
|
|
4982
4904
|
fontSize: 14
|
|
4983
4905
|
}
|
|
4984
|
-
},
|
|
4906
|
+
}, "press ESC to exit draw mode")))));
|
|
4985
4907
|
};
|
|
4986
4908
|
|
|
4987
4909
|
/* *
|
|
@@ -5487,9 +5409,6 @@ const IntersectionSelect = ({
|
|
|
5487
5409
|
isDisabled: _isDisabled = false
|
|
5488
5410
|
}) => {
|
|
5489
5411
|
const [activeIntersection, setActiveIntersection] = React__default.useState(0);
|
|
5490
|
-
const {
|
|
5491
|
-
t
|
|
5492
|
-
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
5493
5412
|
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
5494
5413
|
item: true,
|
|
5495
5414
|
sm: 12
|
|
@@ -5500,7 +5419,7 @@ const IntersectionSelect = ({
|
|
|
5500
5419
|
}
|
|
5501
5420
|
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
5502
5421
|
id: "demo-intersection"
|
|
5503
|
-
},
|
|
5422
|
+
}, "Intersection shapes"), /*#__PURE__*/React__default.createElement(Select, {
|
|
5504
5423
|
labelId: "demo-intersection",
|
|
5505
5424
|
value: activeIntersection.toString(),
|
|
5506
5425
|
onChange: event => {
|
|
@@ -8140,6 +8059,10 @@ $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }
|
|
|
8140
8059
|
* Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
8141
8060
|
* Copyright 2020 - Finnish Meteorological Institute (FMI)
|
|
8142
8061
|
* */
|
|
8062
|
+
const getCurrentDimensionValue = (name, dimensions = []) => {
|
|
8063
|
+
const currentDimension = dimensions.find(dim => dim.name === name);
|
|
8064
|
+
return currentDimension === null || currentDimension === void 0 ? void 0 : currentDimension.currentValue;
|
|
8065
|
+
};
|
|
8143
8066
|
const getLayerUpdateInfo = (wmLayer, mapId) => {
|
|
8144
8067
|
const origin = 'ReactMapViewParseLayer';
|
|
8145
8068
|
const map = webmapUtils.getWMJSMapById(mapId);
|
|
@@ -8319,6 +8242,10 @@ const addWMLayerPropsBasedOnChildProps = (child, mapId, props, onUpdateLayerInfo
|
|
|
8319
8242
|
const baseLayers = wmjsMap.getBaseLayers();
|
|
8320
8243
|
baseLayers.unshift(newWMLayer);
|
|
8321
8244
|
wmjsMap.setBaseLayers(baseLayers);
|
|
8245
|
+
// If this layer has a tileserver configured, add it to the map.
|
|
8246
|
+
if (child.tileServer) {
|
|
8247
|
+
wmjsMap.addWMTileRendererTileSetting(child.tileServer);
|
|
8248
|
+
}
|
|
8322
8249
|
} else {
|
|
8323
8250
|
/* Add ADAGUC WebMapJS Layer */
|
|
8324
8251
|
wmjsMap.addLayer(newWMLayer).then(() => {
|
|
@@ -8989,8 +8916,8 @@ const ZoomControls = ({
|
|
|
8989
8916
|
}) => {
|
|
8990
8917
|
const {
|
|
8991
8918
|
t
|
|
8992
|
-
} =
|
|
8993
|
-
return /*#__PURE__*/React.createElement(
|
|
8919
|
+
} = useWebmapReactTranslation();
|
|
8920
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MapControlButton, {
|
|
8994
8921
|
title: t('webmap-react-zoom-reset'),
|
|
8995
8922
|
"data-testid": "zoom-reset",
|
|
8996
8923
|
onClick: onZoomReset
|
|
@@ -9437,8 +9364,8 @@ const MapWarningProperties = ({
|
|
|
9437
9364
|
const newWidth = parentSize ? parentSize - 100 : 350;
|
|
9438
9365
|
const {
|
|
9439
9366
|
t
|
|
9440
|
-
} =
|
|
9441
|
-
return /*#__PURE__*/React__default.createElement(
|
|
9367
|
+
} = useWebmapReactTranslation();
|
|
9368
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
9442
9369
|
style: {
|
|
9443
9370
|
position: 'fixed',
|
|
9444
9371
|
width: `${newWidth}px`,
|
|
@@ -9464,13 +9391,13 @@ const MapWarningProperties = ({
|
|
|
9464
9391
|
"data-testid": "map-warning-properties-row"
|
|
9465
9392
|
}, t('webmap-react-event'), ' ', selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].event)), selectedFeatureProperties.onset && ( /*#__PURE__*/React__default.createElement("pre", {
|
|
9466
9393
|
"data-testid": "map-warning-properties-row"
|
|
9467
|
-
}, t('webmap-react-sent'), ' ', dateUtils.dateToString(dateUtils.utc(selectedFeatureProperties.onset),
|
|
9394
|
+
}, t('webmap-react-sent'), ' ', dateUtils.dateToString(dateUtils.utc(selectedFeatureProperties.onset), dateUtils.DATE_FORMAT_NAME_OF_MONTH), ' ', t('webmap-react-utc'))), selectedFeatureProperties.expires && ( /*#__PURE__*/React__default.createElement("pre", {
|
|
9468
9395
|
"data-testid": "map-warning-properties-row"
|
|
9469
|
-
}, t('webmap-react-expires'), ' ', dateUtils.dateToString(dateUtils.utc(selectedFeatureProperties.expires),
|
|
9396
|
+
}, t('webmap-react-expires'), ' ', dateUtils.dateToString(dateUtils.utc(selectedFeatureProperties.expires), dateUtils.DATE_FORMAT_NAME_OF_MONTH), ' ', t('webmap-react-utc'))), selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].senderName && ( /*#__PURE__*/React__default.createElement("pre", {
|
|
9470
9397
|
"data-testid": "map-warning-properties-row"
|
|
9471
9398
|
}, t('webmap-react-sender'), ' ', selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].senderName)), selectedFeatureProperties.identifier && ( /*#__PURE__*/React__default.createElement("pre", {
|
|
9472
9399
|
"data-testid": "map-warning-properties-row"
|
|
9473
|
-
}, t('webmap-react-identifier'), ' ', selectedFeatureProperties.identifier))))
|
|
9400
|
+
}, t('webmap-react-identifier'), ' ', selectedFeatureProperties.identifier))));
|
|
9474
9401
|
};
|
|
9475
9402
|
|
|
9476
9403
|
const dimensionConfig = [{
|
|
@@ -9545,17 +9472,17 @@ const DimensionSelectButton = ({
|
|
|
9545
9472
|
}) => {
|
|
9546
9473
|
const {
|
|
9547
9474
|
t
|
|
9548
|
-
} =
|
|
9475
|
+
} = useWebmapReactTranslation();
|
|
9549
9476
|
const showPrefix = t('webmap-react-show');
|
|
9550
9477
|
const dimConfig = dimensionConfig.find(cnf => cnf.name === dimension);
|
|
9551
9478
|
const Icon = getDimensionIcon$1(dimConfig && dimConfig.iconType || 'IconLevels');
|
|
9552
9479
|
const title = `${showPrefix} ${dimConfig ? dimConfig.label.toLowerCase() : dimension.toLowerCase()}`;
|
|
9553
|
-
return /*#__PURE__*/React.createElement(
|
|
9480
|
+
return /*#__PURE__*/React.createElement(MapControlButton, {
|
|
9554
9481
|
title: title,
|
|
9555
9482
|
"data-testid": `dimensionMapBtn-${dimension}`,
|
|
9556
9483
|
onClick: onClickDimensionButton,
|
|
9557
9484
|
isActive: _isActive
|
|
9558
|
-
}, /*#__PURE__*/React.createElement(Icon, null))
|
|
9485
|
+
}, /*#__PURE__*/React.createElement(Icon, null));
|
|
9559
9486
|
};
|
|
9560
9487
|
|
|
9561
9488
|
/* *
|
|
@@ -9736,9 +9663,9 @@ const MapDimensionSelect = ({
|
|
|
9736
9663
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
9737
9664
|
const {
|
|
9738
9665
|
t
|
|
9739
|
-
} =
|
|
9666
|
+
} = useWebmapReactTranslation();
|
|
9740
9667
|
const tooltipTitle = isLayerDimensionSynced ? t('webmap-react-click-disconnect') : t('webmap-react-click-connect');
|
|
9741
|
-
return /*#__PURE__*/React.createElement(
|
|
9668
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
9742
9669
|
key: layerId,
|
|
9743
9670
|
item: true,
|
|
9744
9671
|
xs: "auto"
|
|
@@ -9761,7 +9688,7 @@ const MapDimensionSelect = ({
|
|
|
9761
9688
|
},
|
|
9762
9689
|
isDisabled: false,
|
|
9763
9690
|
validSelection: layerDimension.synced === false || !(layerDimension.validSyncSelection !== undefined && layerDimension.validSyncSelection === false)
|
|
9764
|
-
}))
|
|
9691
|
+
}));
|
|
9765
9692
|
};
|
|
9766
9693
|
|
|
9767
9694
|
const LayerInfoButton = _a => {
|
|
@@ -9869,7 +9796,7 @@ const LayerInfoLegend = ({
|
|
|
9869
9796
|
}) => {
|
|
9870
9797
|
const {
|
|
9871
9798
|
t
|
|
9872
|
-
} =
|
|
9799
|
+
} = useWebmapReactTranslation();
|
|
9873
9800
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9874
9801
|
variant: "subtitle2",
|
|
9875
9802
|
sx: textStyleWithMargin
|
|
@@ -10422,8 +10349,8 @@ const LayerInfoDialog = ({
|
|
|
10422
10349
|
const dimensions = getDimensionsList(layer.dimensions);
|
|
10423
10350
|
const {
|
|
10424
10351
|
t
|
|
10425
|
-
} =
|
|
10426
|
-
return /*#__PURE__*/React__default.createElement(
|
|
10352
|
+
} = useWebmapReactTranslation();
|
|
10353
|
+
return /*#__PURE__*/React__default.createElement(ToolContainerDraggable, {
|
|
10427
10354
|
onClose: onClose,
|
|
10428
10355
|
startSize: {
|
|
10429
10356
|
width: 288,
|
|
@@ -10433,7 +10360,7 @@ const LayerInfoDialog = ({
|
|
|
10433
10360
|
top: 150,
|
|
10434
10361
|
left: 900
|
|
10435
10362
|
},
|
|
10436
|
-
title:
|
|
10363
|
+
title: t('webmap-react-layer-info'),
|
|
10437
10364
|
isOpen: isOpen,
|
|
10438
10365
|
onMouseDown: _onMouseDown,
|
|
10439
10366
|
order: _order,
|
|
@@ -10461,9 +10388,7 @@ const LayerInfoDialog = ({
|
|
|
10461
10388
|
label: t('webmap-react-styles'),
|
|
10462
10389
|
value: styles
|
|
10463
10390
|
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10464
|
-
label: t('webmap-react-bounding-box',
|
|
10465
|
-
ns: WEBMAP_REACT_NAMESPACE
|
|
10466
|
-
}),
|
|
10391
|
+
label: t('webmap-react-bounding-box'),
|
|
10467
10392
|
value: bbox
|
|
10468
10393
|
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10469
10394
|
label: t('webmap-react-groups'),
|
|
@@ -10476,7 +10401,7 @@ const LayerInfoDialog = ({
|
|
|
10476
10401
|
name: layer.name,
|
|
10477
10402
|
dimensions: layer.dimensions,
|
|
10478
10403
|
legendURL: ((_c = layer.styles) === null || _c === void 0 ? void 0 : _c.length) ? layer.styles[0].legendURL : undefined
|
|
10479
|
-
})))
|
|
10404
|
+
})));
|
|
10480
10405
|
};
|
|
10481
10406
|
|
|
10482
10407
|
/* *
|
|
@@ -10517,9 +10442,9 @@ const overLayer = {
|
|
|
10517
10442
|
};
|
|
10518
10443
|
|
|
10519
10444
|
var defaultLayers = /*#__PURE__*/Object.freeze({
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10445
|
+
__proto__: null,
|
|
10446
|
+
baseLayerGrey: baseLayerGrey,
|
|
10447
|
+
overLayer: overLayer
|
|
10523
10448
|
});
|
|
10524
10449
|
|
|
10525
10450
|
/* *
|
|
@@ -10635,26 +10560,26 @@ const MeteoCanada = {
|
|
|
10635
10560
|
};
|
|
10636
10561
|
|
|
10637
10562
|
var publicServices = /*#__PURE__*/Object.freeze({
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
|
|
10641
|
-
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10563
|
+
__proto__: null,
|
|
10564
|
+
DWD: DWD,
|
|
10565
|
+
nationaalgeoregister: nationaalgeoregister,
|
|
10566
|
+
KNMImsgcpp: KNMImsgcpp,
|
|
10567
|
+
HeiGit: HeiGit,
|
|
10568
|
+
ArcGisCanvas: ArcGisCanvas,
|
|
10569
|
+
KNMIgeoservicesRadar: KNMIgeoservicesRadar,
|
|
10570
|
+
KNMIgeoservicesObs: KNMIgeoservicesObs,
|
|
10571
|
+
KNMIgeoservicesKlimaatAtlas: KNMIgeoservicesKlimaatAtlas,
|
|
10572
|
+
KNMIgeoservicesHarmonie: KNMIgeoservicesHarmonie,
|
|
10573
|
+
KNMIgeoservicesHarmonieMLService: KNMIgeoservicesHarmonieMLService,
|
|
10574
|
+
MetNorwayService: MetNorwayService,
|
|
10575
|
+
FMIopenwms: FMIopenwms,
|
|
10576
|
+
DWDObservations: DWDObservations,
|
|
10577
|
+
DWDWarnings: DWDWarnings,
|
|
10578
|
+
DWDWXProdukt: DWDWXProdukt,
|
|
10579
|
+
EUMETSAT: EUMETSAT,
|
|
10580
|
+
eumetviewEUMETSAT: eumetviewEUMETSAT,
|
|
10581
|
+
ECMWFPublicService: ECMWFPublicService,
|
|
10582
|
+
MeteoCanada: MeteoCanada
|
|
10658
10583
|
});
|
|
10659
10584
|
|
|
10660
10585
|
/* *
|
|
@@ -10994,49 +10919,49 @@ const msgNaturalEUMETSAT = {
|
|
|
10994
10919
|
};
|
|
10995
10920
|
|
|
10996
10921
|
var publicLayers = /*#__PURE__*/Object.freeze({
|
|
10997
|
-
|
|
10998
|
-
|
|
10999
|
-
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
|
|
11025
|
-
|
|
11026
|
-
|
|
11027
|
-
|
|
11028
|
-
|
|
11029
|
-
|
|
11030
|
-
|
|
11031
|
-
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11035
|
-
|
|
11036
|
-
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
10922
|
+
__proto__: null,
|
|
10923
|
+
defaultLayers: defaultLayers,
|
|
10924
|
+
baseLayer: baseLayer,
|
|
10925
|
+
baseLayerOpenStreetMapNL: baseLayerOpenStreetMapNL,
|
|
10926
|
+
baseLayerArcGisCanvas: baseLayerArcGisCanvas,
|
|
10927
|
+
baseLayerWorldMap: baseLayerWorldMap,
|
|
10928
|
+
baseLayerHeiGit: baseLayerHeiGit,
|
|
10929
|
+
msgCppLayer: msgCppLayer,
|
|
10930
|
+
veiligheidsRegiosGebiedsIndelingenLabels: veiligheidsRegiosGebiedsIndelingenLabels,
|
|
10931
|
+
veiligheidsRegiosGebiedsIndelingen: veiligheidsRegiosGebiedsIndelingen,
|
|
10932
|
+
radarLayer: radarLayer,
|
|
10933
|
+
radarLayerWithError: radarLayerWithError,
|
|
10934
|
+
obsAirTemperature: obsAirTemperature,
|
|
10935
|
+
obsWind: obsWind,
|
|
10936
|
+
obsAirPressureAtSeaLevel: obsAirPressureAtSeaLevel,
|
|
10937
|
+
obsRelativeHumidity: obsRelativeHumidity,
|
|
10938
|
+
obsGlobalSolarRadiation: obsGlobalSolarRadiation,
|
|
10939
|
+
obsPrecipitationIntensityPWS: obsPrecipitationIntensityPWS,
|
|
10940
|
+
harmonieRelativeHumidityPl: harmonieRelativeHumidityPl,
|
|
10941
|
+
harmonieWindPl: harmonieWindPl,
|
|
10942
|
+
harmonieAirTemperature: harmonieAirTemperature,
|
|
10943
|
+
harmoniePrecipitation: harmoniePrecipitation,
|
|
10944
|
+
harmoniePressure: harmoniePressure,
|
|
10945
|
+
harmonieWindFlags: harmonieWindFlags,
|
|
10946
|
+
klimaatAtlasTG3: klimaatAtlasTG3,
|
|
10947
|
+
dwdWarningLayer: dwdWarningLayer,
|
|
10948
|
+
dwdRadarLayer: dwdRadarLayer,
|
|
10949
|
+
dwdObservationsWetterLayer: dwdObservationsWetterLayer,
|
|
10950
|
+
dwdObservationsWetterLayerWithHeader: dwdObservationsWetterLayerWithHeader,
|
|
10951
|
+
dwdObservationsWindLayer: dwdObservationsWindLayer,
|
|
10952
|
+
FMITemp: FMITemp,
|
|
10953
|
+
MetNoTemp: MetNoTemp,
|
|
10954
|
+
metNorwayWind1: metNorwayWind1,
|
|
10955
|
+
metNorwayWind2: metNorwayWind2,
|
|
10956
|
+
metNorwayWind3: metNorwayWind3,
|
|
10957
|
+
metNorwayLatestT: metNorwayLatestT,
|
|
10958
|
+
metNorwaySalinaty: metNorwaySalinaty,
|
|
10959
|
+
msgFesEUMETSAT: msgFesEUMETSAT,
|
|
10960
|
+
msgNaturalenhncdEUMETSAT: msgNaturalenhncdEUMETSAT,
|
|
10961
|
+
msgAshEUMETSAT: msgAshEUMETSAT,
|
|
10962
|
+
msgCthEUMETSAT: msgCthEUMETSAT,
|
|
10963
|
+
msgFogEUMETSAT: msgFogEUMETSAT,
|
|
10964
|
+
msgNaturalEUMETSAT: msgNaturalEUMETSAT
|
|
11040
10965
|
});
|
|
11041
10966
|
|
|
11042
|
-
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, ZoomControls, addFeatureProperties, addGeoJSONProperties, addSelectionTypeToGeoJSON, 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, getDimensionIcon, getDimensionLabel, getDimensionValue, getDimensionsList, getDoubleControlToolIcon, getDrawFunctionFromStore, getFeatureCollection, getFeatureExtent, getFirTitle, getGeoJSONPropertyValue, getGeoJson, getIcon, getIntersectionToolIcon, getLastEmptyFeatureIndex, getLayerBbox, getLayerStyles, getTimeDimension, getToolIcon, intersectPointGeoJSONS, intersectPolygonGeoJSONS, intersectionFeatureBE, intersectionFeatureNL, isGeoJSONFeatureCreatedByTool, isPointFeatureCollection, lineString, marksByDimension, moveFeature, opacityOptions, publicLayers, publicServices, registerDrawFunction, rewindGeometry, simpleBoxGeoJSON, simpleBoxGeoJSONWrongOrder, simpleFlightRouteLineStringGeoJSON, simpleFlightRoutePointsGeoJSON, simpleLineStringGeoJSON, simpleMultiPolygon, simplePointsGeojson, simplePolygonGeoJSON, simpleSmallLineStringGeoJSON, startToolExampleConfig, strokeWidthOptions, textStyle, textStyleWithMargin, updateEditModeButtonsWithFir, useGeoJSON, useMapDrawTool };
|
|
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 };
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ declare const _default: {
|
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const LayerInfoDialogLight: {
|
|
7
7
|
(): React.ReactElement;
|
|
8
|
-
|
|
8
|
+
tags: string[];
|
|
9
9
|
parameters: {
|
|
10
10
|
zeplinLink: {
|
|
11
11
|
name: string;
|
|
@@ -15,7 +15,7 @@ export declare const LayerInfoDialogLight: {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const LayerInfoDialogDark: {
|
|
17
17
|
(): React.ReactElement;
|
|
18
|
-
|
|
18
|
+
tags: string[];
|
|
19
19
|
parameters: {
|
|
20
20
|
zeplinLink: {
|
|
21
21
|
name: string;
|
|
@@ -5,25 +5,25 @@ declare const _default: {
|
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const DimensionSelectElevationLight: {
|
|
7
7
|
(): React.ReactElement;
|
|
8
|
-
|
|
8
|
+
tags: string[];
|
|
9
9
|
};
|
|
10
10
|
export declare const DimensionSelectElevationDark: {
|
|
11
11
|
(): React.ReactElement;
|
|
12
|
-
|
|
12
|
+
tags: string[];
|
|
13
13
|
};
|
|
14
14
|
export declare const DimensionSelectEnsembleMemberLight: {
|
|
15
15
|
(): React.ReactElement;
|
|
16
|
-
|
|
16
|
+
tags: string[];
|
|
17
17
|
};
|
|
18
18
|
export declare const DimensionSelectEnsembleMemberDark: {
|
|
19
19
|
(): React.ReactElement;
|
|
20
|
-
|
|
20
|
+
tags: string[];
|
|
21
21
|
};
|
|
22
22
|
export declare const DimensionSelectInvalidSyncLight: {
|
|
23
23
|
(): React.ReactElement;
|
|
24
|
-
|
|
24
|
+
tags: string[];
|
|
25
25
|
};
|
|
26
26
|
export declare const DimensionSelectInvalidSyncDark: {
|
|
27
27
|
(): React.ReactElement;
|
|
28
|
-
|
|
28
|
+
tags: string[];
|
|
29
29
|
};
|
|
@@ -0,0 +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,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ThemeProviderProps } from '@opengeoweb/theme';
|
|
3
|
+
export declare const WebmapReactThemeProvider: React.FC<ThemeProviderProps>;
|
|
2
4
|
interface WebmapReactTranslationWrapperProps {
|
|
3
5
|
children?: React.ReactNode;
|
|
4
6
|
}
|
|
5
|
-
export declare const WebmapReactTranslationsWrapper: React.FC<WebmapReactTranslationWrapperProps>;
|
|
6
7
|
export declare const WebmapReactI18nProvider: React.FC<WebmapReactTranslationWrapperProps>;
|
|
7
8
|
export {};
|
|
@@ -2,6 +2,8 @@ export * from './Legend';
|
|
|
2
2
|
export * from './MapDraw';
|
|
3
3
|
export * from './MapDrawTool';
|
|
4
4
|
export * from './ReactMapView';
|
|
5
|
+
export * from './ReactMapView/utils';
|
|
6
|
+
export * from './ReactMapView/ReactMapViewParseLayer';
|
|
5
7
|
export * from './MapView';
|
|
6
8
|
export * from './MapTime';
|
|
7
9
|
export * from './MapControls';
|
package/src/lib/index.d.ts
CHANGED
package/src/lib/utils/i18n.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import i18n from 'i18next';
|
|
2
|
+
import { UseTranslationResponse } from 'react-i18next';
|
|
1
3
|
export declare const WEBMAP_REACT_NAMESPACE = "webmapreact";
|
|
2
4
|
export declare const initWebmapReactTestI18n: () => void;
|
|
5
|
+
export declare const useWebmapReactTranslation: () => UseTranslationResponse<typeof WEBMAP_REACT_NAMESPACE, typeof i18n>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|