@syncfusion/ej2-maps 22.2.5 → 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.
@@ -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
  }