@vtx/map 1.2.31 → 1.2.33
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/VtxMap/AMap/AMap.js
CHANGED
|
@@ -807,6 +807,7 @@ var VortexAMap = /*#__PURE__*/function (_React$Component) {
|
|
|
807
807
|
value: function getMapExtent() {
|
|
808
808
|
var t = this;
|
|
809
809
|
var gis = t.state.gis;
|
|
810
|
+
if (!gis) return {};
|
|
810
811
|
var northEast = (this.props.viewMode == '3D' ? gis.getBounds().toBounds() : gis.getBounds()).getNorthEast(),
|
|
811
812
|
southWest = (this.props.viewMode == '3D' ? gis.getBounds().toBounds() : gis.getBounds()).getSouthWest();
|
|
812
813
|
var obj = {
|