@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.
@@ -631,7 +631,7 @@ function renderTextElement(option, style, color, parent, isMinus = false) {
631
631
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
632
632
  function convertElement(element, markerId, data, index, mapObj) {
633
633
  const childElement = createElement('div', {
634
- id: markerId
634
+ id: markerId, className: mapObj.element.id + '_marker_template_element'
635
635
  });
636
636
  childElement.style.cssText = 'position: absolute;pointer-events: auto;';
637
637
  let elementLength = element.length;
@@ -13734,6 +13734,12 @@ class MapsTooltip {
13734
13734
  clearTimeout(this.clearTimeout);
13735
13735
  this.clearTimeout = setTimeout(this.removeTooltip.bind(this), 2000);
13736
13736
  }
13737
+ if (target.id.indexOf(this.maps.element.id) === -1) {
13738
+ const ancestor = target.closest('.' + this.maps.element.id + '_marker_template_element');
13739
+ if (!isNullOrUndefined(ancestor) && ancestor.id.indexOf('_MarkerIndex_') > -1) {
13740
+ target = ancestor;
13741
+ }
13742
+ }
13737
13743
  let option;
13738
13744
  let currentData = '';
13739
13745
  const targetId = target.id;