@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.
@@ -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;
@@ -1304,7 +1304,7 @@ function markerTemplate(eventArgs, templateFn, markerID, data, markerIndex, mark
1304
1304
  var templateElement = templateFn(data, maps, eventArgs.template, maps.element.id + '_MarkerTemplate' + markerIndex, false);
1305
1305
  var markerElement = convertElement(templateElement, markerID, data, markerIndex, maps);
1306
1306
  for (var i = 0; i < markerElement.children.length; i++) {
1307
- markerElement.children[i].style.pointerEvents = 'none';
1307
+ markerElement.children[i].style.pointerEvents = 'auto';
1308
1308
  }
1309
1309
  markerElement.style.left = (maps.isTileMap ? location.x : (location.x + transPoint.x) * scale) + offset.x - maps.mapAreaRect.x + 'px';
1310
1310
  markerElement.style.top = (maps.isTileMap ? location.y : (location.y + transPoint.y) * scale) + offset.y - maps.mapAreaRect.y + 'px';
@@ -6801,8 +6801,14 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
6801
6801
  }
6802
6802
  pathEle.setAttribute('aria-label', ((!isNullOrUndefined(currentShapeData['property'])) ?
6803
6803
  (currentShapeData['property'][properties]) : ''));
6804
- pathEle.tabIndex = this.mapObject.tabIndex + index + 3;
6805
- pathEle.setAttribute('role', '');
6804
+ if (this.currentLayer.selectionSettings.enable || this.currentLayer.highlightSettings.enable) {
6805
+ pathEle.tabIndex = this.mapObject.tabIndex + index + 3;
6806
+ pathEle.setAttribute('role', 'button');
6807
+ pathEle.style.cursor = this.currentLayer.highlightSettings.enable && !this.currentLayer.selectionSettings.enable ? 'default' : 'pointer';
6808
+ }
6809
+ else {
6810
+ pathEle.setAttribute('role', 'region');
6811
+ }
6806
6812
  if (drawingType === 'LineString' || drawingType === 'MultiLineString') {
6807
6813
  pathEle.style.cssText = 'outline:none';
6808
6814
  }
@@ -14066,6 +14072,12 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
14066
14072
  clearTimeout(this.clearTimeout);
14067
14073
  this.clearTimeout = setTimeout(this.removeTooltip.bind(this), 2000);
14068
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
+ }
14069
14081
  var option;
14070
14082
  var currentData = '';
14071
14083
  var targetId = target.id;