@opengeoweb/webmap-react 10.0.0 → 10.2.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 +222 -29
- package/package.json +1 -1
- package/src/lib/components/Axis/ProfileAxis.stories.d.ts +7 -9
- package/src/lib/components/LayerInfo/LayerInfoDialog.d.ts +2 -1
- package/src/lib/components/LayerInfo/LayerInfoDialog.stories.d.ts +10 -25
- package/src/lib/components/Legend/Legend.stories.d.ts +8 -8
- package/src/lib/components/MapDimensionSelect/DimensionSelectDialog.stories.d.ts +13 -29
- package/src/lib/components/MapDimensionSelect/MapDimensionSelect.stories.d.ts +4 -1
- package/src/lib/components/MapDraw/MapDraw.stories.d.ts +13 -37
- package/src/lib/components/MapDrawTool/MapDrawTool.stories.d.ts +9 -13
- package/src/lib/components/MapDrawTool/MapDrawToolIntersection.stories.d.ts +7 -11
- package/src/lib/components/MapDrawTool/MapDrawToolMultipleDrawTools.stories.d.ts +6 -6
- package/src/lib/components/MapView/MapView.Error.stories.d.ts +8 -14
- package/src/lib/components/MapView/MapView.MapPin.stories.d.ts +6 -10
- package/src/lib/components/MapView/MapView.Passive.stories.d.ts +6 -10
- package/src/lib/components/MapView/MapView.ProfileSounding.stories.d.ts +6 -9
- package/src/lib/components/MapView/MapView.RadarAnimation.stories.d.ts +6 -10
- package/src/lib/components/MapView/MapView.RadarData.stories.d.ts +6 -10
- package/src/lib/components/MapView/MapView.SetProjectionBBox.stories.d.ts +6 -10
- package/src/lib/components/MapView/MapView.SetProjectionBBoxLocalState.stories.d.ts +6 -10
- package/src/lib/components/MapView/MapView.ShiftToZoom.stories.d.ts +6 -10
- package/src/lib/components/MapView/MapView.ShowLayerInfo.stories.d.ts +6 -10
- package/src/lib/components/MapView/MapView.TiledBaseLayers.stories.d.ts +6 -11
- package/src/lib/components/WMSViewerDemo/WebmapReact.stories.d.ts +6 -0
- package/src/lib/components/WMSViewerDemo/components/WMSDimTimeYearSelector.d.ts +18 -0
- package/src/lib/components/WMSViewerDemo/components/WMSLayerSelector.d.ts +9 -0
- package/src/lib/components/WMSViewerDemo/components/WMSStyleSelector.d.ts +8 -0
- package/src/lib/components/WMSViewerDemo/components/WMSTimeSlider.d.ts +8 -0
- package/src/lib/hooks/useHooksGetCapabilities.d.ts +16 -2
- package/src/lib/hooks/useHooksGetCapabilities.spec.d.ts +1 -0
- package/src/lib/index.d.ts +1 -0
package/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { legendImageStore, WMImageEventType, webmapUtils, getLegendGraphicURLForLayer, getPixelCoordFromLatLong, WMJSMAP_LONLAT_EPSGCODE, getLatLongFromPixelCoord, LayerType, getWMJSMapById, debugLogger, DebugType, WMLayer, registerWMLayer, tilesettings, WMBBOX, getWMLayerById, WMJSMap } from '@opengeoweb/webmap';
|
|
1
|
+
import { legendImageStore, WMImageEventType, webmapUtils, getLegendGraphicURLForLayer, getPixelCoordFromLatLong, WMJSMAP_LONLAT_EPSGCODE, getLatLongFromPixelCoord, LayerType, getWMJSMapById, debugLogger, DebugType, WMLayer, registerWMLayer, tilesettings, WMBBOX, getWMLayerById, WMJSMap, privateWebMapUtils } from '@opengeoweb/webmap';
|
|
2
2
|
export { WEBMAP_NAMESPACE, webmapTranslations } from '@opengeoweb/webmap';
|
|
3
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import * as React from 'react';
|
|
@@ -16,6 +16,7 @@ import { produce } from 'immer';
|
|
|
16
16
|
import { useResizeDetector } from 'react-resize-detector';
|
|
17
17
|
import Box$1 from '@mui/material/Box';
|
|
18
18
|
import Typography$1 from '@mui/material/Typography';
|
|
19
|
+
import { useQuery } from '@tanstack/react-query';
|
|
19
20
|
|
|
20
21
|
var en = {
|
|
21
22
|
"webmap-react-event": "event:",
|
|
@@ -6797,17 +6798,32 @@ var addWMLayerPropsBasedOnChildProps = function addWMLayerPropsBasedOnChildProps
|
|
|
6797
6798
|
child.onLayerError && child.onLayerError(newWMLayer, new Error(newWMLayer.lastError));
|
|
6798
6799
|
}
|
|
6799
6800
|
// This ensures that MultiMapViewConnect works properly.
|
|
6800
|
-
setTimeout(function () {
|
|
6801
|
-
var wmjsMap
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6801
|
+
setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6802
|
+
var wmjsMap, layerInfo;
|
|
6803
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6804
|
+
while (1) switch (_context.prev = _context.next) {
|
|
6805
|
+
case 0:
|
|
6806
|
+
wmjsMap = getWMJSMapById(mapId);
|
|
6807
|
+
if (!(!wmjsMap || wmjsMap.isDestroyed)) {
|
|
6808
|
+
_context.next = 3;
|
|
6809
|
+
break;
|
|
6810
|
+
}
|
|
6811
|
+
return _context.abrupt("return");
|
|
6812
|
+
case 3:
|
|
6813
|
+
setWMLayerPropsBasedOnChildProps(child, newWMLayer, props);
|
|
6814
|
+
_context.next = 6;
|
|
6815
|
+
return newWMLayer.parseLayer();
|
|
6816
|
+
case 6:
|
|
6817
|
+
layerInfo = getLayerUpdateInfo(newWMLayer, mapId);
|
|
6818
|
+
onUpdateLayerInformation && onUpdateLayerInformation(layerInfo);
|
|
6819
|
+
child.onLayerReady && child.onLayerReady(newWMLayer, wmjsMap);
|
|
6820
|
+
wmjsMap.draw();
|
|
6821
|
+
case 10:
|
|
6822
|
+
case "end":
|
|
6823
|
+
return _context.stop();
|
|
6824
|
+
}
|
|
6825
|
+
}, _callee);
|
|
6826
|
+
})), 1);
|
|
6811
6827
|
})["catch"](function (e) {
|
|
6812
6828
|
child.onLayerError && child.onLayerError(e);
|
|
6813
6829
|
});
|
|
@@ -6829,11 +6845,11 @@ var removeWMLayerFromMap = function removeWMLayerFromMap(wmLayer, mapId, onUpdat
|
|
|
6829
6845
|
mapDimensions: {
|
|
6830
6846
|
origin: origin,
|
|
6831
6847
|
mapId: mapId,
|
|
6832
|
-
dimensions: wmjsMap.mapdimensions.map(function (
|
|
6833
|
-
var name =
|
|
6834
|
-
units =
|
|
6835
|
-
currentValue =
|
|
6836
|
-
synced =
|
|
6848
|
+
dimensions: wmjsMap.mapdimensions.map(function (_ref2) {
|
|
6849
|
+
var name = _ref2.name,
|
|
6850
|
+
units = _ref2.units,
|
|
6851
|
+
currentValue = _ref2.currentValue,
|
|
6852
|
+
synced = _ref2.synced;
|
|
6837
6853
|
return {
|
|
6838
6854
|
name: name,
|
|
6839
6855
|
units: units,
|
|
@@ -8162,9 +8178,11 @@ var DimensionSelectSlider = function DimensionSelectSlider(_ref) {
|
|
|
8162
8178
|
value: sliderValue,
|
|
8163
8179
|
onKeyDown: upDownNavigation,
|
|
8164
8180
|
onChange: function onChange(e, val) {
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8181
|
+
if (typeof val === 'number') {
|
|
8182
|
+
onChangeDimensionValue(values[val].toString());
|
|
8183
|
+
if (!managedValue) {
|
|
8184
|
+
setCurrentIndex(val);
|
|
8185
|
+
}
|
|
8168
8186
|
}
|
|
8169
8187
|
}
|
|
8170
8188
|
})
|
|
@@ -8458,7 +8476,12 @@ var LayerInfoDialog = function LayerInfoDialog(_ref) {
|
|
|
8458
8476
|
order = _ref$order === void 0 ? 0 : _ref$order,
|
|
8459
8477
|
_ref$source = _ref.source,
|
|
8460
8478
|
source = _ref$source === void 0 ? 'app' : _ref$source,
|
|
8461
|
-
dialogHeight = _ref.dialogHeight
|
|
8479
|
+
dialogHeight = _ref.dialogHeight,
|
|
8480
|
+
_ref$startPosition = _ref.startPosition,
|
|
8481
|
+
startPosition = _ref$startPosition === void 0 ? {
|
|
8482
|
+
top: 150,
|
|
8483
|
+
left: 900
|
|
8484
|
+
} : _ref$startPosition;
|
|
8462
8485
|
var styles = getLayerStyles(layer);
|
|
8463
8486
|
var dimensions = getDimensionsList(layer.dimensions);
|
|
8464
8487
|
var _useWebmapReactTransl = useWebmapReactTranslation(),
|
|
@@ -8470,10 +8493,7 @@ var LayerInfoDialog = function LayerInfoDialog(_ref) {
|
|
|
8470
8493
|
width: 288,
|
|
8471
8494
|
height: dialogHeight || 650
|
|
8472
8495
|
},
|
|
8473
|
-
startPosition:
|
|
8474
|
-
top: 150,
|
|
8475
|
-
left: 900
|
|
8476
|
-
},
|
|
8496
|
+
startPosition: startPosition,
|
|
8477
8497
|
title: t('webmap-react-layer-info'),
|
|
8478
8498
|
isOpen: isOpen,
|
|
8479
8499
|
onMouseDown: onMouseDown,
|
|
@@ -8831,14 +8851,14 @@ var obsPrecipitationIntensityPWS = {
|
|
|
8831
8851
|
};
|
|
8832
8852
|
var harmonieRelativeHumidityPl = {
|
|
8833
8853
|
service: KNMIgeoservicesHarmonie.url,
|
|
8834
|
-
name: '
|
|
8854
|
+
name: 'relative_humidity_pl',
|
|
8835
8855
|
id: webmapUtils.generateLayerId(),
|
|
8836
8856
|
layerType: LayerType.mapLayer,
|
|
8837
8857
|
enabled: true
|
|
8838
8858
|
};
|
|
8839
8859
|
var harmonieWindPl = {
|
|
8840
8860
|
service: KNMIgeoservicesHarmonie.url,
|
|
8841
|
-
name: '
|
|
8861
|
+
name: 'wind_speed_pl',
|
|
8842
8862
|
id: webmapUtils.generateLayerId(),
|
|
8843
8863
|
layerType: LayerType.mapLayer,
|
|
8844
8864
|
enabled: true
|
|
@@ -8866,7 +8886,7 @@ var harmoniePressure = {
|
|
|
8866
8886
|
};
|
|
8867
8887
|
var harmonieWindFlags = {
|
|
8868
8888
|
service: KNMIgeoservicesHarmonie.url,
|
|
8869
|
-
name: '
|
|
8889
|
+
name: 'wind_speed_components_hagl',
|
|
8870
8890
|
enabled: true,
|
|
8871
8891
|
id: webmapUtils.generateLayerId(),
|
|
8872
8892
|
layerType: LayerType.mapLayer
|
|
@@ -9077,4 +9097,177 @@ var publicLayers = /*#__PURE__*/Object.freeze({
|
|
|
9077
9097
|
veiligheidsRegiosGebiedsIndelingenLabels: veiligheidsRegiosGebiedsIndelingenLabels
|
|
9078
9098
|
});
|
|
9079
9099
|
|
|
9080
|
-
|
|
9100
|
+
var privateWmsGetCapabilities = privateWebMapUtils.privateWmsGetCapabilities,
|
|
9101
|
+
privateGetWMSServiceInfo = privateWebMapUtils.privateGetWMSServiceInfo,
|
|
9102
|
+
privateWmsGetLayerTree = privateWebMapUtils.privateWmsGetLayerTree,
|
|
9103
|
+
privateWmsFlattenLayerTree = privateWebMapUtils.privateWmsFlattenLayerTree,
|
|
9104
|
+
privateWmtsGetCapabilities = privateWebMapUtils.privateWmtsGetCapabilities,
|
|
9105
|
+
QUERYWMS_GETCAPABILITIES = privateWebMapUtils.QUERYWMS_GETCAPABILITIES;
|
|
9106
|
+
/**
|
|
9107
|
+
* Queries the WMS GetCapabilities. This is the base TanStack hook for the other hooks in this file.
|
|
9108
|
+
*
|
|
9109
|
+
* @param {string} serviceUrl
|
|
9110
|
+
* @returns {UseQueryResult<GetCapabilitiesJson>}
|
|
9111
|
+
*/
|
|
9112
|
+
var useQueryGetWMSGetCapabilities = function useQueryGetWMSGetCapabilities(serviceUrl) {
|
|
9113
|
+
var uriKey = new URLSearchParams(serviceUrl).toString();
|
|
9114
|
+
return useQuery({
|
|
9115
|
+
queryKey: [uriKey, QUERYWMS_GETCAPABILITIES],
|
|
9116
|
+
queryFn: function queryFn() {
|
|
9117
|
+
return privateWmsGetCapabilities(serviceUrl);
|
|
9118
|
+
}
|
|
9119
|
+
});
|
|
9120
|
+
};
|
|
9121
|
+
/**
|
|
9122
|
+
* Returns details about the WMS service
|
|
9123
|
+
*
|
|
9124
|
+
* @param {string} serviceUrl
|
|
9125
|
+
* @returns {(WMSServiceInfo | null)}
|
|
9126
|
+
*/
|
|
9127
|
+
var useQueryGetWMSServiceInfo = function useQueryGetWMSServiceInfo(serviceUrl) {
|
|
9128
|
+
var _React$useState = React__default.useState(null),
|
|
9129
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
9130
|
+
serviceInfo = _React$useState2[0],
|
|
9131
|
+
setServiceInfo = _React$useState2[1];
|
|
9132
|
+
var _useQueryGetWMSGetCap = useQueryGetWMSGetCapabilities(serviceUrl),
|
|
9133
|
+
getCapabilitiesJSON = _useQueryGetWMSGetCap.data;
|
|
9134
|
+
React__default.useEffect(function () {
|
|
9135
|
+
if (!getCapabilitiesJSON) {
|
|
9136
|
+
setServiceInfo(null);
|
|
9137
|
+
} else {
|
|
9138
|
+
setServiceInfo(privateGetWMSServiceInfo(getCapabilitiesJSON, serviceUrl));
|
|
9139
|
+
}
|
|
9140
|
+
}, [serviceUrl, getCapabilitiesJSON]);
|
|
9141
|
+
return serviceInfo;
|
|
9142
|
+
};
|
|
9143
|
+
/**
|
|
9144
|
+
* Gets the layer tree in hierarchical order for a WMS service. Cached by TanStack. Uses the same store as in queryWMSGetCapabilities.
|
|
9145
|
+
*
|
|
9146
|
+
* @param {string} serviceUrl
|
|
9147
|
+
* @returns {(LayerTree | null)}
|
|
9148
|
+
*/
|
|
9149
|
+
var useQueryGetWMSLayersTree = function useQueryGetWMSLayersTree(serviceUrl) {
|
|
9150
|
+
var _React$useState3 = React__default.useState(null),
|
|
9151
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
9152
|
+
layerTree = _React$useState4[0],
|
|
9153
|
+
setLayerTree = _React$useState4[1];
|
|
9154
|
+
var _useQueryGetWMSGetCap2 = useQueryGetWMSGetCapabilities(serviceUrl),
|
|
9155
|
+
getCapabilitiesJSON = _useQueryGetWMSGetCap2.data;
|
|
9156
|
+
React__default.useEffect(function () {
|
|
9157
|
+
if (!getCapabilitiesJSON) {
|
|
9158
|
+
setLayerTree(null);
|
|
9159
|
+
} else {
|
|
9160
|
+
setLayerTree(privateWmsGetLayerTree(getCapabilitiesJSON));
|
|
9161
|
+
}
|
|
9162
|
+
}, [serviceUrl, getCapabilitiesJSON]);
|
|
9163
|
+
return layerTree;
|
|
9164
|
+
};
|
|
9165
|
+
/**
|
|
9166
|
+
* Gets the flat layer list (without hierarchy) for a WMS service. Cached by TanStack. Uses the same store as in queryWMSGetCapabilities.
|
|
9167
|
+
*
|
|
9168
|
+
* @param {string} serviceUrl
|
|
9169
|
+
* @returns {LayerProps[]}
|
|
9170
|
+
*/
|
|
9171
|
+
var useQueryGetWMSLayers = function useQueryGetWMSLayers(serviceUrl) {
|
|
9172
|
+
var _React$useState5 = React__default.useState([]),
|
|
9173
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
9174
|
+
layers = _React$useState6[0],
|
|
9175
|
+
setLayers = _React$useState6[1];
|
|
9176
|
+
var _useQueryGetWMSGetCap3 = useQueryGetWMSGetCapabilities(serviceUrl),
|
|
9177
|
+
getCapabilitiesJSON = _useQueryGetWMSGetCap3.data;
|
|
9178
|
+
React__default.useEffect(function () {
|
|
9179
|
+
if (!getCapabilitiesJSON) {
|
|
9180
|
+
setLayers([]);
|
|
9181
|
+
} else {
|
|
9182
|
+
setLayers(privateWmsFlattenLayerTree(privateWmsGetLayerTree(getCapabilitiesJSON)));
|
|
9183
|
+
}
|
|
9184
|
+
}, [serviceUrl, getCapabilitiesJSON]);
|
|
9185
|
+
return layers;
|
|
9186
|
+
};
|
|
9187
|
+
/**
|
|
9188
|
+
* Returns specific layer from the WMS service
|
|
9189
|
+
*
|
|
9190
|
+
* @param {string} serviceUrl
|
|
9191
|
+
* @param {string} name
|
|
9192
|
+
* @returns {(LayerProps | null)}
|
|
9193
|
+
*/
|
|
9194
|
+
var useQueryGetWMSLayer = function useQueryGetWMSLayer(serviceUrl, name) {
|
|
9195
|
+
var _React$useState7 = React__default.useState(null),
|
|
9196
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
9197
|
+
layer = _React$useState8[0],
|
|
9198
|
+
setLayer = _React$useState8[1];
|
|
9199
|
+
var layers = useQueryGetWMSLayers(serviceUrl);
|
|
9200
|
+
React__default.useEffect(function () {
|
|
9201
|
+
setLayer(layers.find(function (l) {
|
|
9202
|
+
return l.name === name;
|
|
9203
|
+
}) || null);
|
|
9204
|
+
}, [layers, name]);
|
|
9205
|
+
return layer;
|
|
9206
|
+
};
|
|
9207
|
+
/**
|
|
9208
|
+
* Returns a stylelist for given layer in a service
|
|
9209
|
+
*
|
|
9210
|
+
* @param {string} serviceUrl
|
|
9211
|
+
* @param {string} name
|
|
9212
|
+
* @returns {(Style[] | null)}
|
|
9213
|
+
*/
|
|
9214
|
+
var useGetWMSLayerStyleList = function useGetWMSLayerStyleList(serviceUrl, name) {
|
|
9215
|
+
var _useQueryGetWMSLayer;
|
|
9216
|
+
return ((_useQueryGetWMSLayer = useQueryGetWMSLayer(serviceUrl, name)) === null || _useQueryGetWMSLayer === void 0 ? void 0 : _useQueryGetWMSLayer.styles) || null;
|
|
9217
|
+
};
|
|
9218
|
+
/**
|
|
9219
|
+
* Returns WMLayer instance. The layer will contains parsed dimensions and styles and keeps a state for these properties.
|
|
9220
|
+
*
|
|
9221
|
+
* @param {string} serviceUrl
|
|
9222
|
+
* @param {string} name
|
|
9223
|
+
* @returns {(WMLayer | null)}
|
|
9224
|
+
*/
|
|
9225
|
+
var useGetWMLayerInstance = function useGetWMLayerInstance(serviceUrl, name, id) {
|
|
9226
|
+
var _React$useState9 = React__default.useState(null),
|
|
9227
|
+
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
9228
|
+
layer = _React$useState10[0],
|
|
9229
|
+
setLayer = _React$useState10[1];
|
|
9230
|
+
var refId = useRef(webmapUtils.generateLayerId()).current;
|
|
9231
|
+
var layerId = id || refId;
|
|
9232
|
+
React__default.useEffect(function () {
|
|
9233
|
+
// Check if the layer is already registered
|
|
9234
|
+
var l = webmapUtils.getWMLayerById(layerId);
|
|
9235
|
+
if (!l || l.service !== serviceUrl) {
|
|
9236
|
+
// Make a new layer if the serviceUrl changes. (But not when the name changes)
|
|
9237
|
+
var _wmLayer = new WMLayer({
|
|
9238
|
+
name: name,
|
|
9239
|
+
service: serviceUrl,
|
|
9240
|
+
layerType: LayerType.mapLayer,
|
|
9241
|
+
id: layerId
|
|
9242
|
+
});
|
|
9243
|
+
webmapUtils.registerWMLayer(_wmLayer, layerId);
|
|
9244
|
+
}
|
|
9245
|
+
// Set the name and parse the layer
|
|
9246
|
+
var wmLayer = webmapUtils.getWMLayerById(layerId);
|
|
9247
|
+
wmLayer.setName(name).then(function () {
|
|
9248
|
+
webmapUtils.registerWMLayer(wmLayer, layerId);
|
|
9249
|
+
setLayer(wmLayer);
|
|
9250
|
+
})["catch"](function (e) {
|
|
9251
|
+
console.error(e);
|
|
9252
|
+
webmapUtils.registerWMLayer(wmLayer, layerId);
|
|
9253
|
+
setLayer(wmLayer);
|
|
9254
|
+
});
|
|
9255
|
+
}, [layerId, name, serviceUrl]);
|
|
9256
|
+
return layer;
|
|
9257
|
+
};
|
|
9258
|
+
/**
|
|
9259
|
+
* Used for querying WMTS GetCapabilities documents
|
|
9260
|
+
* @param serviceUrl
|
|
9261
|
+
* @returns
|
|
9262
|
+
*/
|
|
9263
|
+
var useQueryWMTSGetCapabilities = function useQueryWMTSGetCapabilities(serviceUrl) {
|
|
9264
|
+
var uriKey = new URLSearchParams(serviceUrl).toString();
|
|
9265
|
+
return useQuery({
|
|
9266
|
+
queryKey: [uriKey, 'queryGetCapabilities'],
|
|
9267
|
+
queryFn: function queryFn() {
|
|
9268
|
+
return privateWmtsGetCapabilities(serviceUrl, [], true);
|
|
9269
|
+
}
|
|
9270
|
+
});
|
|
9271
|
+
};
|
|
9272
|
+
|
|
9273
|
+
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, Proj4js, radarGetCapabilities_spec as RadarGetCapabilities, ReactMapView, ReactMapViewLayer, SelectField, StoryLayoutGrid, WEBMAP_REACT_NAMESPACE, ZoomControls, addFeatureProperties, addGeoJSONProperties, addSelectionTypeToGeoJSON, addWMLayerPropsBasedOnChildProps, basicExampleDrawOptions, basicExampleMultipleShapeDrawOptions, basicExampleMultipleShapeWithValuesDrawOptions, checkHoverFeatures, convertGeoCoordsToScreenCoords, 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, findClosestCoords, firSelectionType, formatTime, getCurrentDimensionValue, getDimensionIcon, getDimensionLabel, getDimensionValue, getDimensionsList, getDoubleControlToolIcon, getDrawFunctionFromStore, getFeatureCollection, getFeatureExtent, getFeatureLayers, getFirTitle, getGeoJSONPropertyValue, getGeoJson, getIcon, getIntersectionToolIcon, getIsInsideAcceptanceTime, getLastEmptyFeatureIndex, getLayerBbox, getLayerStyles, getLayerUpdateInfo, getPixelCoordFromGeoCoord, getProj4, getTimeDimension, getToolIcon, intersectPointGeoJSONS, intersectPolygonGeoJSONS, intersectionFeatureBE, intersectionFeatureNL, isAGeoJSONLayer, isAMapLayer, isBetween, isGeoJSONFeatureCreatedByTool, isPointFeatureCollection, lineString, lineStringCollection, makeLayerPropListFromChildren, marksByDimension, moveFeature, opacityOptions, orderLayers, parseWMJSLayer, projectorCache, publicLayers, publicServices, registerDrawFunction, removeWMLayerFromMap, rewindGeometry, setWMLayerPropsBasedOnChildProps, simpleBoxGeoJSON, simpleBoxGeoJSONWrongOrder, simpleFlightRouteLineStringGeoJSON, simpleFlightRoutePointsGeoJSON, simpleGeometryCollectionGeoJSON, simpleLineStringGeoJSON, simpleMultiPolygon, simplePointsGeojson, simplePolygonGeoJSON, simpleSmallLineStringGeoJSON, startToolExampleConfig, strokeWidthOptions, textStyle, textStyleWithMargin, updateEditModeButtonsWithFir, useGeoJSON, useGetWMLayerInstance, useGetWMSLayerStyleList, useMapDrawTool, useQueryGetWMSGetCapabilities, useQueryGetWMSLayer, useQueryGetWMSLayers, useQueryGetWMSLayersTree, useQueryGetWMSServiceInfo, useQueryWMTSGetCapabilities, webmapReactTranslations };
|
package/package.json
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ProfileAxis } from './ProfileAxis';
|
|
3
|
+
declare const meta: Meta<typeof ProfileAxis>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ProfileAxis>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const ProfileAxisStory: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Source } from '@opengeoweb/shared';
|
|
2
|
+
import { Position, Source } from '@opengeoweb/shared';
|
|
3
3
|
import { LayerProps } from '@opengeoweb/webmap';
|
|
4
4
|
export interface LayerInfoDialogProps {
|
|
5
5
|
layer: LayerProps;
|
|
@@ -10,5 +10,6 @@ export interface LayerInfoDialogProps {
|
|
|
10
10
|
order?: number;
|
|
11
11
|
source?: Source;
|
|
12
12
|
dialogHeight?: number;
|
|
13
|
+
startPosition?: Position;
|
|
13
14
|
}
|
|
14
15
|
export declare const LayerInfoDialog: React.FC<LayerInfoDialogProps>;
|
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
name: string;
|
|
12
|
-
link: string;
|
|
13
|
-
}[];
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export declare const LayerInfoDialogDark: {
|
|
17
|
-
(): React.ReactElement;
|
|
18
|
-
tags: string[];
|
|
19
|
-
parameters: {
|
|
20
|
-
zeplinLink: {
|
|
21
|
-
name: string;
|
|
22
|
-
link: string;
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { LayerInfoDialog } from './LayerInfoDialog';
|
|
3
|
+
declare const meta: Meta<typeof LayerInfoDialog>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof LayerInfoDialog>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const LayerInfoDialogLightDoc: Story;
|
|
8
|
+
export declare const LayerInfoDialogLight: Story;
|
|
9
|
+
export declare const LayerInfoDialogDarkDoc: Story;
|
|
10
|
+
export declare const LayerInfoDialogDark: Story;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const SimpleLegend:
|
|
7
|
-
export declare const SimpleLegendWithMultiDimensions:
|
|
8
|
-
export declare const SimpleLegendWithoutDimensionsOrGraphic:
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Legend } from './Legend';
|
|
3
|
+
declare const meta: Meta<typeof Legend>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Legend>;
|
|
6
|
+
export declare const SimpleLegend: Story;
|
|
7
|
+
export declare const SimpleLegendWithMultiDimensions: Story;
|
|
8
|
+
export declare const SimpleLegendWithoutDimensionsOrGraphic: Story;
|
|
@@ -1,29 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare const DimensionSelectEnsembleMemberLight: {
|
|
15
|
-
(): React.ReactElement;
|
|
16
|
-
tags: string[];
|
|
17
|
-
};
|
|
18
|
-
export declare const DimensionSelectEnsembleMemberDark: {
|
|
19
|
-
(): React.ReactElement;
|
|
20
|
-
tags: string[];
|
|
21
|
-
};
|
|
22
|
-
export declare const DimensionSelectInvalidSyncLight: {
|
|
23
|
-
(): React.ReactElement;
|
|
24
|
-
tags: string[];
|
|
25
|
-
};
|
|
26
|
-
export declare const DimensionSelectInvalidSyncDark: {
|
|
27
|
-
(): React.ReactElement;
|
|
28
|
-
tags: string[];
|
|
29
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import MapDimensionSelect from './MapDimensionSelect';
|
|
3
|
+
declare const meta: Meta<typeof MapDimensionSelect>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MapDimensionSelect>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const ComponentDark: Story;
|
|
8
|
+
export declare const DimensionSelectElevationLight: Story;
|
|
9
|
+
export declare const DimensionSelectElevationDark: Story;
|
|
10
|
+
export declare const DimensionSelectEnsembleMemberLight: Story;
|
|
11
|
+
export declare const DimensionSelectEnsembleMemberDark: Story;
|
|
12
|
+
export declare const DimensionSelectInvalidSyncLight: Story;
|
|
13
|
+
export declare const DimensionSelectInvalidSyncDark: Story;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
import MapDimensionSelect from './MapDimensionSelect';
|
|
2
4
|
declare const _default: {
|
|
3
5
|
title: string;
|
|
4
6
|
component: React.FC<import("../MapView").MapViewProps>;
|
|
5
7
|
};
|
|
6
8
|
export default _default;
|
|
7
|
-
|
|
9
|
+
type Story = StoryObj<typeof MapDimensionSelect>;
|
|
10
|
+
export declare const MapDimensionOnMap: Story;
|
|
@@ -1,37 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const Map1:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare const Map3: {
|
|
15
|
-
(): React.ReactElement;
|
|
16
|
-
storyName: string;
|
|
17
|
-
};
|
|
18
|
-
export declare const Map4: {
|
|
19
|
-
(): React.ReactElement;
|
|
20
|
-
storyName: string;
|
|
21
|
-
};
|
|
22
|
-
export declare const Map5: {
|
|
23
|
-
(): React.ReactElement;
|
|
24
|
-
storyName: string;
|
|
25
|
-
};
|
|
26
|
-
export declare const Map6: {
|
|
27
|
-
(): React.ReactElement;
|
|
28
|
-
storyName: string;
|
|
29
|
-
};
|
|
30
|
-
export declare const Map7: {
|
|
31
|
-
(): React.ReactElement;
|
|
32
|
-
storyName: string;
|
|
33
|
-
};
|
|
34
|
-
export declare const Map8: {
|
|
35
|
-
(): React.ReactElement;
|
|
36
|
-
storyName: string;
|
|
37
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MapDrawGeoJSON } from './storyComponents/MapDrawGeoJSON';
|
|
3
|
+
declare const meta: Meta<typeof MapDrawGeoJSON>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MapDrawGeoJSON>;
|
|
6
|
+
export declare const Map1: Story;
|
|
7
|
+
export declare const Map2: Story;
|
|
8
|
+
export declare const Map3: Story;
|
|
9
|
+
export declare const Map4: Story;
|
|
10
|
+
export declare const Map5: Story;
|
|
11
|
+
export declare const Map6: Story;
|
|
12
|
+
export declare const Map7: Story;
|
|
13
|
+
export declare const Map8: Story;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const BasicMapDrawTool: React.FC<BasicMapDrawToolProps>;
|
|
11
|
-
export declare const BasicMapDrawToolShape: () => React.ReactElement;
|
|
12
|
-
export declare const BasicMapDrawToolWithMultipleShapes: () => React.ReactElement;
|
|
13
|
-
export declare const BasicMapDrawToolWithMultipleShapesValues: () => React.ReactElement;
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { useMapDrawTool } from './useMapDrawTool';
|
|
3
|
+
declare const meta: Meta<typeof useMapDrawTool>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof useMapDrawTool>;
|
|
6
|
+
export declare const BasicMapDrawTool: Story;
|
|
7
|
+
export declare const BasicMapDrawToolShape: Story;
|
|
8
|
+
export declare const BasicMapDrawToolWithMultipleShapes: Story;
|
|
9
|
+
export declare const BasicMapDrawToolWithMultipleShapesValues: Story;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
mapDrawOptions: MapDrawToolOptions;
|
|
9
|
-
}
|
|
10
|
-
export declare const IntersectionDemo: React.FC<MapDrawToolIntersectDemoProps>;
|
|
11
|
-
export declare const IntersectionWithShapeDemo: () => React.ReactElement;
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { useMapDrawTool } from './useMapDrawTool';
|
|
3
|
+
declare const meta: Meta<typeof useMapDrawTool>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof useMapDrawTool>;
|
|
6
|
+
export declare const IntersectionDemo: Story;
|
|
7
|
+
export declare const IntersectionWithShapeDemo: Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const MultipleDrawToolsDemo:
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { useMapDrawTool } from './useMapDrawTool';
|
|
3
|
+
declare const meta: Meta<typeof useMapDrawTool>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof useMapDrawTool>;
|
|
6
|
+
export declare const MultipleDrawToolsDemo: Story;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const MapError:
|
|
8
|
-
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const MapWithDuplicateLayerIdsError: {
|
|
12
|
-
(): React.ReactElement;
|
|
13
|
-
storyName: string;
|
|
14
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MapView } from '.';
|
|
3
|
+
declare const meta: Meta<typeof MapView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MapView>;
|
|
6
|
+
export declare const Component: Story;
|
|
7
|
+
export declare const MapError: Story;
|
|
8
|
+
export declare const MapWithDuplicateLayerIdsError: Story;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const SetMapPin: {
|
|
8
|
-
(): React.ReactElement;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MapView } from '.';
|
|
3
|
+
declare const meta: Meta<typeof MapView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MapView>;
|
|
6
|
+
export declare const SetMapPin: Story;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const PassiveMap: {
|
|
8
|
-
(): React.ReactElement;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MapView } from '.';
|
|
3
|
+
declare const meta: Meta<typeof MapView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MapView>;
|
|
6
|
+
export declare const PassiveMap: Story;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const
|
|
7
|
-
title: string;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MapView } from './MapView';
|
|
3
|
+
declare const meta: Meta<typeof MapView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MapView>;
|
|
6
|
+
export declare const MapViewProfile: Story;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const RadarAnimation: {
|
|
8
|
-
(): React.ReactElement;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MapView } from '.';
|
|
3
|
+
declare const meta: Meta<typeof MapView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MapView>;
|
|
6
|
+
export declare const RadarAnimation: Story;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const MapViewRadar: {
|
|
8
|
-
(): React.ReactElement;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MapView } from './MapView';
|
|
3
|
+
declare const meta: Meta<typeof MapView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MapView>;
|
|
6
|
+
export declare const MapViewRadar: Story;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const SetProjectionBBox: {
|
|
8
|
-
(): React.ReactElement;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MapView } from '.';
|
|
3
|
+
declare const meta: Meta<typeof MapView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MapView>;
|
|
6
|
+
export declare const SetProjectionBBox: Story;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const SetProjectionBBoxLocalState: {
|
|
8
|
-
(): React.ReactElement;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MapView } from '.';
|
|
3
|
+
declare const meta: Meta<typeof MapView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MapView>;
|
|
6
|
+
export declare const SetProjectionBBoxLocalState: Story;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const HoldShiftToZoom: {
|
|
8
|
-
(): React.ReactElement;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MapView } from '.';
|
|
3
|
+
declare const meta: Meta<typeof MapView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MapView>;
|
|
6
|
+
export declare const HoldShiftToZoom: Story;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const MapWithShowLayerInfoEnabled: {
|
|
8
|
-
(): React.ReactElement;
|
|
9
|
-
storyName: string;
|
|
10
|
-
};
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MapView } from '.';
|
|
3
|
+
declare const meta: Meta<typeof MapView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MapView>;
|
|
6
|
+
export declare const MapWithShowLayerInfoEnabled: Story;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export default _default;
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MapView } from './MapView';
|
|
3
|
+
declare const meta: Meta<typeof MapView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MapView>;
|
|
7
6
|
export interface MapDropDownItem {
|
|
8
7
|
name: string;
|
|
9
8
|
title: string;
|
|
@@ -15,8 +14,4 @@ export interface MapDropDownProps {
|
|
|
15
14
|
top?: number;
|
|
16
15
|
left?: number;
|
|
17
16
|
}
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const MapViewTiledBaseLayers: {
|
|
20
|
-
(): React.ReactElement;
|
|
21
|
-
storyName: string;
|
|
22
|
-
};
|
|
17
|
+
export declare const MapViewTiledBaseLayers: Story;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare enum TimeMode {
|
|
3
|
+
YEAR = 0,
|
|
4
|
+
MONTH = 1,
|
|
5
|
+
DAY = 2,
|
|
6
|
+
HOUR = 3,
|
|
7
|
+
MINUTE = 4,
|
|
8
|
+
SECOND = 5
|
|
9
|
+
}
|
|
10
|
+
interface WMSDimTimeYearSelectorProps {
|
|
11
|
+
selectedISOTime: string;
|
|
12
|
+
layerId: string;
|
|
13
|
+
onSelectTime: (time: string) => void;
|
|
14
|
+
mode: TimeMode;
|
|
15
|
+
}
|
|
16
|
+
export declare const increaseTime: (selectedISOTime: string, timeRes: string) => string;
|
|
17
|
+
declare const WMSDimTimeYearSelector: ({ selectedISOTime, layerId, onSelectTime, mode, }: WMSDimTimeYearSelectorProps) => React.ReactElement<WMSDimTimeYearSelectorProps> | null;
|
|
18
|
+
export default WMSDimTimeYearSelector;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LayerProps, LayerFoundation } from '@opengeoweb/webmap';
|
|
3
|
+
interface WMSLayerSelectorProps {
|
|
4
|
+
layer: LayerFoundation;
|
|
5
|
+
layers: LayerProps[];
|
|
6
|
+
onSelectLayer: (layer: LayerProps) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const WMSLayerSelector: ({ layer, layers, onSelectLayer, }: WMSLayerSelectorProps) => React.ReactElement<WMSLayerSelectorProps>;
|
|
9
|
+
export default WMSLayerSelector;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LayerFoundation } from '@opengeoweb/webmap';
|
|
3
|
+
interface WMSStyleSelectorProps {
|
|
4
|
+
layer: LayerFoundation;
|
|
5
|
+
onSelectStyle: (layer: LayerFoundation) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const WMSStyleSelector: ({ layer, onSelectStyle, }: WMSStyleSelectorProps) => React.ReactElement<WMSStyleSelectorProps> | null;
|
|
8
|
+
export default WMSStyleSelector;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface WMSTimeSliderProps {
|
|
3
|
+
selectedISOTime: string;
|
|
4
|
+
layerId: string;
|
|
5
|
+
onSelectTime: (time: string) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const WMSTimeSlider: ({ selectedISOTime, layerId, onSelectTime, }: WMSTimeSliderProps) => React.ReactElement<WMSTimeSliderProps> | null;
|
|
8
|
+
export default WMSTimeSlider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetCapabilitiesJson, WMSServiceInfo, LayerTree, LayerProps, WMLayer } from '@opengeoweb/webmap';
|
|
1
|
+
import { GetCapabilitiesJson, WMSServiceInfo, LayerTree, LayerProps, WMLayer, Style } from '@opengeoweb/webmap';
|
|
2
2
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
3
3
|
/**
|
|
4
4
|
* Queries the WMS GetCapabilities. This is the base TanStack hook for the other hooks in this file.
|
|
@@ -36,6 +36,14 @@ export declare const useQueryGetWMSLayers: (serviceUrl: string) => LayerProps[];
|
|
|
36
36
|
* @returns {(LayerProps | null)}
|
|
37
37
|
*/
|
|
38
38
|
export declare const useQueryGetWMSLayer: (serviceUrl: string, name: string) => LayerProps | null;
|
|
39
|
+
/**
|
|
40
|
+
* Returns a stylelist for given layer in a service
|
|
41
|
+
*
|
|
42
|
+
* @param {string} serviceUrl
|
|
43
|
+
* @param {string} name
|
|
44
|
+
* @returns {(Style[] | null)}
|
|
45
|
+
*/
|
|
46
|
+
export declare const useGetWMSLayerStyleList: (serviceUrl: string, name: string) => Style[] | null;
|
|
39
47
|
/**
|
|
40
48
|
* Returns WMLayer instance. The layer will contains parsed dimensions and styles and keeps a state for these properties.
|
|
41
49
|
*
|
|
@@ -43,4 +51,10 @@ export declare const useQueryGetWMSLayer: (serviceUrl: string, name: string) =>
|
|
|
43
51
|
* @param {string} name
|
|
44
52
|
* @returns {(WMLayer | null)}
|
|
45
53
|
*/
|
|
46
|
-
export declare const useGetWMLayerInstance: (serviceUrl: string, name: string) => WMLayer | null;
|
|
54
|
+
export declare const useGetWMLayerInstance: (serviceUrl: string, name: string, id?: string) => WMLayer | null;
|
|
55
|
+
/**
|
|
56
|
+
* Used for querying WMTS GetCapabilities documents
|
|
57
|
+
* @param serviceUrl
|
|
58
|
+
* @returns
|
|
59
|
+
*/
|
|
60
|
+
export declare const useQueryWMTSGetCapabilities: (serviceUrl: string) => UseQueryResult<GetCapabilitiesJson>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/src/lib/index.d.ts
CHANGED