@opengeoweb/webmap 20.2.0-nightly-20261027 → 20.2.0-nightly-20261029
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 +4 -4
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -2247,15 +2247,14 @@ function getNumberOfTimeSteps(starttime, stoptime, interval) {
|
|
|
2247
2247
|
// In case of unequally distributed time steps, where the number of days leties within a month:
|
|
2248
2248
|
var testtime = starttime.clone();
|
|
2249
2249
|
var timestopms = stoptime.getTime();
|
|
2250
|
-
while (testtime.getTime()
|
|
2250
|
+
while (testtime.getTime() <= timestopms) {
|
|
2251
2251
|
testtime.add(interval);
|
|
2252
2252
|
steps += 1;
|
|
2253
2253
|
}
|
|
2254
|
-
steps += 1;
|
|
2255
2254
|
return steps;
|
|
2256
2255
|
}
|
|
2257
2256
|
// In case of equally distributed time steps
|
|
2258
|
-
steps = Math.
|
|
2257
|
+
steps = Math.floor((stoptime.getTime() - starttime.getTime()) / interval.getTime()) + 1;
|
|
2259
2258
|
return steps;
|
|
2260
2259
|
}
|
|
2261
2260
|
// Utility function to fill missing elements in ISO time range duration array
|
|
@@ -2354,7 +2353,8 @@ var ParseISOTimeRangeDuration = /*#__PURE__*/function () {
|
|
|
2354
2353
|
}
|
|
2355
2354
|
return this.timeSteps - 1;
|
|
2356
2355
|
}
|
|
2357
|
-
|
|
2356
|
+
var lastTimeStepDate = this.getDateAtTimeStep(this.timeSteps - 1);
|
|
2357
|
+
if (wantedTime > lastTimeStepDate.getTime()) {
|
|
2358
2358
|
return this.timeSteps - 1;
|
|
2359
2359
|
}
|
|
2360
2360
|
var timeStep = 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/webmap",
|
|
3
|
-
"version": "20.2.0-nightly-
|
|
3
|
+
"version": "20.2.0-nightly-20261029",
|
|
4
4
|
"description": "GeoWeb webmap library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@opengeoweb/shared": "20.2.0-nightly-
|
|
24
|
-
"@opengeoweb/authentication": "20.2.0-nightly-
|
|
23
|
+
"@opengeoweb/shared": "20.2.0-nightly-20261029",
|
|
24
|
+
"@opengeoweb/authentication": "20.2.0-nightly-20261029",
|
|
25
25
|
"@tanstack/query-core": "^5.69.2",
|
|
26
26
|
"lodash": "^4.18.1",
|
|
27
27
|
"i18next": "^25.0.1",
|