@syncfusion/ej2-maps 22.2.5 → 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;
@@ -1251,7 +1251,7 @@ function markerTemplate(eventArgs, templateFn, markerID, data, markerIndex, mark
1251
1251
  const templateElement = templateFn(data, maps, eventArgs.template, maps.element.id + '_MarkerTemplate' + markerIndex, false);
1252
1252
  const markerElement = convertElement(templateElement, markerID, data, markerIndex, maps);
1253
1253
  for (let i = 0; i < markerElement.children.length; i++) {
1254
- markerElement.children[i].style.pointerEvents = 'none';
1254
+ markerElement.children[i].style.pointerEvents = 'auto';
1255
1255
  }
1256
1256
  markerElement.style.left = (maps.isTileMap ? location.x : (location.x + transPoint.x) * scale) + offset.x - maps.mapAreaRect.x + 'px';
1257
1257
  markerElement.style.top = (maps.isTileMap ? location.y : (location.y + transPoint.y) * scale) + offset.y - maps.mapAreaRect.y + 'px';
@@ -6555,8 +6555,14 @@ class LayerPanel {
6555
6555
  }
6556
6556
  pathEle.setAttribute('aria-label', ((!isNullOrUndefined(currentShapeData['property'])) ?
6557
6557
  (currentShapeData['property'][properties]) : ''));
6558
- pathEle.tabIndex = this.mapObject.tabIndex + index + 3;
6559
- pathEle.setAttribute('role', '');
6558
+ if (this.currentLayer.selectionSettings.enable || this.currentLayer.highlightSettings.enable) {
6559
+ pathEle.tabIndex = this.mapObject.tabIndex + index + 3;
6560
+ pathEle.setAttribute('role', 'button');
6561
+ pathEle.style.cursor = this.currentLayer.highlightSettings.enable && !this.currentLayer.selectionSettings.enable ? 'default' : 'pointer';
6562
+ }
6563
+ else {
6564
+ pathEle.setAttribute('role', 'region');
6565
+ }
6560
6566
  if (drawingType === 'LineString' || drawingType === 'MultiLineString') {
6561
6567
  pathEle.style.cssText = 'outline:none';
6562
6568
  }
@@ -13728,6 +13734,12 @@ class MapsTooltip {
13728
13734
  clearTimeout(this.clearTimeout);
13729
13735
  this.clearTimeout = setTimeout(this.removeTooltip.bind(this), 2000);
13730
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
+ }
13731
13743
  let option;
13732
13744
  let currentData = '';
13733
13745
  const targetId = target.id;