@syncfusion/ej2-maps 22.1.34 → 22.2.5

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.
@@ -8379,9 +8379,12 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
8379
8379
  Maps.prototype.setSecondaryElementPosition = function () {
8380
8380
  var element = getElementByID(this.element.id + '_Secondary_Element');
8381
8381
  var rect = this.element.getBoundingClientRect();
8382
- var svgRect = getElementByID(this.element.id + '_svg').getBoundingClientRect();
8383
- element.style.left = Math.max(svgRect.left - rect.left, 0) + 'px';
8384
- element.style.top = Math.max(svgRect.top - rect.top, 0) + 'px';
8382
+ var svgElement = getElementByID(this.element.id + '_svg');
8383
+ if (!isNullOrUndefined(svgElement)) {
8384
+ var svgRect = svgElement.getBoundingClientRect();
8385
+ element.style.left = Math.max(svgRect.left - rect.left, 0) + 'px';
8386
+ element.style.top = Math.max(svgRect.top - rect.top, 0) + 'px';
8387
+ }
8385
8388
  };
8386
8389
  Maps.prototype.zoomingChange = function () {
8387
8390
  var left;