@syncfusion/ej2-maps 23.1.40 → 23.1.42

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.
@@ -5276,7 +5276,13 @@ class Marker {
5276
5276
  * @private
5277
5277
  */
5278
5278
  markerClick(e) {
5279
- const target = e.target.id;
5279
+ let target = e.target.id;
5280
+ if (target.indexOf(this.maps.element.id) === -1) {
5281
+ const ancestor = e.target.closest('.' + this.maps.element.id + '_marker_template_element');
5282
+ if (!isNullOrUndefined(ancestor) && ancestor.id.indexOf('_MarkerIndex_') > -1) {
5283
+ target = ancestor.id;
5284
+ }
5285
+ }
5280
5286
  if (target.indexOf('_LayerIndex_') === -1 || target.indexOf('_cluster_') > 0) {
5281
5287
  return;
5282
5288
  }