@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.
@@ -7823,30 +7823,29 @@ let Maps = class Maps extends Component {
7823
7823
  }
7824
7824
  }
7825
7825
  if (this.markerModule) {
7826
- this.markerModule.markerClick(e);
7827
7826
  this.markerModule.markerClusterClick(e);
7828
7827
  }
7829
- if (this.bubbleModule) {
7830
- this.bubbleModule.bubbleClick(e);
7831
- }
7832
7828
  if (!eventArgs.cancel) {
7833
7829
  this.notify(click, targetEle);
7834
7830
  }
7835
7831
  if (!eventArgs.cancel && targetEle.id.indexOf('shapeIndex') !== -1) {
7836
- const layerIndex = parseInt(targetEle.id.split('_LayerIndex_')[1].split('_')[0], 10);
7837
- const shapeSelectedEventArgs = triggerShapeEvent(targetId, this.layers[layerIndex].selectionSettings, this, shapeSelected);
7838
- if (!shapeSelectedEventArgs.cancel && this.selectionModule && !isNullOrUndefined(this.shapeSelected)) {
7839
- customizeStyle(this.selectionModule.selectionType + 'selectionMap', this.selectionModule.selectionType + 'selectionMapStyle', shapeSelectedEventArgs);
7840
- }
7841
- else if (shapeSelectedEventArgs.cancel && this.selectionModule
7842
- && isNullOrUndefined(shapeSelectedEventArgs['data'])) {
7843
- removeClass(targetEle);
7844
- this.selectionModule.removedSelectionList(targetEle);
7845
- }
7832
+ this.triggerShapeSelection(targetEle);
7846
7833
  }
7847
7834
  });
7848
7835
  }
7849
7836
  }
7837
+ triggerShapeSelection(targetEle) {
7838
+ const layerIndex = parseInt(targetEle.id.split('_LayerIndex_')[1].split('_')[0], 10);
7839
+ const shapeSelectedEventArgs = triggerShapeEvent(targetEle.id, this.layers[layerIndex].selectionSettings, this, shapeSelected);
7840
+ if (!shapeSelectedEventArgs.cancel && this.selectionModule && !isNullOrUndefined(this.shapeSelected)) {
7841
+ customizeStyle(this.selectionModule.selectionType + 'selectionMap', this.selectionModule.selectionType + 'selectionMapStyle', shapeSelectedEventArgs);
7842
+ }
7843
+ else if (shapeSelectedEventArgs.cancel && this.selectionModule
7844
+ && isNullOrUndefined(shapeSelectedEventArgs['data'])) {
7845
+ removeClass(targetEle);
7846
+ this.selectionModule.removedSelectionList(targetEle);
7847
+ }
7848
+ }
7850
7849
  getClickLocation(targetId, pageX, pageY, targetElement, x, y) {
7851
7850
  let layerIndex = 0;
7852
7851
  let latLongValue;
@@ -7968,6 +7967,9 @@ let Maps = class Maps extends Component {
7968
7967
  const markerModule = this.markerModule;
7969
7968
  if (element.id.indexOf('shapeIndex') > -1 || element.id.indexOf('Tile') > -1) {
7970
7969
  this.mergeCluster();
7970
+ if (element.id.indexOf('shapeIndex') > -1) {
7971
+ this.triggerShapeSelection(element);
7972
+ }
7971
7973
  }
7972
7974
  if (markerModule) {
7973
7975
  markerModule.markerClick(e);