@opengeoweb/webmap 4.3.0 → 4.4.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 +6 -1
- package/index.umd.js +6 -0
- package/lib/components/WMJSMap.d.ts +1 -0
- package/lib/components/index.d.ts +2 -2
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -4014,6 +4014,10 @@ var getErrorsToDisplay = function getErrorsToDisplay(canvasErrors, getLayerBySer
|
|
|
4014
4014
|
return list;
|
|
4015
4015
|
}, []);
|
|
4016
4016
|
};
|
|
4017
|
+
var clearImageCache = function clearImageCache() {
|
|
4018
|
+
getMapImageStore.clear();
|
|
4019
|
+
getLegendImageStore().clear();
|
|
4020
|
+
};
|
|
4017
4021
|
/**
|
|
4018
4022
|
/**
|
|
4019
4023
|
* WMJSMap class
|
|
@@ -7531,6 +7535,7 @@ var WMXMLParser = function WMXMLParser(url, headers) {
|
|
|
7531
7535
|
fetch(url, {
|
|
7532
7536
|
method: 'GET',
|
|
7533
7537
|
mode: 'cors',
|
|
7538
|
+
cache: 'no-cache',
|
|
7534
7539
|
headers: fetchHeaders
|
|
7535
7540
|
}).then(function (response) {
|
|
7536
7541
|
var contentType = response.headers.get('content-type');
|
|
@@ -9226,4 +9231,4 @@ var WMLayer = /*#__PURE__*/function () {
|
|
|
9226
9231
|
return WMLayer;
|
|
9227
9232
|
}();
|
|
9228
9233
|
|
|
9229
|
-
export { DateInterval, DebugType, I18n, LayerType, ParseISOTimeRangeDuration, URLDecode, URLEncode, WMBBOX, WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMEmptyLayerName, WMEmptyLayerTitle, WMGetServiceFromStore, WMImage, WMImageEventType, WMJSDimension, WMJSMap, WMJSService, WMJScheckURL, WMLayer, WMTimer, debug, getLegendGraphicURLForLayer, getMapImageStore, isDefined, legendImageStore, parseISO8601DateToDate, parseISO8601IntervalToDateInterval, toArray };
|
|
9234
|
+
export { DateInterval, DebugType, I18n, LayerType, ParseISOTimeRangeDuration, URLDecode, URLEncode, WMBBOX, WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMEmptyLayerName, WMEmptyLayerTitle, WMGetServiceFromStore, WMImage, WMImageEventType, WMJSDimension, WMJSMap, WMJSService, WMJScheckURL, WMLayer, WMTimer, clearImageCache, debug, getLegendGraphicURLForLayer, getMapImageStore, isDefined, legendImageStore, parseISO8601DateToDate, parseISO8601IntervalToDateInterval, toArray };
|
package/index.umd.js
CHANGED
|
@@ -4070,6 +4070,10 @@
|
|
|
4070
4070
|
return list;
|
|
4071
4071
|
}, []);
|
|
4072
4072
|
};
|
|
4073
|
+
var clearImageCache = function clearImageCache() {
|
|
4074
|
+
getMapImageStore.clear();
|
|
4075
|
+
getLegendImageStore().clear();
|
|
4076
|
+
};
|
|
4073
4077
|
/**
|
|
4074
4078
|
/**
|
|
4075
4079
|
* WMJSMap class
|
|
@@ -7471,6 +7475,7 @@
|
|
|
7471
7475
|
fetch(url, {
|
|
7472
7476
|
method: 'GET',
|
|
7473
7477
|
mode: 'cors',
|
|
7478
|
+
cache: 'no-cache',
|
|
7474
7479
|
headers: fetchHeaders
|
|
7475
7480
|
}).then(function (response) {
|
|
7476
7481
|
var contentType = response.headers.get('content-type');
|
|
@@ -9193,6 +9198,7 @@
|
|
|
9193
9198
|
exports.WMJScheckURL = WMJScheckURL;
|
|
9194
9199
|
exports.WMLayer = WMLayer;
|
|
9195
9200
|
exports.WMTimer = WMTimer;
|
|
9201
|
+
exports.clearImageCache = clearImageCache;
|
|
9196
9202
|
exports.debug = debug;
|
|
9197
9203
|
exports.getLegendGraphicURLForLayer = getLegendGraphicURLForLayer;
|
|
9198
9204
|
exports.getMapImageStore = getMapImageStore;
|
|
@@ -7,6 +7,7 @@ import { LinkedInfo } from './types';
|
|
|
7
7
|
export declare const detectLeftButton: (evt: MouseEvent) => boolean;
|
|
8
8
|
export declare const detectRightButton: (evt: MouseEvent) => boolean;
|
|
9
9
|
export declare const getErrorsToDisplay: (canvasErrors: LinkedInfo[], getLayerByServiceAndName: (layerservice: string, layername: string) => WMLayer) => string[];
|
|
10
|
+
export declare const clearImageCache: () => void;
|
|
10
11
|
/**
|
|
11
12
|
/**
|
|
12
13
|
* WMJSMap class
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import WMJSMap from './WMJSMap';
|
|
1
|
+
import WMJSMap, { clearImageCache } from './WMJSMap';
|
|
2
2
|
import { isDefined, WMJScheckURL, URLDecode, URLEncode, toArray, debug, DebugType } from './WMJSTools';
|
|
3
3
|
import WMLayer, { LayerOptions, LayerType } from './WMLayer';
|
|
4
4
|
import WMTimer from './WMTimer';
|
|
@@ -12,7 +12,7 @@ import { getLegendGraphicURLForLayer, legendImageStore } from './WMLegend';
|
|
|
12
12
|
import { getMapImageStore, WMImageEventType } from './WMImageStore';
|
|
13
13
|
import { WMJSService } from './WMJSService';
|
|
14
14
|
import WMJSDimension from './WMJSDimension';
|
|
15
|
-
export { WMJSMap, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration, isDefined, WMLayer, LayerType, WMTimer, WMGetServiceFromStore, WMJScheckURL, URLEncode, URLDecode, WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMEmptyLayerName, WMEmptyLayerTitle, parseISO8601DateToDate, I18n, WMBBOX, toArray, getLegendGraphicURLForLayer, legendImageStore, WMImage, debug, DebugType, WMImageEventType, WMJSService, getMapImageStore, WMJSDimension, };
|
|
15
|
+
export { WMJSMap, DateInterval, parseISO8601IntervalToDateInterval, ParseISOTimeRangeDuration, isDefined, WMLayer, LayerType, WMTimer, WMGetServiceFromStore, WMJScheckURL, URLEncode, URLDecode, WMDateOutSideRange, WMDateTooEarlyString, WMDateTooLateString, WMEmptyLayerName, WMEmptyLayerTitle, parseISO8601DateToDate, I18n, WMBBOX, toArray, getLegendGraphicURLForLayer, legendImageStore, WMImage, debug, DebugType, WMImageEventType, WMJSService, getMapImageStore, WMJSDimension, clearImageCache, };
|
|
16
16
|
export type { LayerOptions };
|
|
17
17
|
export * from './types';
|
|
18
18
|
export * from './WMTimeTypes';
|