@opengeoweb/webmap-react 9.15.0 → 9.16.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 +245 -264
- package/package.json +1 -1
- package/src/index.d.ts +2 -0
- 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/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import 'i18next';
|
|
@@ -17,6 +17,163 @@ 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-h5": "Query features along buffered line using WFS and CQL",
|
|
28
|
+
"webmap-react-wfs": "WFS JSON URL:",
|
|
29
|
+
"webmap-react-cql": "CQL expression:",
|
|
30
|
+
"webmap-react-delete": "Delete",
|
|
31
|
+
"webmap-react-feature-type": "Feature type",
|
|
32
|
+
"webmap-react-feature-number": "Feature number",
|
|
33
|
+
"webmap-react-intersection-shapes": "Intersection shapes",
|
|
34
|
+
"webmap-react-features": "Features",
|
|
35
|
+
"webmap-react-url": "URL:",
|
|
36
|
+
"webmap-react-get-feature-info-result": "GetFeatureInfo result:",
|
|
37
|
+
"webmap-react-view": "View",
|
|
38
|
+
"webmap-react-edit": "Edit",
|
|
39
|
+
"webmap-react-esc": "press ESC to exit draw mode",
|
|
40
|
+
"webmap-react-no-layers": "No layers",
|
|
41
|
+
"webmap-react-legend": "Legend",
|
|
42
|
+
"webmap-react-title": "Title",
|
|
43
|
+
"webmap-react-name": "Name",
|
|
44
|
+
"webmap-react-service": "Service",
|
|
45
|
+
"webmap-react-abstract": "Abstract",
|
|
46
|
+
"webmap-react-dimensions": "Dimensions",
|
|
47
|
+
"webmap-react-styles": "Styles",
|
|
48
|
+
"webmap-react-bounding-box": "Bounding Box",
|
|
49
|
+
"webmap-react-groups": "Groups",
|
|
50
|
+
"webmap-react-keywords": "Keywords",
|
|
51
|
+
"webmap-react-zoom-reset": "Reset zoom",
|
|
52
|
+
"webmap-react-zoom-in": "Zoom in",
|
|
53
|
+
"webmap-react-zoom-out": "Zoom out",
|
|
54
|
+
"webmap-react-show": "Show",
|
|
55
|
+
"webmap-react-click-diconnect": "Click to disconnect layer",
|
|
56
|
+
"webmap-react-click-connect": "Click to connect layer",
|
|
57
|
+
"webmap-react-layer-info": "Layer Info"
|
|
58
|
+
};
|
|
59
|
+
var fi = {
|
|
60
|
+
"webmap-react-event": "ei käännetty",
|
|
61
|
+
"webmap-react-sent": "ei käännetty",
|
|
62
|
+
"webmap-react-utc": "ei käännetty",
|
|
63
|
+
"webmap-react-expires": "ei käännetty",
|
|
64
|
+
"webmap-react-sender": "ei käännetty",
|
|
65
|
+
"webmap-react-identifier": "ei käännetty",
|
|
66
|
+
"webmap-react-h5": "ei käännetty",
|
|
67
|
+
"webmap-react-wfs": "ei käännetty",
|
|
68
|
+
"webmap-react-cql": "ei käännetty",
|
|
69
|
+
"webmap-react-delete": "ei käännetty",
|
|
70
|
+
"webmap-react-feature-type": "ei käännetty",
|
|
71
|
+
"webmap-react-feature-number": "ei käännetty",
|
|
72
|
+
"webmap-react-intersection-shapes": "ei käännetty",
|
|
73
|
+
"webmap-react-get-feature-info-result": "ei käännetty",
|
|
74
|
+
"webmap-react-view": "ei käännetty",
|
|
75
|
+
"webmap-react-edit": "ei käännetty",
|
|
76
|
+
"webmap-react-esc": "ei käännetty",
|
|
77
|
+
"webmap-react-no-layers": "ei käännetty",
|
|
78
|
+
"webmap-react-legend": "ei käännetty",
|
|
79
|
+
"webmap-react-title": "ei käännetty",
|
|
80
|
+
"webmap-react-name": "ei käännetty",
|
|
81
|
+
"webmap-react-service": "ei käännetty",
|
|
82
|
+
"webmap-react-abstract": "ei käännetty",
|
|
83
|
+
"webmap-react-dimensions": "ei käännetty",
|
|
84
|
+
"webmap-react-styles": "ei käännetty",
|
|
85
|
+
"webmap-react-bounding-box": "ei käännetty",
|
|
86
|
+
"webmap-react-groups": "ei käännetty",
|
|
87
|
+
"webmap-react-keywords": "ei käännetty",
|
|
88
|
+
"webmap-react-zoom-reset": "ei käännetty",
|
|
89
|
+
"webmap-react-zoom-in": "ei käännetty",
|
|
90
|
+
"webmap-react-zoom-out": "ei käännetty",
|
|
91
|
+
"webmap-react-show": "ei käännetty",
|
|
92
|
+
"webmap-react-click-diconnect": "ei käännetty",
|
|
93
|
+
"webmap-react-click-connect": "ei käännetty",
|
|
94
|
+
"webmap-react-layer-info": "ei käännetty"
|
|
95
|
+
};
|
|
96
|
+
var no = {
|
|
97
|
+
"webmap-react-event": "event:",
|
|
98
|
+
"webmap-react-sent": "Sendt:",
|
|
99
|
+
"webmap-react-utc": "UTC",
|
|
100
|
+
"webmap-react-expires": "Utgår:",
|
|
101
|
+
"webmap-react-sender": "Avsender:",
|
|
102
|
+
"webmap-react-identifier": "ikke oversatt",
|
|
103
|
+
"webmap-react-h5": "ikke oversatt",
|
|
104
|
+
"webmap-react-wfs": "ikke oversatt",
|
|
105
|
+
"webmap-react-cql": "ikke oversatt",
|
|
106
|
+
"webmap-react-delete": "Slett",
|
|
107
|
+
"webmap-react-feature-type": "Feature type",
|
|
108
|
+
"webmap-react-feature-number": "Feature nummer",
|
|
109
|
+
"webmap-react-intersection-shapes": "ikke oversatt",
|
|
110
|
+
"webmap-react-get-feature-info-result": "GetFeatureInfo resultat:",
|
|
111
|
+
"webmap-react-view": "View",
|
|
112
|
+
"webmap-react-edit": "Endre",
|
|
113
|
+
"webmap-react-esc": "trykk ESC for å avslutte tegnemodus",
|
|
114
|
+
"webmap-react-no-layers": "Ingen lag",
|
|
115
|
+
"webmap-react-legend": "Legende",
|
|
116
|
+
"webmap-react-title": "Tittel",
|
|
117
|
+
"webmap-react-name": "Navn",
|
|
118
|
+
"webmap-react-service": "Service",
|
|
119
|
+
"webmap-react-abstract": "Abstract",
|
|
120
|
+
"webmap-react-dimensions": "Dimensjoner",
|
|
121
|
+
"webmap-react-styles": "Styles",
|
|
122
|
+
"webmap-react-bounding-box": "Bounding Box",
|
|
123
|
+
"webmap-react-groups": "Grupper",
|
|
124
|
+
"webmap-react-keywords": "Stikkord",
|
|
125
|
+
"webmap-react-zoom-reset": "Reset zoom",
|
|
126
|
+
"webmap-react-zoom-in": "Zoom inn",
|
|
127
|
+
"webmap-react-zoom-out": "Zoom ut",
|
|
128
|
+
"webmap-react-show": "Vis",
|
|
129
|
+
"webmap-react-click-diconnect": "Trykk for å avkoble lag",
|
|
130
|
+
"webmap-react-click-connect": "Trykk for å koble lag",
|
|
131
|
+
"webmap-react-layer-info": "Laginformasjon"
|
|
132
|
+
};
|
|
133
|
+
var nl = {
|
|
134
|
+
"webmap-react-event": "niet vertaald",
|
|
135
|
+
"webmap-react-sent": "niet vertaald",
|
|
136
|
+
"webmap-react-utc": "niet vertaald",
|
|
137
|
+
"webmap-react-expires": "niet vertaald",
|
|
138
|
+
"webmap-react-sender": "niet vertaald",
|
|
139
|
+
"workspce-search": "niet vertaald",
|
|
140
|
+
"webmap-react-h5": "niet vertaald",
|
|
141
|
+
"webmap-react-wfs": "niet vertaald",
|
|
142
|
+
"webmap-react-cql": "niet vertaald",
|
|
143
|
+
"webmap-react-delete": "niet vertaald",
|
|
144
|
+
"webmap-react-feature-type": "niet vertaald",
|
|
145
|
+
"webmap-react-feature-number": "niet vertaald",
|
|
146
|
+
"webmap-react-intersection-shapes": "niet vertaald",
|
|
147
|
+
"webmap-react-get-feature-info-result": "niet vertaald",
|
|
148
|
+
"webmap-react-view": "niet vertaald",
|
|
149
|
+
"webmap-react-edit": "niet vertaald",
|
|
150
|
+
"webmap-react-esc": "niet vertaald",
|
|
151
|
+
"webmap-react-no-layers": "niet vertaald",
|
|
152
|
+
"webmap-react-legend": "niet vertaald",
|
|
153
|
+
"webmap-react-title": "niet vertaald",
|
|
154
|
+
"webmap-react-name": "niet vertaald",
|
|
155
|
+
"webmap-react-service": "niet vertaald",
|
|
156
|
+
"webmap-react-abstract": "niet vertaald",
|
|
157
|
+
"webmap-react-dimensions": "niet vertaald",
|
|
158
|
+
"webmap-react-styles": "niet vertaald",
|
|
159
|
+
"webmap-react-bounding-box": "niet vertaald",
|
|
160
|
+
"webmap-react-groups": "niet vertaald",
|
|
161
|
+
"webmap-react-keywords": "niet vertaald",
|
|
162
|
+
"webmap-react-zoom-reset": "niet vertaald",
|
|
163
|
+
"webmap-react-zoom-in": "niet vertaald",
|
|
164
|
+
"webmap-react-zoom-out": "niet vertaald",
|
|
165
|
+
"webmap-react-show": "niet vertaald",
|
|
166
|
+
"webmap-react-click-diconnect": "niet vertaald",
|
|
167
|
+
"webmap-react-click-connect": "niet vertaald",
|
|
168
|
+
"webmap-react-layer-info": "niet vertaald"
|
|
169
|
+
};
|
|
170
|
+
var webmapReactTranslations = {
|
|
171
|
+
en: en,
|
|
172
|
+
fi: fi,
|
|
173
|
+
no: no,
|
|
174
|
+
nl: nl
|
|
175
|
+
};
|
|
176
|
+
|
|
20
177
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
21
178
|
|
|
22
179
|
var fails$q = function (exec) {
|
|
@@ -1564,159 +1721,6 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
1564
1721
|
|
|
1565
1722
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1566
1723
|
|
|
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
1724
|
/* *
|
|
1721
1725
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1722
1726
|
* you may not use this file except in compliance with the License.
|
|
@@ -1988,37 +1992,6 @@ const Legend = ({
|
|
|
1988
1992
|
}));
|
|
1989
1993
|
};
|
|
1990
1994
|
|
|
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
1995
|
/* *
|
|
2023
1996
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2024
1997
|
* you may not use this file except in compliance with the License.
|
|
@@ -2048,7 +2021,7 @@ const LegendDialog = ({
|
|
|
2048
2021
|
const {
|
|
2049
2022
|
t
|
|
2050
2023
|
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
2051
|
-
return /*#__PURE__*/React.createElement(
|
|
2024
|
+
return /*#__PURE__*/React.createElement(ToolContainerDraggable, {
|
|
2052
2025
|
startPosition: {
|
|
2053
2026
|
right: 20,
|
|
2054
2027
|
top: 50
|
|
@@ -2086,7 +2059,7 @@ const LegendDialog = ({
|
|
|
2086
2059
|
fontWeight: 500,
|
|
2087
2060
|
fontSize: 14
|
|
2088
2061
|
}
|
|
2089
|
-
}, t('webmap-react-no-layers')))))
|
|
2062
|
+
}, t('webmap-react-no-layers')))));
|
|
2090
2063
|
};
|
|
2091
2064
|
|
|
2092
2065
|
var wellKnownSymbol$a = wellKnownSymbol$h;
|
|
@@ -8140,6 +8113,10 @@ $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }
|
|
|
8140
8113
|
* Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
8141
8114
|
* Copyright 2020 - Finnish Meteorological Institute (FMI)
|
|
8142
8115
|
* */
|
|
8116
|
+
const getCurrentDimensionValue = (name, dimensions = []) => {
|
|
8117
|
+
const currentDimension = dimensions.find(dim => dim.name === name);
|
|
8118
|
+
return currentDimension === null || currentDimension === void 0 ? void 0 : currentDimension.currentValue;
|
|
8119
|
+
};
|
|
8143
8120
|
const getLayerUpdateInfo = (wmLayer, mapId) => {
|
|
8144
8121
|
const origin = 'ReactMapViewParseLayer';
|
|
8145
8122
|
const map = webmapUtils.getWMJSMapById(mapId);
|
|
@@ -8319,6 +8296,10 @@ const addWMLayerPropsBasedOnChildProps = (child, mapId, props, onUpdateLayerInfo
|
|
|
8319
8296
|
const baseLayers = wmjsMap.getBaseLayers();
|
|
8320
8297
|
baseLayers.unshift(newWMLayer);
|
|
8321
8298
|
wmjsMap.setBaseLayers(baseLayers);
|
|
8299
|
+
// If this layer has a tileserver configured, add it to the map.
|
|
8300
|
+
if (child.tileServer) {
|
|
8301
|
+
wmjsMap.addWMTileRendererTileSetting(child.tileServer);
|
|
8302
|
+
}
|
|
8322
8303
|
} else {
|
|
8323
8304
|
/* Add ADAGUC WebMapJS Layer */
|
|
8324
8305
|
wmjsMap.addLayer(newWMLayer).then(() => {
|
|
@@ -8990,7 +8971,7 @@ const ZoomControls = ({
|
|
|
8990
8971
|
const {
|
|
8991
8972
|
t
|
|
8992
8973
|
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
8993
|
-
return /*#__PURE__*/React.createElement(
|
|
8974
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(MapControlButton, {
|
|
8994
8975
|
title: t('webmap-react-zoom-reset'),
|
|
8995
8976
|
"data-testid": "zoom-reset",
|
|
8996
8977
|
onClick: onZoomReset
|
|
@@ -9438,7 +9419,7 @@ const MapWarningProperties = ({
|
|
|
9438
9419
|
const {
|
|
9439
9420
|
t
|
|
9440
9421
|
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
9441
|
-
return /*#__PURE__*/React__default.createElement(
|
|
9422
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
9442
9423
|
style: {
|
|
9443
9424
|
position: 'fixed',
|
|
9444
9425
|
width: `${newWidth}px`,
|
|
@@ -9470,7 +9451,7 @@ const MapWarningProperties = ({
|
|
|
9470
9451
|
"data-testid": "map-warning-properties-row"
|
|
9471
9452
|
}, t('webmap-react-sender'), ' ', selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].senderName)), selectedFeatureProperties.identifier && ( /*#__PURE__*/React__default.createElement("pre", {
|
|
9472
9453
|
"data-testid": "map-warning-properties-row"
|
|
9473
|
-
}, t('webmap-react-identifier'), ' ', selectedFeatureProperties.identifier))))
|
|
9454
|
+
}, t('webmap-react-identifier'), ' ', selectedFeatureProperties.identifier))));
|
|
9474
9455
|
};
|
|
9475
9456
|
|
|
9476
9457
|
const dimensionConfig = [{
|
|
@@ -9550,12 +9531,12 @@ const DimensionSelectButton = ({
|
|
|
9550
9531
|
const dimConfig = dimensionConfig.find(cnf => cnf.name === dimension);
|
|
9551
9532
|
const Icon = getDimensionIcon$1(dimConfig && dimConfig.iconType || 'IconLevels');
|
|
9552
9533
|
const title = `${showPrefix} ${dimConfig ? dimConfig.label.toLowerCase() : dimension.toLowerCase()}`;
|
|
9553
|
-
return /*#__PURE__*/React.createElement(
|
|
9534
|
+
return /*#__PURE__*/React.createElement(MapControlButton, {
|
|
9554
9535
|
title: title,
|
|
9555
9536
|
"data-testid": `dimensionMapBtn-${dimension}`,
|
|
9556
9537
|
onClick: onClickDimensionButton,
|
|
9557
9538
|
isActive: _isActive
|
|
9558
|
-
}, /*#__PURE__*/React.createElement(Icon, null))
|
|
9539
|
+
}, /*#__PURE__*/React.createElement(Icon, null));
|
|
9559
9540
|
};
|
|
9560
9541
|
|
|
9561
9542
|
/* *
|
|
@@ -9738,7 +9719,7 @@ const MapDimensionSelect = ({
|
|
|
9738
9719
|
t
|
|
9739
9720
|
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
9740
9721
|
const tooltipTitle = isLayerDimensionSynced ? t('webmap-react-click-disconnect') : t('webmap-react-click-connect');
|
|
9741
|
-
return /*#__PURE__*/React.createElement(
|
|
9722
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
9742
9723
|
key: layerId,
|
|
9743
9724
|
item: true,
|
|
9744
9725
|
xs: "auto"
|
|
@@ -9761,7 +9742,7 @@ const MapDimensionSelect = ({
|
|
|
9761
9742
|
},
|
|
9762
9743
|
isDisabled: false,
|
|
9763
9744
|
validSelection: layerDimension.synced === false || !(layerDimension.validSyncSelection !== undefined && layerDimension.validSyncSelection === false)
|
|
9764
|
-
}))
|
|
9745
|
+
}));
|
|
9765
9746
|
};
|
|
9766
9747
|
|
|
9767
9748
|
const LayerInfoButton = _a => {
|
|
@@ -10423,7 +10404,7 @@ const LayerInfoDialog = ({
|
|
|
10423
10404
|
const {
|
|
10424
10405
|
t
|
|
10425
10406
|
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
10426
|
-
return /*#__PURE__*/React__default.createElement(
|
|
10407
|
+
return /*#__PURE__*/React__default.createElement(ToolContainerDraggable, {
|
|
10427
10408
|
onClose: onClose,
|
|
10428
10409
|
startSize: {
|
|
10429
10410
|
width: 288,
|
|
@@ -10433,7 +10414,7 @@ const LayerInfoDialog = ({
|
|
|
10433
10414
|
top: 150,
|
|
10434
10415
|
left: 900
|
|
10435
10416
|
},
|
|
10436
|
-
title:
|
|
10417
|
+
title: t('webmap-react-layer-info'),
|
|
10437
10418
|
isOpen: isOpen,
|
|
10438
10419
|
onMouseDown: _onMouseDown,
|
|
10439
10420
|
order: _order,
|
|
@@ -10476,7 +10457,7 @@ const LayerInfoDialog = ({
|
|
|
10476
10457
|
name: layer.name,
|
|
10477
10458
|
dimensions: layer.dimensions,
|
|
10478
10459
|
legendURL: ((_c = layer.styles) === null || _c === void 0 ? void 0 : _c.length) ? layer.styles[0].legendURL : undefined
|
|
10479
|
-
})))
|
|
10460
|
+
})));
|
|
10480
10461
|
};
|
|
10481
10462
|
|
|
10482
10463
|
/* *
|
|
@@ -10517,9 +10498,9 @@ const overLayer = {
|
|
|
10517
10498
|
};
|
|
10518
10499
|
|
|
10519
10500
|
var defaultLayers = /*#__PURE__*/Object.freeze({
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10501
|
+
__proto__: null,
|
|
10502
|
+
baseLayerGrey: baseLayerGrey,
|
|
10503
|
+
overLayer: overLayer
|
|
10523
10504
|
});
|
|
10524
10505
|
|
|
10525
10506
|
/* *
|
|
@@ -10635,26 +10616,26 @@ const MeteoCanada = {
|
|
|
10635
10616
|
};
|
|
10636
10617
|
|
|
10637
10618
|
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
|
-
|
|
10619
|
+
__proto__: null,
|
|
10620
|
+
DWD: DWD,
|
|
10621
|
+
nationaalgeoregister: nationaalgeoregister,
|
|
10622
|
+
KNMImsgcpp: KNMImsgcpp,
|
|
10623
|
+
HeiGit: HeiGit,
|
|
10624
|
+
ArcGisCanvas: ArcGisCanvas,
|
|
10625
|
+
KNMIgeoservicesRadar: KNMIgeoservicesRadar,
|
|
10626
|
+
KNMIgeoservicesObs: KNMIgeoservicesObs,
|
|
10627
|
+
KNMIgeoservicesKlimaatAtlas: KNMIgeoservicesKlimaatAtlas,
|
|
10628
|
+
KNMIgeoservicesHarmonie: KNMIgeoservicesHarmonie,
|
|
10629
|
+
KNMIgeoservicesHarmonieMLService: KNMIgeoservicesHarmonieMLService,
|
|
10630
|
+
MetNorwayService: MetNorwayService,
|
|
10631
|
+
FMIopenwms: FMIopenwms,
|
|
10632
|
+
DWDObservations: DWDObservations,
|
|
10633
|
+
DWDWarnings: DWDWarnings,
|
|
10634
|
+
DWDWXProdukt: DWDWXProdukt,
|
|
10635
|
+
EUMETSAT: EUMETSAT,
|
|
10636
|
+
eumetviewEUMETSAT: eumetviewEUMETSAT,
|
|
10637
|
+
ECMWFPublicService: ECMWFPublicService,
|
|
10638
|
+
MeteoCanada: MeteoCanada
|
|
10658
10639
|
});
|
|
10659
10640
|
|
|
10660
10641
|
/* *
|
|
@@ -10994,49 +10975,49 @@ const msgNaturalEUMETSAT = {
|
|
|
10994
10975
|
};
|
|
10995
10976
|
|
|
10996
10977
|
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
|
-
|
|
10978
|
+
__proto__: null,
|
|
10979
|
+
defaultLayers: defaultLayers,
|
|
10980
|
+
baseLayer: baseLayer,
|
|
10981
|
+
baseLayerOpenStreetMapNL: baseLayerOpenStreetMapNL,
|
|
10982
|
+
baseLayerArcGisCanvas: baseLayerArcGisCanvas,
|
|
10983
|
+
baseLayerWorldMap: baseLayerWorldMap,
|
|
10984
|
+
baseLayerHeiGit: baseLayerHeiGit,
|
|
10985
|
+
msgCppLayer: msgCppLayer,
|
|
10986
|
+
veiligheidsRegiosGebiedsIndelingenLabels: veiligheidsRegiosGebiedsIndelingenLabels,
|
|
10987
|
+
veiligheidsRegiosGebiedsIndelingen: veiligheidsRegiosGebiedsIndelingen,
|
|
10988
|
+
radarLayer: radarLayer,
|
|
10989
|
+
radarLayerWithError: radarLayerWithError,
|
|
10990
|
+
obsAirTemperature: obsAirTemperature,
|
|
10991
|
+
obsWind: obsWind,
|
|
10992
|
+
obsAirPressureAtSeaLevel: obsAirPressureAtSeaLevel,
|
|
10993
|
+
obsRelativeHumidity: obsRelativeHumidity,
|
|
10994
|
+
obsGlobalSolarRadiation: obsGlobalSolarRadiation,
|
|
10995
|
+
obsPrecipitationIntensityPWS: obsPrecipitationIntensityPWS,
|
|
10996
|
+
harmonieRelativeHumidityPl: harmonieRelativeHumidityPl,
|
|
10997
|
+
harmonieWindPl: harmonieWindPl,
|
|
10998
|
+
harmonieAirTemperature: harmonieAirTemperature,
|
|
10999
|
+
harmoniePrecipitation: harmoniePrecipitation,
|
|
11000
|
+
harmoniePressure: harmoniePressure,
|
|
11001
|
+
harmonieWindFlags: harmonieWindFlags,
|
|
11002
|
+
klimaatAtlasTG3: klimaatAtlasTG3,
|
|
11003
|
+
dwdWarningLayer: dwdWarningLayer,
|
|
11004
|
+
dwdRadarLayer: dwdRadarLayer,
|
|
11005
|
+
dwdObservationsWetterLayer: dwdObservationsWetterLayer,
|
|
11006
|
+
dwdObservationsWetterLayerWithHeader: dwdObservationsWetterLayerWithHeader,
|
|
11007
|
+
dwdObservationsWindLayer: dwdObservationsWindLayer,
|
|
11008
|
+
FMITemp: FMITemp,
|
|
11009
|
+
MetNoTemp: MetNoTemp,
|
|
11010
|
+
metNorwayWind1: metNorwayWind1,
|
|
11011
|
+
metNorwayWind2: metNorwayWind2,
|
|
11012
|
+
metNorwayWind3: metNorwayWind3,
|
|
11013
|
+
metNorwayLatestT: metNorwayLatestT,
|
|
11014
|
+
metNorwaySalinaty: metNorwaySalinaty,
|
|
11015
|
+
msgFesEUMETSAT: msgFesEUMETSAT,
|
|
11016
|
+
msgNaturalenhncdEUMETSAT: msgNaturalenhncdEUMETSAT,
|
|
11017
|
+
msgAshEUMETSAT: msgAshEUMETSAT,
|
|
11018
|
+
msgCthEUMETSAT: msgCthEUMETSAT,
|
|
11019
|
+
msgFogEUMETSAT: msgFogEUMETSAT,
|
|
11020
|
+
msgNaturalEUMETSAT: msgNaturalEUMETSAT
|
|
11040
11021
|
});
|
|
11041
11022
|
|
|
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 };
|
|
11023
|
+
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
|
@@ -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