@syncfusion/ej2-maps 19.4.53 → 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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 19.4.53
3
+ * version : 19.4.55
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-maps@*",
3
- "_id": "@syncfusion/ej2-maps@19.4.52",
3
+ "_id": "@syncfusion/ej2-maps@19.4.53",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Q3dgzt8U6/MscnIZhcV06J6ko+xSj8qO+ElAQQjaWqHsH6bnFksBP7YJw645z3QxW80AaspnYKux8qXiKOJiNA==",
5
+ "_integrity": "sha512-iKmlZs4Jk3Ham1nZcEED796tj4trxggyWDRFZaeoVffVMBcmk1eR0q0guoxl6jInRjI47uVY5TWxM/ZkTlvhCQ==",
6
6
  "_location": "/@syncfusion/ej2-maps",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-maps",
24
24
  "/@syncfusion/ej2-vue-maps"
25
25
  ],
26
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-19.4.52.tgz",
27
- "_shasum": "0603d44e6c0df8ee903e1ee94f463fec63ac696b",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-19.4.53.tgz",
27
+ "_shasum": "4d8d8af62e877d87dfdda1b5ffcfdb03d90a8122",
28
28
  "_spec": "@syncfusion/ej2-maps@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -36,9 +36,9 @@
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
38
  "@syncfusion/ej2-base": "~19.4.52",
39
- "@syncfusion/ej2-buttons": "~19.4.53",
39
+ "@syncfusion/ej2-buttons": "~19.4.55",
40
40
  "@syncfusion/ej2-compression": "~19.4.52",
41
- "@syncfusion/ej2-data": "~19.4.52",
41
+ "@syncfusion/ej2-data": "~19.4.54",
42
42
  "@syncfusion/ej2-file-utils": "~19.4.52",
43
43
  "@syncfusion/ej2-pdf-export": "~19.4.52",
44
44
  "@syncfusion/ej2-svg-base": "~19.4.52"
@@ -80,6 +80,6 @@
80
80
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
81
81
  },
82
82
  "typings": "index.d.ts",
83
- "version": "19.4.53",
83
+ "version": "19.4.55",
84
84
  "sideEffects": false
85
85
  }
@@ -818,6 +818,7 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
818
818
  * @param {PointerEvent} e - Specifies the pointer event on maps.
819
819
  */
820
820
  mapsOnClick(e: PointerEvent): void;
821
+ private triggerShapeSelection;
821
822
  private getClickLocation;
822
823
  /**
823
824
  * This method is used to perform operations when mouse click on maps.
package/src/maps/maps.js CHANGED
@@ -1039,20 +1039,23 @@ var Maps = /** @class */ (function (_super) {
1039
1039
  _this.notify(click, targetEle);
1040
1040
  }
1041
1041
  if (!eventArgs_1.cancel && targetEle.id.indexOf('shapeIndex') !== -1) {
1042
- var layerIndex = parseInt(targetEle.id.split('_LayerIndex_')[1].split('_')[0], 10);
1043
- var shapeSelectedEventArgs = triggerShapeEvent(targetId, _this.layers[layerIndex].selectionSettings, _this, shapeSelected);
1044
- if (!shapeSelectedEventArgs.cancel && _this.selectionModule && !isNullOrUndefined(_this.shapeSelected)) {
1045
- customizeStyle(_this.selectionModule.selectionType + 'selectionMap', _this.selectionModule.selectionType + 'selectionMapStyle', shapeSelectedEventArgs);
1046
- }
1047
- else if (shapeSelectedEventArgs.cancel && _this.selectionModule
1048
- && isNullOrUndefined(shapeSelectedEventArgs['data'])) {
1049
- removeClass(targetEle);
1050
- _this.selectionModule.removedSelectionList(targetEle);
1051
- }
1042
+ _this.triggerShapeSelection(targetEle);
1052
1043
  }
1053
1044
  });
1054
1045
  }
1055
1046
  };
1047
+ Maps.prototype.triggerShapeSelection = function (targetEle) {
1048
+ var layerIndex = parseInt(targetEle.id.split('_LayerIndex_')[1].split('_')[0], 10);
1049
+ var shapeSelectedEventArgs = triggerShapeEvent(targetEle.id, this.layers[layerIndex].selectionSettings, this, shapeSelected);
1050
+ if (!shapeSelectedEventArgs.cancel && this.selectionModule && !isNullOrUndefined(this.shapeSelected)) {
1051
+ customizeStyle(this.selectionModule.selectionType + 'selectionMap', this.selectionModule.selectionType + 'selectionMapStyle', shapeSelectedEventArgs);
1052
+ }
1053
+ else if (shapeSelectedEventArgs.cancel && this.selectionModule
1054
+ && isNullOrUndefined(shapeSelectedEventArgs['data'])) {
1055
+ removeClass(targetEle);
1056
+ this.selectionModule.removedSelectionList(targetEle);
1057
+ }
1058
+ };
1056
1059
  Maps.prototype.getClickLocation = function (targetId, pageX, pageY, targetElement, x, y) {
1057
1060
  var layerIndex = 0;
1058
1061
  var latLongValue;
@@ -1178,6 +1181,9 @@ var Maps = /** @class */ (function (_super) {
1178
1181
  var markerModule = this.markerModule;
1179
1182
  if (element.id.indexOf('shapeIndex') > -1 || element.id.indexOf('Tile') > -1) {
1180
1183
  this.mergeCluster();
1184
+ if (element.id.indexOf('shapeIndex') > -1) {
1185
+ this.triggerShapeSelection(element);
1186
+ }
1181
1187
  }
1182
1188
  if (markerModule) {
1183
1189
  markerModule.markerClick(e);