@opengeoweb/webmap 9.13.0 → 9.15.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.13.0",
3
+ "version": "9.15.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 };
@@ -117,6 +117,7 @@ export default class WMJSMap {
117
117
  private buildLayerDimsBusy;
118
118
  isProjectionSupported: (srs: string) => boolean;
119
119
  getMapImageStore: WMImageStore;
120
+ holdShiftToScroll: boolean;
120
121
  constructor(_element: HTMLElement);
121
122
  setWMTileRendererTileSettings(_WMTileRendererTileSettings: unknown): void;
122
123
  /**
@@ -287,6 +288,13 @@ export default class WMJSMap {
287
288
  x: number;
288
289
  y: number;
289
290
  };
291
+ getGeoCoordFromLatLong(coordinates: {
292
+ x: number;
293
+ y: number;
294
+ }): {
295
+ x: number;
296
+ y: number;
297
+ };
290
298
  calculateBoundingBoxAndZoom(lat: number, lng: number): void;
291
299
  getLatLongFromPixelCoord(coordinates: {
292
300
  x: number;
@@ -314,7 +322,11 @@ export default class WMJSMap {
314
322
  zoomToLayer(_layer: WMLayer): void;
315
323
  setDefaultBBOX(bbox: WMBBOX): void;
316
324
  setBBOX(left: number | WMBBOX, bottom?: number, right?: number, top?: number): boolean;
317
- zoomOut(): void;
325
+ /**
326
+ *
327
+ * @param ratio 1.0, meanse zoomout using full boundingbox width, 0.1 means zoom out 10% of full boundingbox width
328
+ */
329
+ zoomOut(ratio?: number): void;
318
330
  zoomIn(ratio: number): void;
319
331
  displayLegendInMap(_displayLegendInMap: boolean): void;
320
332
  showBoundingBox(_bbox?: WMBBOX, _mapbbox?: WMBBOX): void;
@@ -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';