@opengeoweb/webmap 2.1.0 → 2.1.1
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/lib/components/WMLayer.d.ts +1 -0
- package/package.json +1 -1
- package/webmap.esm.js +13 -2
- package/webmap.umd.js +13 -2
|
@@ -34,6 +34,7 @@ export interface LayerOptions {
|
|
|
34
34
|
headers?: Headers[];
|
|
35
35
|
failure?: (layer: WMLayer, message: string) => void;
|
|
36
36
|
ReactWMJSLayerId?: string;
|
|
37
|
+
onLayerError?: (layer: WMLayer, error: Error, webmapInstance: WMJSMap) => void;
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
39
40
|
* This interface is for reading from the WMS GetCapabilties document, which can have different structures for V1.1.1 and V1.3.0
|
package/package.json
CHANGED
package/webmap.esm.js
CHANGED
|
@@ -4920,6 +4920,11 @@ var WMJSMap = /*#__PURE__*/function () {
|
|
|
4920
4920
|
}
|
|
4921
4921
|
|
|
4922
4922
|
if (!_srs) _srs = 'EPSG:4326';
|
|
4923
|
+
|
|
4924
|
+
if (this.srs !== _srs) {
|
|
4925
|
+
this.defaultBBOX.setBBOX(_bbox);
|
|
4926
|
+
}
|
|
4927
|
+
|
|
4923
4928
|
this.srs = _srs;
|
|
4924
4929
|
|
|
4925
4930
|
if (this.proj4.srs !== this.srs || !isDefined(this.proj4.projection)) {
|
|
@@ -4933,7 +4938,6 @@ var WMJSMap = /*#__PURE__*/function () {
|
|
|
4933
4938
|
}
|
|
4934
4939
|
|
|
4935
4940
|
this.setBBOX(_bbox);
|
|
4936
|
-
this.defaultBBOX.setBBOX(_bbox);
|
|
4937
4941
|
this.updateMouseCursorCoordinates(undefined);
|
|
4938
4942
|
this.callBack.triggerEvent('onsetprojection', [this.srs, this.bbox]);
|
|
4939
4943
|
}
|
|
@@ -5239,12 +5243,19 @@ var WMJSMap = /*#__PURE__*/function () {
|
|
|
5239
5243
|
if (animationList !== undefined) {
|
|
5240
5244
|
if (_typeof(animationList) === 'object') {
|
|
5241
5245
|
if (animationList.length > 0) {
|
|
5246
|
+
// Ensure the time dimension has been loaded for the map before starting animation
|
|
5247
|
+
var timeDim = this.getDimension('time');
|
|
5248
|
+
|
|
5249
|
+
if (!timeDim) {
|
|
5250
|
+
return;
|
|
5251
|
+
}
|
|
5252
|
+
|
|
5253
|
+
var selectedTime = timeDim.currentValue;
|
|
5242
5254
|
this.isAnimating = true;
|
|
5243
5255
|
this.callBack.triggerEvent('onstartanimation', this);
|
|
5244
5256
|
this.currentAnimationStep = 0;
|
|
5245
5257
|
this.animationList = [];
|
|
5246
5258
|
this.mouseHoverAnimationBox = false;
|
|
5247
|
-
var selectedTime = this.getDimension('time').currentValue;
|
|
5248
5259
|
|
|
5249
5260
|
for (var j = 0; j < animationList.length; j += 1) {
|
|
5250
5261
|
if (selectedTime && animationList[j].value === selectedTime) {
|
package/webmap.umd.js
CHANGED
|
@@ -4950,6 +4950,11 @@
|
|
|
4950
4950
|
}
|
|
4951
4951
|
|
|
4952
4952
|
if (!_srs) _srs = 'EPSG:4326';
|
|
4953
|
+
|
|
4954
|
+
if (this.srs !== _srs) {
|
|
4955
|
+
this.defaultBBOX.setBBOX(_bbox);
|
|
4956
|
+
}
|
|
4957
|
+
|
|
4953
4958
|
this.srs = _srs;
|
|
4954
4959
|
|
|
4955
4960
|
if (this.proj4.srs !== this.srs || !isDefined(this.proj4.projection)) {
|
|
@@ -4963,7 +4968,6 @@
|
|
|
4963
4968
|
}
|
|
4964
4969
|
|
|
4965
4970
|
this.setBBOX(_bbox);
|
|
4966
|
-
this.defaultBBOX.setBBOX(_bbox);
|
|
4967
4971
|
this.updateMouseCursorCoordinates(undefined);
|
|
4968
4972
|
this.callBack.triggerEvent('onsetprojection', [this.srs, this.bbox]);
|
|
4969
4973
|
};
|
|
@@ -5250,12 +5254,19 @@
|
|
|
5250
5254
|
if (animationList !== undefined) {
|
|
5251
5255
|
if (_typeof(animationList) === 'object') {
|
|
5252
5256
|
if (animationList.length > 0) {
|
|
5257
|
+
// Ensure the time dimension has been loaded for the map before starting animation
|
|
5258
|
+
var timeDim = this.getDimension('time');
|
|
5259
|
+
|
|
5260
|
+
if (!timeDim) {
|
|
5261
|
+
return;
|
|
5262
|
+
}
|
|
5263
|
+
|
|
5264
|
+
var selectedTime = timeDim.currentValue;
|
|
5253
5265
|
this.isAnimating = true;
|
|
5254
5266
|
this.callBack.triggerEvent('onstartanimation', this);
|
|
5255
5267
|
this.currentAnimationStep = 0;
|
|
5256
5268
|
this.animationList = [];
|
|
5257
5269
|
this.mouseHoverAnimationBox = false;
|
|
5258
|
-
var selectedTime = this.getDimension('time').currentValue;
|
|
5259
5270
|
|
|
5260
5271
|
for (var j = 0; j < animationList.length; j += 1) {
|
|
5261
5272
|
if (selectedTime && animationList[j].value === selectedTime) {
|