@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.
- package/CHANGELOG.md +16 -0
- package/dist/ej2-maps.umd.min.js +2 -2
- package/dist/ej2-maps.umd.min.js.map +1 -1
- package/dist/es6/ej2-maps.es2015.js +16 -14
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +16 -14
- package/dist/es6/ej2-maps.es5.js.map +1 -1
- package/dist/global/ej2-maps.min.js +2 -2
- package/dist/global/ej2-maps.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/maps/maps.d.ts +1 -0
- package/src/maps/maps.js +16 -14
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.4.
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-maps@19.4.53",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
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.
|
|
27
|
-
"_shasum": "
|
|
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": {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~19.4.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~19.4.
|
|
40
|
-
"@syncfusion/ej2-compression": "~19.4.
|
|
41
|
-
"@syncfusion/ej2-data": "~19.4.
|
|
42
|
-
"@syncfusion/ej2-file-utils": "~19.4.
|
|
43
|
-
"@syncfusion/ej2-pdf-export": "~19.4.
|
|
44
|
-
"@syncfusion/ej2-svg-base": "~19.4.
|
|
38
|
+
"@syncfusion/ej2-base": "~19.4.52",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~19.4.55",
|
|
40
|
+
"@syncfusion/ej2-compression": "~19.4.52",
|
|
41
|
+
"@syncfusion/ej2-data": "~19.4.54",
|
|
42
|
+
"@syncfusion/ej2-file-utils": "~19.4.52",
|
|
43
|
+
"@syncfusion/ej2-pdf-export": "~19.4.52",
|
|
44
|
+
"@syncfusion/ej2-svg-base": "~19.4.52"
|
|
45
45
|
},
|
|
46
46
|
"deprecated": false,
|
|
47
47
|
"description": "The Maps component is used to visualize the geographical data and represent the statistical data of a particular geographical area on earth with user interactivity, and provides various customizing options",
|
|
@@ -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.
|
|
83
|
+
"version": "19.4.55",
|
|
84
84
|
"sideEffects": false
|
|
85
85
|
}
|
package/src/maps/maps.d.ts
CHANGED
|
@@ -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
|
@@ -1033,30 +1033,29 @@ var Maps = /** @class */ (function (_super) {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
if (_this.markerModule) {
|
|
1036
|
-
_this.markerModule.markerClick(e);
|
|
1037
1036
|
_this.markerModule.markerClusterClick(e);
|
|
1038
1037
|
}
|
|
1039
|
-
if (_this.bubbleModule) {
|
|
1040
|
-
_this.bubbleModule.bubbleClick(e);
|
|
1041
|
-
}
|
|
1042
1038
|
if (!eventArgs_1.cancel) {
|
|
1043
1039
|
_this.notify(click, targetEle);
|
|
1044
1040
|
}
|
|
1045
1041
|
if (!eventArgs_1.cancel && targetEle.id.indexOf('shapeIndex') !== -1) {
|
|
1046
|
-
|
|
1047
|
-
var shapeSelectedEventArgs = triggerShapeEvent(targetId, _this.layers[layerIndex].selectionSettings, _this, shapeSelected);
|
|
1048
|
-
if (!shapeSelectedEventArgs.cancel && _this.selectionModule && !isNullOrUndefined(_this.shapeSelected)) {
|
|
1049
|
-
customizeStyle(_this.selectionModule.selectionType + 'selectionMap', _this.selectionModule.selectionType + 'selectionMapStyle', shapeSelectedEventArgs);
|
|
1050
|
-
}
|
|
1051
|
-
else if (shapeSelectedEventArgs.cancel && _this.selectionModule
|
|
1052
|
-
&& isNullOrUndefined(shapeSelectedEventArgs['data'])) {
|
|
1053
|
-
removeClass(targetEle);
|
|
1054
|
-
_this.selectionModule.removedSelectionList(targetEle);
|
|
1055
|
-
}
|
|
1042
|
+
_this.triggerShapeSelection(targetEle);
|
|
1056
1043
|
}
|
|
1057
1044
|
});
|
|
1058
1045
|
}
|
|
1059
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
|
+
};
|
|
1060
1059
|
Maps.prototype.getClickLocation = function (targetId, pageX, pageY, targetElement, x, y) {
|
|
1061
1060
|
var layerIndex = 0;
|
|
1062
1061
|
var latLongValue;
|
|
@@ -1182,6 +1181,9 @@ var Maps = /** @class */ (function (_super) {
|
|
|
1182
1181
|
var markerModule = this.markerModule;
|
|
1183
1182
|
if (element.id.indexOf('shapeIndex') > -1 || element.id.indexOf('Tile') > -1) {
|
|
1184
1183
|
this.mergeCluster();
|
|
1184
|
+
if (element.id.indexOf('shapeIndex') > -1) {
|
|
1185
|
+
this.triggerShapeSelection(element);
|
|
1186
|
+
}
|
|
1185
1187
|
}
|
|
1186
1188
|
if (markerModule) {
|
|
1187
1189
|
markerModule.markerClick(e);
|