@opengeoweb/webmap 9.12.0 → 9.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap",
3
- "version": "9.12.0",
3
+ "version": "9.14.0",
4
4
  "description": "GeoWeb webmap library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -10,7 +10,6 @@
10
10
  "dependencies": {
11
11
  "@opengeoweb/shared": "*",
12
12
  "throttle-debounce": "^5.0.0",
13
- "moment": "^2.29.4",
14
13
  "proj4": "^2.9.2",
15
14
  "lodash": "^4.17.21"
16
15
  },
@@ -23,6 +23,8 @@ export default class WMImage {
23
23
  headers: Headers[];
24
24
  _imageTimeStampAtError: number;
25
25
  _numFailedAttempts: number;
26
+ _loadStartTime: number;
27
+ _loadDuration?: number;
26
28
  /**
27
29
  *
28
30
  * @param src Optionally set the source URL to load
@@ -76,6 +78,7 @@ export default class WMImage {
76
78
  private _getImageWithHeaders;
77
79
  private _load;
78
80
  private _loadEvent;
81
+ getLoadDuration(): number | undefined;
79
82
  /**
80
83
  * Get the width of the current image
81
84
  */
@@ -2,11 +2,11 @@ import { Dimension, TimeInterval } from './types';
2
2
  import { ParseISOTimeRangeDuration } from './WMTime';
3
3
  import { CustomDate } from './WMTimeTypes';
4
4
  /**
5
- * Re-formats moment's isoString to the string that is expected by WMJSDimension (for time).
5
+ * Re-formats isoString to the string that is expected by WMJSDimension (for time).
6
6
  * @param dateIn The input date to re-format, usually in the format `YYYY-MM-DDThh:mm:ss.uuuZ`
7
7
  * @returns The formated input date in the format `YYYY-MM-DDThh:mm:ssZ`
8
8
  */
9
- export declare const handleMomentISOString: (dateIn: string) => string;
9
+ export declare const handleDateUtilsISOString: (dateIn: string) => string;
10
10
  interface WMJSDimensionConfig {
11
11
  name?: string;
12
12
  units?: string;
@@ -1,3 +1,2 @@
1
- import * as moment from 'moment';
2
1
  import proj4 from 'proj4';
3
- export { moment, proj4 };
2
+ export { proj4 };
@@ -116,6 +116,7 @@ export default class WMLayer {
116
116
  isConfigured: boolean;
117
117
  geographicBoundingBox?: GeographicBoundingBox;
118
118
  geojson?: GeoJSON.FeatureCollection;
119
+ currentRequestedGetMapURL?: string;
119
120
  init(): void;
120
121
  constructor(options?: LayerOptions);
121
122
  getLayerName(): string;
@@ -186,4 +187,6 @@ export default class WMLayer {
186
187
  getProjection(srsName: string): WMProjection;
187
188
  setSLDURL(url: string): void;
188
189
  display(displayornot: boolean): void;
190
+ setCurrentRequestedGetMapURL(url: string): void;
191
+ getCurrentRequestedGetMapURL(): string | undefined;
189
192
  }
@@ -9,7 +9,7 @@ import { WMImageEventType } from './WMImageStore';
9
9
  import { WMJSService, wmServiceListener } from './WMJSService';
10
10
  import { getAlternativeImage } from './WMCanvasBuffer';
11
11
  import WMListener from './WMListener';
12
- export { default as WMJSDimension, handleMomentISOString, } from './WMJSDimension';
12
+ export { default as WMJSDimension, handleDateUtilsISOString, } from './WMJSDimension';
13
13
  export { default as WMLayer, LayerType } from './WMLayer';
14
14
  export type { LayerOptions, LayerFoundation } from './WMLayer';
15
15
  export { default as WMBBOX } from './WMBBOX';