@syncfusion/ej2-maps 22.2.8 → 22.2.12

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.
@@ -684,7 +684,7 @@ function renderTextElement(option, style, color, parent, isMinus) {
684
684
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
685
685
  function convertElement(element, markerId, data, index, mapObj) {
686
686
  var childElement = createElement('div', {
687
- id: markerId
687
+ id: markerId, className: mapObj.element.id + '_marker_template_element'
688
688
  });
689
689
  childElement.style.cssText = 'position: absolute;pointer-events: auto;';
690
690
  var elementLength = element.length;
@@ -14072,6 +14072,12 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
14072
14072
  clearTimeout(this.clearTimeout);
14073
14073
  this.clearTimeout = setTimeout(this.removeTooltip.bind(this), 2000);
14074
14074
  }
14075
+ if (target.id.indexOf(this.maps.element.id) === -1) {
14076
+ var ancestor = target.closest('.' + this.maps.element.id + '_marker_template_element');
14077
+ if (!isNullOrUndefined(ancestor) && ancestor.id.indexOf('_MarkerIndex_') > -1) {
14078
+ target = ancestor;
14079
+ }
14080
+ }
14075
14081
  var option;
14076
14082
  var currentData = '';
14077
14083
  var targetId = target.id;