@opengeoweb/webmap-react 21.1.0-nightly-20261109 → 21.1.0-nightly-20261110

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/dist/index.esm.js CHANGED
@@ -62,6 +62,9 @@ var en = {
62
62
  "webmap-react-legend": "Legend",
63
63
  "webmap-react-title": "Title",
64
64
  "webmap-react-name": "Name",
65
+ "webmap-react-edr-parameter": "EDR parameter",
66
+ "webmap-react-edr-observed-property": "Observed property",
67
+ "webmap-react-edr-unit": "Unit",
65
68
  "webmap-react-service": "Service",
66
69
  "webmap-react-service-url": "Service URL",
67
70
  "webmap-react-abstract": "Abstract",
@@ -124,6 +127,9 @@ var fi = {
124
127
  "webmap-react-legend": "Selite",
125
128
  "webmap-react-title": "Otsikko",
126
129
  "webmap-react-name": "Nimi",
130
+ "webmap-react-edr-parameter": "EDR-parametri",
131
+ "webmap-react-edr-observed-property": "Havaittu suure",
132
+ "webmap-react-edr-unit": "Yksikkö",
127
133
  "webmap-react-service": "Palvelu",
128
134
  "webmap-react-service-url": "Palvelun URL",
129
135
  "webmap-react-abstract": "Tiivistelmä",
@@ -136,7 +142,7 @@ var fi = {
136
142
  "webmap-react-zoom-in": "Lähennä",
137
143
  "webmap-react-zoom-out": "Loitonna",
138
144
  "webmap-react-show": "Näytä",
139
- "webmap-react-click-disconnect": "Irroita karttataso napsauttamalla",
145
+ "webmap-react-click-disconnect": "Irrota karttataso napsauttamalla",
140
146
  "webmap-react-click-connect": "Yhdistä karttataso napsauttamalla",
141
147
  "webmap-react-layer-info": "Karttatason tiedot",
142
148
  "webmap-react-vertical-level": "pystytaso",
@@ -158,7 +164,15 @@ var fi = {
158
164
  "webmap-react-box": "Laatikko",
159
165
  "webmap-react-rotatable-box": "Laatikko",
160
166
  "webmap-react-linestring": "Viivajono",
167
+ "webmap-react-circle": "Ympyrä",
168
+ "webmap-react-square": "Neliö",
169
+ "webmap-react-freehand": "Vapaalla kädellä",
170
+ "webmap-react-oval": "Soikio",
171
+ "webmap-react-location": "Sijainti",
161
172
  "webmap-react-delete": "Poista",
173
+ "webmap-react-split": "Jaa",
174
+ "webmap-react-legend-no-image": "Selitekuvaa ei ole saatavilla",
175
+ "webmap-react-map-measure-help-tooltip": "Mittaa napsauttamalla",
162
176
  "clock-show": "Näytä kello",
163
177
  "clock-hide": "Piilota kello",
164
178
  "clock-animation-options": "Animoinnin asetukset",
@@ -177,6 +191,9 @@ var no = {
177
191
  "webmap-react-legend": "Tegnforklaring",
178
192
  "webmap-react-title": "Tittel",
179
193
  "webmap-react-name": "Navn",
194
+ "webmap-react-edr-parameter": "EDR-parameter",
195
+ "webmap-react-edr-observed-property": "Observert egenskap",
196
+ "webmap-react-edr-unit": "Enhet",
180
197
  "webmap-react-service": "Service",
181
198
  "webmap-react-service-url": "Service URL",
182
199
  "webmap-react-abstract": "Abstrakt",
@@ -230,6 +247,9 @@ var nl = {
230
247
  "webmap-react-legend": "Legenda",
231
248
  "webmap-react-title": "Titel",
232
249
  "webmap-react-name": "Naam",
250
+ "webmap-react-edr-parameter": "EDR-parameter",
251
+ "webmap-react-edr-observed-property": "Waargenomen grootheid",
252
+ "webmap-react-edr-unit": "Eenheid",
233
253
  "webmap-react-service": "Service",
234
254
  "webmap-react-service-url": "Service-URL",
235
255
  "webmap-react-abstract": "Abstract",
@@ -3266,6 +3286,12 @@ var normalizeEDRLabel = function normalizeEDRLabel(label, fallback) {
3266
3286
  }
3267
3287
  return fallback;
3268
3288
  };
3289
+ var getEDRUnitLabel = function getEDRUnitLabel(parameter) {
3290
+ var _parameter$unit, _parameter$unit2;
3291
+ var symbol = parameter === null || parameter === void 0 || (_parameter$unit = parameter.unit) === null || _parameter$unit === void 0 ? void 0 : _parameter$unit.symbol;
3292
+ var symbolValue = typeof symbol === 'string' ? symbol : symbol === null || symbol === void 0 ? void 0 : symbol.value;
3293
+ return symbolValue || normalizeEDRLabel(parameter === null || parameter === void 0 || (_parameter$unit2 = parameter.unit) === null || _parameter$unit2 === void 0 ? void 0 : _parameter$unit2.label, '');
3294
+ };
3269
3295
 
3270
3296
  /* *
3271
3297
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -3497,6 +3523,7 @@ var useIconStyle = function useIconStyle(_ref) {
3497
3523
  };
3498
3524
  };
3499
3525
 
3526
+ var EDR_PLAIN_NUMBERS_STYLE = 'plainNumbers';
3500
3527
  var makeLegendFromStyleName = function makeLegendFromStyleName(styleName) {
3501
3528
  var minMaxPartFromNumericIndex = styleName.indexOf(':');
3502
3529
  var legMinMax = minMaxPartFromNumericIndex > 0 ? styleName.substring(minMaxPartFromNumericIndex + 1).split(',').map(function (stringValue) {
@@ -3705,13 +3732,20 @@ var makeFeatureStyleWind = function makeFeatureStyleWind(feature) {
3705
3732
  });
3706
3733
  return [speedStyle, arrowStyle];
3707
3734
  };
3735
+ var formatEDRValue = function formatEDRValue(value) {
3736
+ if (value === null || value === undefined || value === '') {
3737
+ return '-';
3738
+ }
3739
+ var numericValue = Number(value);
3740
+ return Number.isFinite(numericValue) ? String(Math.round(numericValue * 10) / 10) : String(value);
3741
+ };
3708
3742
  var makeFeatureStyleMultiParam = function makeFeatureStyleMultiParam(feature) {
3709
3743
  var _feature$getPropertie2 = feature.getProperties(),
3710
3744
  values = _feature$getPropertie2.values;
3711
- var paramValues = Object.values(values);
3745
+ var paramValues = Object.values(values).map(formatEDRValue);
3712
3746
  // Determine offset between columns (long strings need more space)
3713
3747
  var maxLength = Math.max.apply(Math, _toConsumableArray(paramValues.map(function (el) {
3714
- return el ? el.toString().length : 1;
3748
+ return el.length;
3715
3749
  })));
3716
3750
  var factor = maxLength > 5 ? 1.4 : 1;
3717
3751
  var offsetValues = getOffsetValues(factor);
@@ -3720,7 +3754,7 @@ var makeFeatureStyleMultiParam = function makeFeatureStyleMultiParam(feature) {
3720
3754
  return params.map(function (paramVal, index) {
3721
3755
  return new Style({
3722
3756
  text: new Text({
3723
- text: paramVal ? paramVal.toString() : '-',
3757
+ text: paramVal,
3724
3758
  offsetX: offsetValues[index][0],
3725
3759
  offsetY: offsetValues[index][1],
3726
3760
  scale: 1.0,
@@ -3769,9 +3803,26 @@ var makeFeatureStyleDisc = function makeFeatureStyleDisc(feature, legend) {
3769
3803
  })
3770
3804
  });
3771
3805
  };
3772
- var makeFeatureStyleLoading = function makeFeatureStyleLoading(feature) {
3806
+ var makeFeatureStylePlainNumber = function makeFeatureStylePlainNumber(feature) {
3773
3807
  var _feature$getPropertie4 = feature.getProperties(),
3774
3808
  values = _feature$getPropertie4.values;
3809
+ return new Style({
3810
+ text: new Text({
3811
+ font: 'bold 12px Arial',
3812
+ text: formatEDRValue(Object.values(values !== null && values !== void 0 ? values : {})[0]),
3813
+ stroke: new Stroke({
3814
+ color: '#ffffff',
3815
+ width: 3
3816
+ }),
3817
+ fill: new Fill({
3818
+ color: '#000000'
3819
+ })
3820
+ })
3821
+ });
3822
+ };
3823
+ var makeFeatureStyleLoading = function makeFeatureStyleLoading(feature) {
3824
+ var _feature$getPropertie5 = feature.getProperties(),
3825
+ values = _feature$getPropertie5.values;
3775
3826
  var textValue = Object.values(values)[0];
3776
3827
  return new Style({
3777
3828
  image: new Circle({
@@ -3815,13 +3866,23 @@ var styleNameToStyleLikeNotMemoed = function styleNameToStyleLikeNotMemoed(style
3815
3866
  return makeFeatureStyleMultiParam(feature);
3816
3867
  };
3817
3868
  }
3869
+ if (styleName === EDR_PLAIN_NUMBERS_STYLE) {
3870
+ return makeFeatureStylePlainNumber;
3871
+ }
3818
3872
  var legend = makeLegendFromStyleName(styleName) || defaultLegend$1;
3819
3873
  return function (feature) {
3820
3874
  return makeFeatureStyleDisc(feature, legend);
3821
3875
  };
3822
3876
  };
3823
- var styleNameToStyleLike = memoize(styleNameToStyleLikeNotMemoed);
3877
+ var styleNameToStyleLike = memoize(styleNameToStyleLikeNotMemoed, function (styleName, multiParam) {
3878
+ return "".concat(styleName, ":").concat(!!multiParam);
3879
+ });
3824
3880
  var defaultEdrStyles = [{
3881
+ name: EDR_PLAIN_NUMBERS_STYLE,
3882
+ title: 'Plain numbers',
3883
+ "abstract": '',
3884
+ legendURL: ''
3885
+ }, {
3825
3886
  name: 'temperatureLegendColorsWoW:-18,38',
3826
3887
  title: 'WOW Legend -18 till 18 degrees',
3827
3888
  "abstract": 'temperatureLegendColorsWoW',
@@ -3858,6 +3919,98 @@ var defaultEdrStyles = [{
3858
3919
  legendURL: ''
3859
3920
  }];
3860
3921
 
3922
+ var getEDRParameters = function getEDRParameters(collection) {
3923
+ var _collection$parameter;
3924
+ if (Array.isArray(collection.parameter_names)) {
3925
+ return collection.parameter_names.map(function (parameter, index) {
3926
+ var _parameter$id;
3927
+ return [(_parameter$id = parameter.id) !== null && _parameter$id !== void 0 ? _parameter$id : String(index), parameter];
3928
+ });
3929
+ }
3930
+ return Object.entries((_collection$parameter = collection.parameter_names) !== null && _collection$parameter !== void 0 ? _collection$parameter : {});
3931
+ };
3932
+ var getEDRCollectionPath = function getEDRCollectionPath(collection) {
3933
+ var _ref, _collection$path, _collection$title;
3934
+ return [].concat(_toConsumableArray((_ref = (_collection$path = collection.path) !== null && _collection$path !== void 0 ? _collection$path : collection.groups) !== null && _ref !== void 0 ? _ref : collection.group ? [collection.group] : []), [(_collection$title = collection.title) !== null && _collection$title !== void 0 ? _collection$title : collection.id]);
3935
+ };
3936
+ /**
3937
+ * Converts EDR collections to service layers, one layer per collection parameter.
3938
+ * Layers are grouped by collection in the Layer Select using their path.
3939
+ */
3940
+ var edrCollectionsToServiceLayers = function edrCollectionsToServiceLayers(collections) {
3941
+ return collections.flatMap(function (collection) {
3942
+ return getEDRParameters(collection).map(function (_ref2) {
3943
+ var _parameter$observedPr;
3944
+ var _ref3 = _slicedToArray(_ref2, 2),
3945
+ parameterId = _ref3[0],
3946
+ parameter = _ref3[1];
3947
+ var observedPropertyLabel = (_parameter$observedPr = parameter.observedProperty) === null || _parameter$observedPr === void 0 ? void 0 : _parameter$observedPr.label;
3948
+ var label = normalizeEDRLabel(parameter.label, parameterId);
3949
+ return {
3950
+ name: parameterId,
3951
+ leaf: true,
3952
+ path: getEDRCollectionPath(collection),
3953
+ title: normalizeEDRLabel(parameter.label, normalizeEDRLabel(observedPropertyLabel, parameterId)),
3954
+ "abstract": normalizeEDRLabel(parameter.description, ''),
3955
+ keywords: observedPropertyLabel ? [normalizeEDRLabel(observedPropertyLabel, label)] : [],
3956
+ edrCollectionId: collection.id,
3957
+ edrParameter: parameter,
3958
+ styles: defaultEdrStyles
3959
+ };
3960
+ });
3961
+ });
3962
+ };
3963
+ var fetchEDRServiceLayers = /*#__PURE__*/function () {
3964
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(serviceUrl) {
3965
+ var _yield$fetchEDRJson, collections;
3966
+ return _regenerator().w(function (_context) {
3967
+ while (1) switch (_context.n) {
3968
+ case 0:
3969
+ _context.n = 1;
3970
+ return fetchEDRJson("".concat(serviceUrl.replace(/\/+$/, ''), "/collections"));
3971
+ case 1:
3972
+ _yield$fetchEDRJson = _context.v;
3973
+ collections = _yield$fetchEDRJson.collections;
3974
+ return _context.a(2, edrCollectionsToServiceLayers(collections !== null && collections !== void 0 ? collections : []));
3975
+ }
3976
+ }, _callee);
3977
+ }));
3978
+ return function fetchEDRServiceLayers(_x) {
3979
+ return _ref4.apply(this, arguments);
3980
+ };
3981
+ }();
3982
+
3983
+ var defaultTimeStepInMinutes = 10;
3984
+ var minuteInMs = 60 * 1000;
3985
+ var toISOTime = function toISOTime(timeInMs) {
3986
+ return new Date(timeInMs).toISOString().replace(/\.\d{3}Z$/, 'Z');
3987
+ };
3988
+ /**
3989
+ * Makes the ISO 8601 time dimension values (start/end/step) for an EDR collection.
3990
+ * The time step is read from the temporal values, e.g. R780526/2012-01-01T00:00:00Z/PT10M
3991
+ * or 2012-01-01T00:00:00Z/2026-01-01T00:00:00Z/PT10M. When there is no time step,
3992
+ * 10 minute steps aligned to whole 10 minutes are used, as is common for observations.
3993
+ */
3994
+ var getEDRTimeDimensionValues = function getEDRTimeDimensionValues(temporal) {
3995
+ var _temporal$interval$, _temporal$interval, _temporal$values, _timeStepMatch$;
3996
+ var _ref = (_temporal$interval$ = temporal === null || temporal === void 0 || (_temporal$interval = temporal.interval) === null || _temporal$interval === void 0 ? void 0 : _temporal$interval[0]) !== null && _temporal$interval$ !== void 0 ? _temporal$interval$ : [],
3997
+ _ref2 = _slicedToArray(_ref, 2),
3998
+ start = _ref2[0],
3999
+ end = _ref2[1];
4000
+ var startInMs = new Date(start !== null && start !== void 0 ? start : '').getTime();
4001
+ var endInMs = Math.floor(new Date(end !== null && end !== void 0 ? end : '').getTime() / minuteInMs) * minuteInMs;
4002
+ if (Number.isNaN(startInMs) || Number.isNaN(endInMs)) {
4003
+ return undefined;
4004
+ }
4005
+ var timeStepMatch = temporal === null || temporal === void 0 || (_temporal$values = temporal.values) === null || _temporal$values === void 0 || (_temporal$values = _temporal$values[0]) === null || _temporal$values === void 0 ? void 0 : _temporal$values.match(/^(?:R\d*\/)?([^/]+)\/(?:[^/]+\/)?(P[^/]+)$/);
4006
+ var stepStartInMs = new Date((_timeStepMatch$ = timeStepMatch === null || timeStepMatch === void 0 ? void 0 : timeStepMatch[1]) !== null && _timeStepMatch$ !== void 0 ? _timeStepMatch$ : '').getTime();
4007
+ if (timeStepMatch && !Number.isNaN(stepStartInMs)) {
4008
+ return "".concat(toISOTime(stepStartInMs), "/").concat(toISOTime(Math.max(stepStartInMs, endInMs)), "/").concat(timeStepMatch[2]);
4009
+ }
4010
+ var timeStepInMs = defaultTimeStepInMinutes * minuteInMs;
4011
+ var alignedStartInMs = Math.min(Math.ceil(startInMs / timeStepInMs) * timeStepInMs, endInMs);
4012
+ return "".concat(toISOTime(alignedStartInMs), "/").concat(toISOTime(endInMs), "/PT").concat(defaultTimeStepInMinutes, "M");
4013
+ };
3861
4014
  /**
3862
4015
  * Returns WMLayer instance in EDR mode. The layer will contains parsed dimensions and styles and keeps a state for these properties.
3863
4016
  *
@@ -3904,17 +4057,21 @@ var useEDRWMLayer = function useEDRWMLayer(edrBaseUrl, parameter, layerId, onIni
3904
4057
  setTimeRangeDuration = _React$useState4[1];
3905
4058
  React.useEffect(function () {
3906
4059
  if (wmLayer && collectionInfo.data && collectionInfo.isFetched) {
3907
- var _collectionInfo$data, _collectionInfo$data2, _collectionInfo$data3, _collectionInfo$data4;
3908
- // TODO: Extract timerange from the EDR service: https://gitlab.com/opengeoweb/geoweb-assets/-/issues/4139
3909
- // Round start and end to not include seconds
3910
- var intervalStart = (_collectionInfo$data = collectionInfo.data) !== null && _collectionInfo$data !== void 0 && (_collectionInfo$data = _collectionInfo$data.extent) !== null && _collectionInfo$data !== void 0 && (_collectionInfo$data = _collectionInfo$data.temporal) !== null && _collectionInfo$data !== void 0 && _collectionInfo$data.interval[0][0] ? "".concat((_collectionInfo$data2 = collectionInfo.data) === null || _collectionInfo$data2 === void 0 || (_collectionInfo$data2 = _collectionInfo$data2.extent) === null || _collectionInfo$data2 === void 0 || (_collectionInfo$data2 = _collectionInfo$data2.temporal) === null || _collectionInfo$data2 === void 0 ? void 0 : _collectionInfo$data2.interval[0][0].slice(0, 17), "00Z") : undefined;
3911
- var intervalEnd = (_collectionInfo$data3 = collectionInfo.data) !== null && _collectionInfo$data3 !== void 0 && (_collectionInfo$data3 = _collectionInfo$data3.extent) !== null && _collectionInfo$data3 !== void 0 && (_collectionInfo$data3 = _collectionInfo$data3.temporal) !== null && _collectionInfo$data3 !== void 0 && _collectionInfo$data3.interval[0][1] ? "".concat((_collectionInfo$data4 = collectionInfo.data) === null || _collectionInfo$data4 === void 0 || (_collectionInfo$data4 = _collectionInfo$data4.extent) === null || _collectionInfo$data4 === void 0 || (_collectionInfo$data4 = _collectionInfo$data4.temporal) === null || _collectionInfo$data4 === void 0 ? void 0 : _collectionInfo$data4.interval[0][1].slice(0, 17), "00Z") : undefined;
3912
- var timeRangeDurationFromEdrCollection = edrBaseUrl.includes('10-minute') ? "".concat(intervalStart, "/").concat(intervalEnd, "/PT10M") : "".concat(intervalStart, "/").concat(intervalEnd, "/PT1M");
4060
+ var _collectionInfo$data$;
4061
+ var timeRangeDurationFromEdrCollection = getEDRTimeDimensionValues((_collectionInfo$data$ = collectionInfo.data.extent) === null || _collectionInfo$data$ === void 0 ? void 0 : _collectionInfo$data$.temporal);
4062
+ if (!timeRangeDurationFromEdrCollection) {
4063
+ wmLayer.dimensions = wmLayer.dimensions.filter(function (dimension) {
4064
+ return dimension.name !== 'time';
4065
+ });
4066
+ setTimeRangeDuration(null);
4067
+ wmLayer.isConfigured = true;
4068
+ return;
4069
+ }
3913
4070
  if (!wmLayer.getDimension('time')) {
3914
- var _collectionInfo$data5;
4071
+ var _collectionInfo$data;
3915
4072
  var dim = new WMJSDimension({
3916
4073
  name: 'time',
3917
- currentValue: (_collectionInfo$data5 = collectionInfo.data) === null || _collectionInfo$data5 === void 0 || (_collectionInfo$data5 = _collectionInfo$data5.extent) === null || _collectionInfo$data5 === void 0 || (_collectionInfo$data5 = _collectionInfo$data5.temporal) === null || _collectionInfo$data5 === void 0 ? void 0 : _collectionInfo$data5.interval[0][1],
4074
+ currentValue: (_collectionInfo$data = collectionInfo.data) === null || _collectionInfo$data === void 0 || (_collectionInfo$data = _collectionInfo$data.extent) === null || _collectionInfo$data === void 0 || (_collectionInfo$data = _collectionInfo$data.temporal) === null || _collectionInfo$data === void 0 ? void 0 : _collectionInfo$data.interval[0][1],
3918
4075
  units: 'ISO8601',
3919
4076
  values: timeRangeDurationFromEdrCollection
3920
4077
  });
@@ -3927,10 +4084,10 @@ var useEDRWMLayer = function useEDRWMLayer(edrBaseUrl, parameter, layerId, onIni
3927
4084
  setTimeRangeDuration(timeRangeDurationFromEdrCollection);
3928
4085
  wmLayer.isConfigured = true;
3929
4086
  }
3930
- }, [collectionInfo.data, collectionInfo.isFetched, wmLayer, edrBaseUrl]);
4087
+ }, [collectionInfo.data, collectionInfo.isFetched, wmLayer]);
3931
4088
  React.useEffect(function () {
3932
4089
  var initializeLayer = /*#__PURE__*/function () {
3933
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
4090
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
3934
4091
  var _wmLayer$dimensions, wmTimeDim, timeValueToInitialize, layerProps;
3935
4092
  return _regenerator().w(function (_context) {
3936
4093
  while (1) switch (_context.n) {
@@ -3966,10 +4123,10 @@ var useEDRWMLayer = function useEDRWMLayer(edrBaseUrl, parameter, layerId, onIni
3966
4123
  }, _callee);
3967
4124
  }));
3968
4125
  return function initializeLayer() {
3969
- return _ref.apply(this, arguments);
4126
+ return _ref3.apply(this, arguments);
3970
4127
  };
3971
4128
  }();
3972
- timeRangeDuration && initializeLayer()["catch"](function (e) {
4129
+ timeRangeDuration !== undefined && initializeLayer()["catch"](function (e) {
3973
4130
  return window.console.error(e);
3974
4131
  });
3975
4132
  return function () {};
@@ -5040,7 +5197,7 @@ var getDimensionsList = function getDimensionsList(dimensions) {
5040
5197
  };
5041
5198
 
5042
5199
  var LayerInfoDialog = function LayerInfoDialog(_ref) {
5043
- var _layer$styles, _layer$styles2, _layer$styles3, _edrParameterMetadata, _edrParameterMetadata2, _edrParameterMetadata3, _layer$path, _layer$keywords;
5200
+ var _layer$styles, _layer$styles2, _layer$styles3, _edrParameterMetadata, _layer$path, _layer$keywords;
5044
5201
  var onClose = _ref.onClose,
5045
5202
  layer = _ref.layer,
5046
5203
  serviceName = _ref.serviceName,
@@ -5100,14 +5257,14 @@ var LayerInfoDialog = function LayerInfoDialog(_ref) {
5100
5257
  value: layer.name
5101
5258
  }), !!edrParameterMetadata && jsxs(Fragment, {
5102
5259
  children: [jsx(LayerInfoText, {
5103
- label: "EDR parameter",
5260
+ label: t('webmap-react-edr-parameter'),
5104
5261
  value: edrParameterMetadata.id || layer.name
5105
5262
  }), jsx(LayerInfoText, {
5106
- label: "Observed property",
5107
- value: ((_edrParameterMetadata = edrParameterMetadata.observedProperty) === null || _edrParameterMetadata === void 0 ? void 0 : _edrParameterMetadata.label) || '-'
5263
+ label: t('webmap-react-edr-observed-property'),
5264
+ value: normalizeEDRLabel((_edrParameterMetadata = edrParameterMetadata.observedProperty) === null || _edrParameterMetadata === void 0 ? void 0 : _edrParameterMetadata.label, '-')
5108
5265
  }), jsx(LayerInfoText, {
5109
- label: "Unit",
5110
- value: ((_edrParameterMetadata2 = edrParameterMetadata.unit) === null || _edrParameterMetadata2 === void 0 || (_edrParameterMetadata2 = _edrParameterMetadata2.symbol) === null || _edrParameterMetadata2 === void 0 ? void 0 : _edrParameterMetadata2.value) || ((_edrParameterMetadata3 = edrParameterMetadata.unit) === null || _edrParameterMetadata3 === void 0 ? void 0 : _edrParameterMetadata3.label) || '-'
5266
+ label: t('webmap-react-edr-unit'),
5267
+ value: getEDRUnitLabel(edrParameterMetadata) || '-'
5111
5268
  })]
5112
5269
  }), jsx(LayerInfoText, {
5113
5270
  label: t('webmap-react-service'),
@@ -15579,4 +15736,4 @@ var getLayerUpdateInfo = function getLayerUpdateInfo(wmLayer, mapId) {
15579
15736
  return updateObject;
15580
15737
  };
15581
15738
 
15582
- export { BaseLayerType, CLASSNAME_MAP_MEASURE_TOOLTIP, CONSTRAINED_SELECTION_TYPES, COORDINATE_DECIMALS, ClickOnMapTool, Clock, DEFAULT_GEOJSON_STYLE_FILL_OPACITY, DRAWMODE, DefaultBaseLayers, DimensionSelectButton, DimensionSelectDialog, DimensionSelectSlider, EditModeButton as EditModeButtonField, FEATURE_DRAW_FILL_COLOR, FEATURE_DRAW_FILL_COLOR_TRANSPARENT, FEATURE_DRAW_SECONDARY_FILL_COLOR, FEATURE_DRAW_SECONDARY_STROKE_COLOR, FEATURE_DRAW_STROKE_COLOR, FEATURE_FILL, FEATURE_FILL_SELECTED, FEATURE_STROKE, FEATURE_STROKE_EDIT, FEATURE_STROKE_SELECTED, FEATURE_VERTICES_EDIT_HANDLES, FEATURE_VERTICE_HANDLE_IMAGE, FEATURE_VERTICE_IMAGE, FeatureLayer, FeatureLayers, GeoJSONTextField, IntersectionSelect, LayerInfoButton, LayerInfoDialog, LayerInfoLegend, LayerInfoList, LayerInfoText, Legend, LegendButton, LegendDialog, LegendLayout, MIN_HEIGHT, MIN_WIDTH, MapContext, MapControlButton, MapControls, MapDimensionSelect, MapFeatureClass, MapMeasure, MapTime, MapWarningProperties, NEW_FEATURE_CREATED, NEW_LINESTRING_CREATED, NEW_POINT_CREATED, OpenLayersFeatureLayer, OpenLayersGetFeatureInfo, OpenLayersLayer, OpenLayersMapDraw, OpenLayersMapView, OpenLayersZoomControl, POINTER_CLICK_TOLERANCE_PX, SELECTED_FEATURE_COLOR, SELECTED_POINT_HALO_STYLE, STAC_ASSET_STYLE_PREFIX, STAC_ITEM_PAGE_LIMIT, STAC_ITEM_SEARCH_FIELDS_CONFORMANCE, STAC_TEMPORAL_STEP_SAMPLE_LIMIT, SelectField, StacLegendCanvas, StoryLayoutGrid, TRANSIENT_FEATURE_PROPERTIES, TimeAwareEDRLocationLayer, TimeAwareGeoTIFFLayer, TimeAwareWMTSLayer, TimeContext, TimeawareImageSource, TimeawareImageSourceWMSLayer, WEBMAP_REACT_NAMESPACE, WMSLayer, WMTSLayer, XYZLayer, ZoomControls, addFeatureProperties, addGeoJSONProperties, addSelectionTypeToGeoJSON, applyStacNodataMask, asNewFeature, basicExampleDrawOptions, basicExampleMultipleShapeDrawOptions, basicExampleMultipleShapeWithValuesDrawOptions, basicExampleSharedVertexDrawOptions, calculateBoxSelection, calculateNewSelection, catmullRomSpline, clearImageCacheForAllMaps, colorMaps, connectSharedVertices, createBoxBasedOnModifiedVertex, createIconStyle, createInterSections, createModifyFeatures, createMoveFeatures, createOval, currentlySupportedDrawModes, defaultBox, defaultCircle, defaultDelete, defaultEdrStyles, defaultFreehandLine, defaultGeoJSONStyleProperties, defaultIntersectionStyleProperties, defaultLayers, defaultLineString, defaultLocation, defaultModes, defaultOval, defaultPoint, defaultPolygon, defaultRotatableBox, defaultSmoothLine, defaultSplit, defaultSquare, defaultTimeFormat, dimensionConfig, drawPolyStoryStyles, drawStyles, emptyGeoJSON, endToolExampleConfig, exampleIntersectionOptions, exampleIntersectionWithShapeOptions, exampleIntersections, exampleIntersectionsMultiDrawTool, featureMultiPoint, featurePoint, featurePolygon, fetchEDRArea, fetchEDRCollectionDetails, fetchEDRCube, fetchEDRJson, fetchEDRParameter, fetchStacCatalogCollections, fetchStacCatalogRoot, fetchStacCollection, fetchStacItem, fetchStacItems, fetchStacItemsPage, fetchStacItemsWithPagination, fillOptions, firSelectionType, formatTime, generateImageFromLegend, genericOpenLayersFeatureStyle, geowebColorToOpenLayersColor, getAffectedIndices, getBoxRotateHandlePoints, getBoxSelectPreviewStyle, getDimensionIcon, getDimensionLabel, getDimensionValue, getDimensionsList, getDoubleControlToolIcon, getDrawModeIdFromSelectionType, getFeatureCollection, getFeatureExtent, getFeaturePointStyle, getFirTitle, getGeoJSONPropertyValue, getGeoJson, getIcon, getIntersectionToolIcon, getIsInsideAcceptanceTime, getLastEmptyFeatureIndex, getLayerBbox, getLayerExtentForProjection, getLayerStyles, getLayerUpdateInfo, getLegendClass, getOlFeatureKey, getProj4, getRendersAsStyles, getStacAssetKeyFromStyle, getStacAssetStyles, getStacCollectionStyles, getStacFrameItemsToRender, getStacGrayscaleRange, getStacGrayscaleSampleRange, getStacItemLookupWindowForTimes, getStacItemSearchUrl, getStacItemsUrl, getStacLegendMetadata, getStacLegendWidth, getStacRasterBands, getTimeDimension, getToolIcon, getWMSStyleName, handleResponse, hasEditableVertices, initializeOpenLayersProjections, inlineFeatureStyle, intersectPointGeoJSONS, intersectPolygonGeoJSONS, intersectionFeatureBE, intersectionFeatureNL, isBrowserReadableGeoTIFFAsset, isClickFromDrag, isDefaultModifiable, isDefaultMovable, isGeoJSONFeatureCreatedByTool, isGeoJSONGeometryEmpty, isGeoTIFFAsset, isPointFeatureCollection, joinUrlParams, keepIdentityOnFirstSplitFeature, labelOptions, lineString, lineStringCollection, makeFeatureStyleDisc, makeFeatureStyleLoading, makeFeatureStyleMultiParam, makeFeatureStyleMultiParamLoading, makeFeatureStyleWind, makeLegendFromColorMap, makeLegendFromStyleName, makeStacLegendModel, makeTimeList, makeView, marksByDimension, measureResultStyle, measureToolStyle, modifyHandleStyle$1 as modifyHandleStyle, modifyStyles, moveFeature, multiLineStringLabelStyle, multiPolygonLabelStyle, normalizeEDRLabel, opacityOptions, openLayersGetMapImageStore, polygonCleanDangling, polygonCleanDanglingCoords, polygonFeatureCollectionCleanDangling, precipitationMMLegendColorsWoW, projectorCache, publicLayers, publicServices, removeFeatureProperties, removeOverlappingLines, removeTransientFeatureProperties, renderStacLegend, resolvePreferredStyleName$1 as resolvePreferredStyleName, resolveStacAssetKey, rewindGeometry, roundCoordinates, roundFeatureCoordinates, selectPreferredWMSProjection, selectPreferredWMTSTileMatrixSet, setMapCenter, setViewFromExtent, setViewFromFeature, shouldEnterEditMode, shouldExitEditModeForMultiSelect, simpleBoxGeoJSON, simpleBoxGeoJSONWrongOrder, simpleFlightRouteLineStringGeoJSON, simpleFlightRoutePointsGeoJSON, simpleGeometryCollectionGeoJSON, simpleLineStringGeoJSON, simpleMultiPolygon, simplePointsGeojson, simplePolygonGeoJSON, simpleSmallLineStringGeoJSON, splitLine, splitPolygon, splitStyle, stacCatalogCollectionToLayerProps, stacColormapToOlStyle, stacGrayscaleOlStyle, stacNormalizedGrayscaleOlStyle, startToolExampleConfig, strokeWidthOptions, styleNameToStyleLike, temperatureLegendColorsCWK, temperatureLegendColorsWoW, textLabelStyle, textStyle, textStyleWithMargin, toMovedFeatures, updateEditModeButtonsWithFir, useAnimationForLayer, useEDRGetCollectionDetails, useEDRGetParameterData, useEDRWMLayer, useGeoJSON, useGetWMLayerInstance, useGetWMSLayerStyleList, useIconStyle, useMapDrawTool, useModifyFeatures, useMoveFeatures, useProjection, useQueryGetWMSGetCapabilities, useQueryGetWMSLayer, useQueryGetWMSLayers, useQueryGetWMSLayersTree, useQueryGetWMSServiceInfo, useQueryWMTSGetCapabilities, useSetIntervalWhenVisible, useStacCatalogRoot, useStacCollection, useStacItems, useStacOverviewItems, useStacTemporalStepItems, useViewFromLayer, viewUtils, webmapEDRQueryOptions, webmapReactTranslations };
15739
+ export { BaseLayerType, CLASSNAME_MAP_MEASURE_TOOLTIP, CONSTRAINED_SELECTION_TYPES, COORDINATE_DECIMALS, ClickOnMapTool, Clock, DEFAULT_GEOJSON_STYLE_FILL_OPACITY, DRAWMODE, DefaultBaseLayers, DimensionSelectButton, DimensionSelectDialog, DimensionSelectSlider, EDR_PLAIN_NUMBERS_STYLE, EditModeButton as EditModeButtonField, FEATURE_DRAW_FILL_COLOR, FEATURE_DRAW_FILL_COLOR_TRANSPARENT, FEATURE_DRAW_SECONDARY_FILL_COLOR, FEATURE_DRAW_SECONDARY_STROKE_COLOR, FEATURE_DRAW_STROKE_COLOR, FEATURE_FILL, FEATURE_FILL_SELECTED, FEATURE_STROKE, FEATURE_STROKE_EDIT, FEATURE_STROKE_SELECTED, FEATURE_VERTICES_EDIT_HANDLES, FEATURE_VERTICE_HANDLE_IMAGE, FEATURE_VERTICE_IMAGE, FeatureLayer, FeatureLayers, GeoJSONTextField, IntersectionSelect, LayerInfoButton, LayerInfoDialog, LayerInfoLegend, LayerInfoList, LayerInfoText, Legend, LegendButton, LegendDialog, LegendLayout, MIN_HEIGHT, MIN_WIDTH, MapContext, MapControlButton, MapControls, MapDimensionSelect, MapFeatureClass, MapMeasure, MapTime, MapWarningProperties, NEW_FEATURE_CREATED, NEW_LINESTRING_CREATED, NEW_POINT_CREATED, OpenLayersFeatureLayer, OpenLayersGetFeatureInfo, OpenLayersLayer, OpenLayersMapDraw, OpenLayersMapView, OpenLayersZoomControl, POINTER_CLICK_TOLERANCE_PX, SELECTED_FEATURE_COLOR, SELECTED_POINT_HALO_STYLE, STAC_ASSET_STYLE_PREFIX, STAC_ITEM_PAGE_LIMIT, STAC_ITEM_SEARCH_FIELDS_CONFORMANCE, STAC_TEMPORAL_STEP_SAMPLE_LIMIT, SelectField, StacLegendCanvas, StoryLayoutGrid, TRANSIENT_FEATURE_PROPERTIES, TimeAwareEDRLocationLayer, TimeAwareGeoTIFFLayer, TimeAwareWMTSLayer, TimeContext, TimeawareImageSource, TimeawareImageSourceWMSLayer, WEBMAP_REACT_NAMESPACE, WMSLayer, WMTSLayer, XYZLayer, ZoomControls, addFeatureProperties, addGeoJSONProperties, addSelectionTypeToGeoJSON, applyStacNodataMask, asNewFeature, basicExampleDrawOptions, basicExampleMultipleShapeDrawOptions, basicExampleMultipleShapeWithValuesDrawOptions, basicExampleSharedVertexDrawOptions, calculateBoxSelection, calculateNewSelection, catmullRomSpline, clearImageCacheForAllMaps, colorMaps, connectSharedVertices, createBoxBasedOnModifiedVertex, createIconStyle, createInterSections, createModifyFeatures, createMoveFeatures, createOval, currentlySupportedDrawModes, defaultBox, defaultCircle, defaultDelete, defaultEdrStyles, defaultFreehandLine, defaultGeoJSONStyleProperties, defaultIntersectionStyleProperties, defaultLayers, defaultLineString, defaultLocation, defaultModes, defaultOval, defaultPoint, defaultPolygon, defaultRotatableBox, defaultSmoothLine, defaultSplit, defaultSquare, defaultTimeFormat, dimensionConfig, drawPolyStoryStyles, drawStyles, edrCollectionsToServiceLayers, emptyGeoJSON, endToolExampleConfig, exampleIntersectionOptions, exampleIntersectionWithShapeOptions, exampleIntersections, exampleIntersectionsMultiDrawTool, featureMultiPoint, featurePoint, featurePolygon, fetchEDRArea, fetchEDRCollectionDetails, fetchEDRCube, fetchEDRJson, fetchEDRParameter, fetchEDRServiceLayers, fetchStacCatalogCollections, fetchStacCatalogRoot, fetchStacCollection, fetchStacItem, fetchStacItems, fetchStacItemsPage, fetchStacItemsWithPagination, fillOptions, firSelectionType, formatEDRValue, formatTime, generateImageFromLegend, genericOpenLayersFeatureStyle, geowebColorToOpenLayersColor, getAffectedIndices, getBoxRotateHandlePoints, getBoxSelectPreviewStyle, getDimensionIcon, getDimensionLabel, getDimensionValue, getDimensionsList, getDoubleControlToolIcon, getDrawModeIdFromSelectionType, getEDRUnitLabel, getFeatureCollection, getFeatureExtent, getFeaturePointStyle, getFirTitle, getGeoJSONPropertyValue, getGeoJson, getIcon, getIntersectionToolIcon, getIsInsideAcceptanceTime, getLastEmptyFeatureIndex, getLayerBbox, getLayerExtentForProjection, getLayerStyles, getLayerUpdateInfo, getLegendClass, getOlFeatureKey, getProj4, getRendersAsStyles, getStacAssetKeyFromStyle, getStacAssetStyles, getStacCollectionStyles, getStacFrameItemsToRender, getStacGrayscaleRange, getStacGrayscaleSampleRange, getStacItemLookupWindowForTimes, getStacItemSearchUrl, getStacItemsUrl, getStacLegendMetadata, getStacLegendWidth, getStacRasterBands, getTimeDimension, getToolIcon, getWMSStyleName, handleResponse, hasEditableVertices, initializeOpenLayersProjections, inlineFeatureStyle, intersectPointGeoJSONS, intersectPolygonGeoJSONS, intersectionFeatureBE, intersectionFeatureNL, isBrowserReadableGeoTIFFAsset, isClickFromDrag, isDefaultModifiable, isDefaultMovable, isGeoJSONFeatureCreatedByTool, isGeoJSONGeometryEmpty, isGeoTIFFAsset, isPointFeatureCollection, joinUrlParams, keepIdentityOnFirstSplitFeature, labelOptions, lineString, lineStringCollection, makeFeatureStyleDisc, makeFeatureStyleLoading, makeFeatureStyleMultiParam, makeFeatureStyleMultiParamLoading, makeFeatureStylePlainNumber, makeFeatureStyleWind, makeLegendFromColorMap, makeLegendFromStyleName, makeStacLegendModel, makeTimeList, makeView, marksByDimension, measureResultStyle, measureToolStyle, modifyHandleStyle$1 as modifyHandleStyle, modifyStyles, moveFeature, multiLineStringLabelStyle, multiPolygonLabelStyle, normalizeEDRLabel, opacityOptions, openLayersGetMapImageStore, polygonCleanDangling, polygonCleanDanglingCoords, polygonFeatureCollectionCleanDangling, precipitationMMLegendColorsWoW, projectorCache, publicLayers, publicServices, removeFeatureProperties, removeOverlappingLines, removeTransientFeatureProperties, renderStacLegend, resolvePreferredStyleName$1 as resolvePreferredStyleName, resolveStacAssetKey, rewindGeometry, roundCoordinates, roundFeatureCoordinates, selectPreferredWMSProjection, selectPreferredWMTSTileMatrixSet, setMapCenter, setViewFromExtent, setViewFromFeature, shouldEnterEditMode, shouldExitEditModeForMultiSelect, simpleBoxGeoJSON, simpleBoxGeoJSONWrongOrder, simpleFlightRouteLineStringGeoJSON, simpleFlightRoutePointsGeoJSON, simpleGeometryCollectionGeoJSON, simpleLineStringGeoJSON, simpleMultiPolygon, simplePointsGeojson, simplePolygonGeoJSON, simpleSmallLineStringGeoJSON, splitLine, splitPolygon, splitStyle, stacCatalogCollectionToLayerProps, stacColormapToOlStyle, stacGrayscaleOlStyle, stacNormalizedGrayscaleOlStyle, startToolExampleConfig, strokeWidthOptions, styleNameToStyleLike, temperatureLegendColorsCWK, temperatureLegendColorsWoW, textLabelStyle, textStyle, textStyleWithMargin, toMovedFeatures, updateEditModeButtonsWithFir, useAnimationForLayer, useEDRGetCollectionDetails, useEDRGetParameterData, useEDRWMLayer, useGeoJSON, useGetWMLayerInstance, useGetWMSLayerStyleList, useIconStyle, useMapDrawTool, useModifyFeatures, useMoveFeatures, useProjection, useQueryGetWMSGetCapabilities, useQueryGetWMSLayer, useQueryGetWMSLayers, useQueryGetWMSLayersTree, useQueryGetWMSServiceInfo, useQueryWMTSGetCapabilities, useSetIntervalWhenVisible, useStacCatalogRoot, useStacCollection, useStacItems, useStacOverviewItems, useStacTemporalStepItems, useViewFromLayer, viewUtils, webmapEDRQueryOptions, webmapReactTranslations };
@@ -1,6 +1,6 @@
1
1
  import type { Position, Source } from '@opengeoweb/shared';
2
2
  import { LayerType } from '@opengeoweb/webmap';
3
- import type { LayerFoundation, LayerProps } from '@opengeoweb/webmap';
3
+ import type { EDRParameterMetadata, LayerFoundation, LayerProps } from '@opengeoweb/webmap';
4
4
  export interface LayerInfoDialogProps {
5
5
  layer: LayerProps;
6
6
  serviceName: string;
@@ -18,19 +18,6 @@ export interface LayerInfoDialogProps {
18
18
  stacLayer?: Pick<LayerFoundation, 'service' | 'id' | 'style'>;
19
19
  showLayerLegend: boolean;
20
20
  onToggleLayerLegendVisibility?: (showLegend: boolean) => void;
21
- edrParameterMetadata?: {
22
- id?: string;
23
- label?: string;
24
- description?: string;
25
- observedProperty?: {
26
- label?: string;
27
- };
28
- unit?: {
29
- label?: string;
30
- symbol?: {
31
- value?: string;
32
- };
33
- };
34
- };
21
+ edrParameterMetadata?: EDRParameterMetadata;
35
22
  }
36
23
  export declare const LayerInfoDialog: React.FC<LayerInfoDialogProps>;
@@ -1,4 +1,5 @@
1
1
  import type { Coverage, CoverageCollection, EDRInstance, PointDomain, PointSeriesDomain } from '@opengeoweb/shared';
2
+ import type { EDRParameterMetadata } from '@opengeoweb/webmap';
2
3
  export declare const handleResponse: (response: Response) => Promise<unknown>;
3
4
  export declare const joinUrlParams: (params: string[]) => string;
4
5
  export declare const fetchEDRCollectionDetails: (edrBaseUrlWithCollection: string, instanceId?: string) => Promise<EDRInstance>;
@@ -7,3 +8,4 @@ export declare const fetchEDRArea: (edrBaseUrlWithCollection: string, parameterN
7
8
  export declare const fetchEDRParameter: (collection: EDRInstance | undefined, edrBaseUrlWithCollection: string, parameterName: string, datetime?: string, instanceId?: string) => Promise<CoverageCollection<PointDomain | PointSeriesDomain> | Coverage<PointDomain | PointSeriesDomain> | undefined>;
8
9
  export declare const fetchEDRJson: <T>(url: string) => Promise<T>;
9
10
  export declare const normalizeEDRLabel: (label: unknown, fallback: string) => string;
11
+ export declare const getEDRUnitLabel: (parameter: EDRParameterMetadata | undefined) => string;
@@ -1,6 +1,7 @@
1
1
  import type { FeatureLike } from 'ol/Feature';
2
2
  import { Circle, Style } from 'ol/style';
3
3
  import type { ColorMap } from './colormaps';
4
+ export declare const EDR_PLAIN_NUMBERS_STYLE = "plainNumbers";
4
5
  export interface EdrMapLegendEntry {
5
6
  min: number;
6
7
  max: number;
@@ -19,9 +20,11 @@ export declare const makeLegendFromColorMap: (props: {
19
20
  export declare const generateImageFromLegend: (edrColorLegend: EdrOlColorLegend, ctx: CanvasRenderingContext2D, opacity?: number) => number;
20
21
  export declare const getLegendClass: (edrColorLegend: EdrOlColorLegend, value: number, clip?: boolean) => EdrMapLegendEntry | undefined;
21
22
  export declare const makeFeatureStyleWind: (feature: FeatureLike) => Style[];
23
+ export declare const formatEDRValue: (value: unknown) => string;
22
24
  export declare const makeFeatureStyleMultiParam: (feature: FeatureLike) => Style[];
23
25
  export declare const makeFeatureStyleMultiParamLoading: () => Style;
24
26
  export declare const makeFeatureStyleDisc: (feature: FeatureLike, legend: EdrOlColorLegend) => Style;
27
+ export declare const makeFeatureStylePlainNumber: (feature: FeatureLike) => Style;
25
28
  export declare const makeFeatureStyleLoading: (feature: FeatureLike) => Style;
26
29
  export declare const styleNameToStyleLike: ((styleName: string, multiParam?: boolean) => ((feature: FeatureLike) => Style | Style[])) & import("lodash").MemoizedFunction;
27
30
  export declare const defaultEdrStyles: {
@@ -1,4 +1,5 @@
1
1
  export * from './hooks';
2
2
  export * from './api';
3
+ export * from './serviceLayers';
3
4
  export * from './colormaps';
4
5
  export { useEDRWMLayer } from './utils/useEDRWMLayer';
@@ -0,0 +1,20 @@
1
+ import type { EDRParameterMetadata, LayerProps } from '@opengeoweb/webmap';
2
+ export interface EDRCollectionMetadata {
3
+ id: string;
4
+ title?: string;
5
+ description?: string;
6
+ path?: string[];
7
+ groups?: string[];
8
+ group?: string;
9
+ parameter_names?: Record<string, EDRParameterMetadata> | EDRParameterMetadata[];
10
+ }
11
+ export interface EDRServiceLayer extends LayerProps {
12
+ edrCollectionId: string;
13
+ edrParameter: EDRParameterMetadata;
14
+ }
15
+ /**
16
+ * Converts EDR collections to service layers, one layer per collection parameter.
17
+ * Layers are grouped by collection in the Layer Select using their path.
18
+ */
19
+ export declare const edrCollectionsToServiceLayers: (collections: EDRCollectionMetadata[]) => EDRServiceLayer[];
20
+ export declare const fetchEDRServiceLayers: (serviceUrl: string) => Promise<EDRServiceLayer[]>;
@@ -1,5 +1,15 @@
1
1
  import { WMLayer } from '@opengeoweb/webmap';
2
2
  import type { OnInitializeLayerProps } from '../../components/OpenLayers/utils/types';
3
+ /**
4
+ * Makes the ISO 8601 time dimension values (start/end/step) for an EDR collection.
5
+ * The time step is read from the temporal values, e.g. R780526/2012-01-01T00:00:00Z/PT10M
6
+ * or 2012-01-01T00:00:00Z/2026-01-01T00:00:00Z/PT10M. When there is no time step,
7
+ * 10 minute steps aligned to whole 10 minutes are used, as is common for observations.
8
+ */
9
+ export declare const getEDRTimeDimensionValues: (temporal: {
10
+ interval?: string[][];
11
+ values?: string[];
12
+ } | undefined) => string | undefined;
3
13
  /**
4
14
  * Returns WMLayer instance in EDR mode. The layer will contains parsed dimensions and styles and keeps a state for these properties.
5
15
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap-react",
3
- "version": "21.1.0-nightly-20261109",
3
+ "version": "21.1.0-nightly-20261110",
4
4
  "description": "GeoWeb react wrapper for webmap",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -20,9 +20,9 @@
20
20
  }
21
21
  },
22
22
  "dependencies": {
23
- "@opengeoweb/webmap": "21.1.0-nightly-20261109",
24
- "@opengeoweb/theme": "21.1.0-nightly-20261109",
25
- "@opengeoweb/shared": "21.1.0-nightly-20261109",
23
+ "@opengeoweb/webmap": "21.1.0-nightly-20261110",
24
+ "@opengeoweb/theme": "21.1.0-nightly-20261110",
25
+ "@opengeoweb/shared": "21.1.0-nightly-20261110",
26
26
  "lodash": "^4.18.1",
27
27
  "ol": "^10.4.0",
28
28
  "proj4": "^2.9.2",