@syncfusion/ej2-maps 19.4.48 → 19.4.55

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.
@@ -8104,30 +8104,29 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
8104
8104
  }
8105
8105
  }
8106
8106
  if (_this.markerModule) {
8107
- _this.markerModule.markerClick(e);
8108
8107
  _this.markerModule.markerClusterClick(e);
8109
8108
  }
8110
- if (_this.bubbleModule) {
8111
- _this.bubbleModule.bubbleClick(e);
8112
- }
8113
8109
  if (!eventArgs_1.cancel) {
8114
8110
  _this.notify(click, targetEle);
8115
8111
  }
8116
8112
  if (!eventArgs_1.cancel && targetEle.id.indexOf('shapeIndex') !== -1) {
8117
- var layerIndex = parseInt(targetEle.id.split('_LayerIndex_')[1].split('_')[0], 10);
8118
- var shapeSelectedEventArgs = triggerShapeEvent(targetId, _this.layers[layerIndex].selectionSettings, _this, shapeSelected);
8119
- if (!shapeSelectedEventArgs.cancel && _this.selectionModule && !isNullOrUndefined(_this.shapeSelected)) {
8120
- customizeStyle(_this.selectionModule.selectionType + 'selectionMap', _this.selectionModule.selectionType + 'selectionMapStyle', shapeSelectedEventArgs);
8121
- }
8122
- else if (shapeSelectedEventArgs.cancel && _this.selectionModule
8123
- && isNullOrUndefined(shapeSelectedEventArgs['data'])) {
8124
- removeClass(targetEle);
8125
- _this.selectionModule.removedSelectionList(targetEle);
8126
- }
8113
+ _this.triggerShapeSelection(targetEle);
8127
8114
  }
8128
8115
  });
8129
8116
  }
8130
8117
  };
8118
+ Maps.prototype.triggerShapeSelection = function (targetEle) {
8119
+ var layerIndex = parseInt(targetEle.id.split('_LayerIndex_')[1].split('_')[0], 10);
8120
+ var shapeSelectedEventArgs = triggerShapeEvent(targetEle.id, this.layers[layerIndex].selectionSettings, this, shapeSelected);
8121
+ if (!shapeSelectedEventArgs.cancel && this.selectionModule && !isNullOrUndefined(this.shapeSelected)) {
8122
+ customizeStyle(this.selectionModule.selectionType + 'selectionMap', this.selectionModule.selectionType + 'selectionMapStyle', shapeSelectedEventArgs);
8123
+ }
8124
+ else if (shapeSelectedEventArgs.cancel && this.selectionModule
8125
+ && isNullOrUndefined(shapeSelectedEventArgs['data'])) {
8126
+ removeClass(targetEle);
8127
+ this.selectionModule.removedSelectionList(targetEle);
8128
+ }
8129
+ };
8131
8130
  Maps.prototype.getClickLocation = function (targetId, pageX, pageY, targetElement, x, y) {
8132
8131
  var layerIndex = 0;
8133
8132
  var latLongValue;
@@ -8249,6 +8248,9 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
8249
8248
  var markerModule = this.markerModule;
8250
8249
  if (element.id.indexOf('shapeIndex') > -1 || element.id.indexOf('Tile') > -1) {
8251
8250
  this.mergeCluster();
8251
+ if (element.id.indexOf('shapeIndex') > -1) {
8252
+ this.triggerShapeSelection(element);
8253
+ }
8252
8254
  }
8253
8255
  if (markerModule) {
8254
8256
  markerModule.markerClick(e);