@syncfusion/ej2-maps 22.1.39 → 22.2.8

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.
@@ -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
  }