@opengeoweb/webmap 4.13.1 → 4.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/index.esm.js +2 -1
- package/index.umd.js +2 -1
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -5449,11 +5449,12 @@ var WMJSMap = /*#__PURE__*/function () {
|
|
|
5449
5449
|
this.setProjection(projinfo.srs, projinfo.bbox);
|
|
5450
5450
|
}
|
|
5451
5451
|
|
|
5452
|
+
if (!this.baseDiv || !this.baseDiv.style) return;
|
|
5452
5453
|
Object.assign(this.baseDiv.style, {
|
|
5453
5454
|
width: this.width,
|
|
5454
5455
|
height: this.height
|
|
5455
5456
|
});
|
|
5456
|
-
if (!this.mainElement.style) return;
|
|
5457
|
+
if (!this.mainElement || !this.mainElement.style) return;
|
|
5457
5458
|
this.mainElement.style.width = "".concat(this.width, "px");
|
|
5458
5459
|
this.mainElement.style.height = "".concat(this.height, "px");
|
|
5459
5460
|
this.setBBOX(this.resizeBBOX);
|
package/index.umd.js
CHANGED
|
@@ -5441,11 +5441,12 @@
|
|
|
5441
5441
|
this.setProjection(projinfo.srs, projinfo.bbox);
|
|
5442
5442
|
}
|
|
5443
5443
|
|
|
5444
|
+
if (!this.baseDiv || !this.baseDiv.style) return;
|
|
5444
5445
|
Object.assign(this.baseDiv.style, {
|
|
5445
5446
|
width: this.width,
|
|
5446
5447
|
height: this.height
|
|
5447
5448
|
});
|
|
5448
|
-
if (!this.mainElement.style) return;
|
|
5449
|
+
if (!this.mainElement || !this.mainElement.style) return;
|
|
5449
5450
|
this.mainElement.style.width = this.width + "px";
|
|
5450
5451
|
this.mainElement.style.height = this.height + "px";
|
|
5451
5452
|
this.setBBOX(this.resizeBBOX);
|