@vtx/map 1.1.51 → 1.1.53

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.
@@ -3014,8 +3014,13 @@ var VortexAMap = /*#__PURE__*/function (_React$Component) {
3014
3014
  value: function componentDidMount() {
3015
3015
  var t = this;
3016
3016
  this.loadMapComplete.then(function () {
3017
- t.mapLeft = document.getElementById(t.props.mapId).offsetLeft;
3018
- t.mapTop = document.getElementById(t.props.mapId).offsetTop;
3017
+ var dom = document.getElementById(t.props.mapId);
3018
+
3019
+ if (dom) {
3020
+ t.mapLeft = dom.offsetLeft;
3021
+ t.mapTop = dom.offsetTop;
3022
+ }
3023
+
3019
3024
  t.init();
3020
3025
  });
3021
3026
  }