@opengeoweb/webmap 9.32.0 → 9.33.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import { compact, range, debounce, throttle, isEqual } from 'lodash';
2
2
  import { PROJECTION, dateUtils, defaultDelay as defaultDelay$1 } from '@opengeoweb/shared';
3
3
  import proj4 from 'proj4';
4
- import i18n from 'i18next';
4
+ import 'i18next';
5
5
 
6
6
  var en = {
7
7
  "map-projection": "Map projection",
@@ -11168,6 +11168,7 @@ class WMCanvasBuffer {
11168
11168
  this._errorList = [];
11169
11169
  this._animationFrameRequest = ANIMATIONFRAMEREQUEST_DONE;
11170
11170
  this._isBufferLoading = false;
11171
+ this._timerHandle = undefined;
11171
11172
  }
11172
11173
  /**
11173
11174
  * Triggered by the WMImageStore when an image completes loading
@@ -11535,28 +11536,6 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
11535
11536
  };
11536
11537
 
11537
11538
  const WEBMAP_NAMESPACE = 'webmap';
11538
- // do not use `initReactI18next` as this is not a react library
11539
- void i18n.init({
11540
- lng: 'en',
11541
- ns: WEBMAP_NAMESPACE,
11542
- interpolation: {
11543
- escapeValue: false
11544
- },
11545
- resources: {
11546
- en: {
11547
- [WEBMAP_NAMESPACE]: webmapTranslations.en
11548
- },
11549
- fi: {
11550
- [WEBMAP_NAMESPACE]: webmapTranslations.fi
11551
- },
11552
- no: {
11553
- [WEBMAP_NAMESPACE]: webmapTranslations.no
11554
- },
11555
- nl: {
11556
- [WEBMAP_NAMESPACE]: webmapTranslations.nl
11557
- }
11558
- }
11559
- });
11560
11539
  const translateKeyOutsideComponents = (t, key, params = undefined) => t ? t(key, Object.assign({
11561
11540
  ns: WEBMAP_NAMESPACE
11562
11541
  }, params)) : key;
@@ -12066,6 +12045,7 @@ class WMJSAnimate {
12066
12045
  _WMJSAnimate_instances.add(this);
12067
12046
  this.isNextTimeCloseToWallClockTime = false;
12068
12047
  _map.animationDelay = 100;
12048
+ this.animateBusy = false;
12069
12049
  this._callBack = _map.getListener();
12070
12050
  this._divAnimationInfo = document.createElement('div');
12071
12051
  _map.currentAnimationStep = 0;
@@ -14162,6 +14142,7 @@ class WMJSMap {
14162
14142
  this.mapPanning = 0;
14163
14143
  this.mapPanStartGeoCoords = undefined;
14164
14144
  this._mapZooming = 0;
14145
+ this.holdShiftToScroll = false;
14165
14146
  if (proj4) {
14166
14147
  proj4.defs(WMProj4Defs);
14167
14148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap",
3
- "version": "9.32.0",
3
+ "version": "9.33.0",
4
4
  "description": "GeoWeb webmap library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,4 +1,5 @@
1
1
  import i18n, { TFunction } from 'i18next';
2
2
  export declare const WEBMAP_NAMESPACE = "webmap";
3
+ export declare const initWebmapTestI18n: () => void;
3
4
  export { i18n };
4
5
  export declare const translateKeyOutsideComponents: (t: TFunction | undefined, key: string, params?: Record<string, string | number> | undefined) => string;