@syncfusion/ej2-maps 21.1.35 → 21.1.38
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/.eslintrc.json +259 -0
- package/CHANGELOG.md +8 -0
- package/dist/ej2-maps.min.js +2 -2
- 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 +20 -3
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +20 -3
- 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.js +18 -1
- package/src/maps/user-interaction/selection.js +2 -2
- package/tslint.json +111 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.1.
|
|
3
|
+
* version : 21.1.38
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-maps@21.1.37",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-kiEbYLCUj/kG9AVYrexeCBZ0Yg4rznGKcP5wFBnrUG1K5gav6HykaAmesmAVUI12GYQbpooIIFT32Mdg4WitjQ==",
|
|
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": "https://nexus.syncfusion.com/repository/ej2-
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-21.1.37.tgz",
|
|
27
|
+
"_shasum": "ba6ed04fdeab53b86e57e1b92df1d5c0dfab816b",
|
|
28
28
|
"_spec": "@syncfusion/ej2-maps@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~21.1.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~21.1.
|
|
40
|
-
"@syncfusion/ej2-compression": "~21.1.
|
|
41
|
-
"@syncfusion/ej2-data": "~21.1.
|
|
42
|
-
"@syncfusion/ej2-file-utils": "~21.1.
|
|
43
|
-
"@syncfusion/ej2-pdf-export": "~21.1.
|
|
44
|
-
"@syncfusion/ej2-svg-base": "~21.1.
|
|
38
|
+
"@syncfusion/ej2-base": "~21.1.38",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~21.1.37",
|
|
40
|
+
"@syncfusion/ej2-compression": "~21.1.37",
|
|
41
|
+
"@syncfusion/ej2-data": "~21.1.38",
|
|
42
|
+
"@syncfusion/ej2-file-utils": "~21.1.37",
|
|
43
|
+
"@syncfusion/ej2-pdf-export": "~21.1.37",
|
|
44
|
+
"@syncfusion/ej2-svg-base": "~21.1.38"
|
|
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",
|
|
@@ -93,6 +93,6 @@
|
|
|
93
93
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
94
94
|
},
|
|
95
95
|
"typings": "index.d.ts",
|
|
96
|
-
"version": "21.1.
|
|
96
|
+
"version": "21.1.38",
|
|
97
97
|
"sideEffects": false
|
|
98
98
|
}
|
package/src/maps/maps.js
CHANGED
|
@@ -1177,7 +1177,7 @@ var Maps = /** @class */ (function (_super) {
|
|
|
1177
1177
|
latLongValue.latitude = -latLongValue.latitude;
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
1180
|
-
else if (targetId.indexOf('_MarkerIndex_') > -1 && this.markerModule) {
|
|
1180
|
+
else if (targetId.indexOf('_MarkerIndex_') > -1 && this.markerModule && !this.markerDragArgument) {
|
|
1181
1181
|
var markerIndex = parseInt(targetId.split('_MarkerIndex_')[1].split('_')[0], 10);
|
|
1182
1182
|
var dataIndex = parseInt(targetId.split('_dataIndex_')[1].split('_')[0], 10);
|
|
1183
1183
|
if (!isNaN(markerIndex) && !isNaN(dataIndex)) {
|
|
@@ -1188,6 +1188,23 @@ var Maps = /** @class */ (function (_super) {
|
|
|
1188
1188
|
latLongValue = { latitude: null, longitude: null };
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
|
+
else if (targetId.indexOf('_MarkerIndex_') > -1 && this.markerModule && this.markerDragArgument) {
|
|
1192
|
+
var element = document.getElementById(this.element.id + '_LayerIndex_' + this.markerDragArgument.layerIndex);
|
|
1193
|
+
var elementRect = element.getBoundingClientRect();
|
|
1194
|
+
var location_3 = new MapLocation(pageX > elementRect.left ? Math.abs(elementRect.left - pageX) : 0, pageY > elementRect.top ? Math.abs(elementRect.top - pageY) : 0);
|
|
1195
|
+
var minLongitude = Math.abs((-this.baseMapBounds.longitude.min) * this.mapLayerPanel.currentFactor);
|
|
1196
|
+
var minLatitude = Math.abs(this.baseMapBounds.latitude.max * this.mapLayerPanel.currentFactor);
|
|
1197
|
+
latLongValue = {
|
|
1198
|
+
latitude: Math.abs(this.baseMapBounds.latitude.max - (location_3.y / (this.mapLayerPanel.currentFactor * this.scale))),
|
|
1199
|
+
longitude: Math.abs((location_3.x / (this.mapLayerPanel.currentFactor * this.scale)) + this.baseMapBounds.longitude.min)
|
|
1200
|
+
};
|
|
1201
|
+
if (this.baseMapBounds.longitude.min < 0 && minLongitude > location_3.x) {
|
|
1202
|
+
latLongValue.longitude = -latLongValue.longitude;
|
|
1203
|
+
}
|
|
1204
|
+
if (this.baseMapBounds.latitude.min < 0 && minLatitude > location_3.y) {
|
|
1205
|
+
latLongValue.latitude = -latLongValue.latitude;
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1191
1208
|
else {
|
|
1192
1209
|
latLongValue = { latitude: null, longitude: null };
|
|
1193
1210
|
}
|
|
@@ -71,7 +71,7 @@ var Selection = /** @class */ (function () {
|
|
|
71
71
|
this.selectionsettings = this.maps.layers[layerIndex].markerSettings[markerIndex].selectionSettings;
|
|
72
72
|
this.selectionType = 'Marker';
|
|
73
73
|
}
|
|
74
|
-
else {
|
|
74
|
+
else if (targetElement.id.indexOf('NavigationIndex') > -1) {
|
|
75
75
|
var index = parseInt(targetElement.id.split('_NavigationIndex_')[1].split('_')[0], 10);
|
|
76
76
|
shapeData = null;
|
|
77
77
|
data = {
|
|
@@ -81,7 +81,7 @@ var Selection = /** @class */ (function () {
|
|
|
81
81
|
this.selectionsettings = this.maps.layers[layerIndex].navigationLineSettings[index].selectionSettings;
|
|
82
82
|
this.selectionType = 'navigationline';
|
|
83
83
|
}
|
|
84
|
-
if (this.selectionsettings.enable) {
|
|
84
|
+
if (!isNullOrUndefined(this.selectionsettings) && this.selectionsettings.enable) {
|
|
85
85
|
this.selectElement(targetElement, layerIndex, data, shapeData);
|
|
86
86
|
}
|
|
87
87
|
}
|
package/tslint.json
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"rules": {
|
|
3
|
+
"chai-vague-errors": true,
|
|
4
|
+
"use-isnan": true,
|
|
5
|
+
"missing-jsdoc": true,
|
|
6
|
+
"missing-optional-annotation": true,
|
|
7
|
+
"no-backbone-get-set-outside-model": true,
|
|
8
|
+
"no-banned-terms": true,
|
|
9
|
+
"no-constant-condition": true,
|
|
10
|
+
"no-control-regex": true,
|
|
11
|
+
"no-cookies": true,
|
|
12
|
+
"no-delete-expression": true,
|
|
13
|
+
"no-document-write": true,
|
|
14
|
+
"no-document-domain": true,
|
|
15
|
+
"no-disable-auto-sanitization": true,
|
|
16
|
+
"no-duplicate-case": true,
|
|
17
|
+
"no-duplicate-parameter-names": true,
|
|
18
|
+
"no-empty-interfaces": true,
|
|
19
|
+
"no-exec-script": true,
|
|
20
|
+
"no-function-constructor-with-string-args": true,
|
|
21
|
+
"no-function-expression": true,
|
|
22
|
+
"no-invalid-regexp": true,
|
|
23
|
+
"no-for-in": true,
|
|
24
|
+
"member-access": true,
|
|
25
|
+
"no-multiline-string": true,
|
|
26
|
+
"no-multiple-var-decl": true,
|
|
27
|
+
"no-unnecessary-bind": true,
|
|
28
|
+
"no-unnecessary-semicolons": true,
|
|
29
|
+
"no-octal-literal": true,
|
|
30
|
+
"no-regex-spaces": true,
|
|
31
|
+
"no-sparse-arrays": true,
|
|
32
|
+
"no-string-based-set-immediate": true,
|
|
33
|
+
"no-string-based-set-interval": true,
|
|
34
|
+
"no-unused-imports": true,
|
|
35
|
+
"no-with-statement": true,
|
|
36
|
+
"prefer-array-literal": true,
|
|
37
|
+
"promise-must-complete": false,
|
|
38
|
+
"react-no-dangerous-html": true,
|
|
39
|
+
"use-named-parameter": true,
|
|
40
|
+
"valid-typeof": true,
|
|
41
|
+
"max-func-body-length": [true, 100, {
|
|
42
|
+
"ignore-parameters-to-function-regex": "describe"
|
|
43
|
+
}],
|
|
44
|
+
"class-name": true,
|
|
45
|
+
"curly": true,
|
|
46
|
+
"eofline": false,
|
|
47
|
+
"forin": true,
|
|
48
|
+
"indent": [
|
|
49
|
+
true,
|
|
50
|
+
"spaces"
|
|
51
|
+
],
|
|
52
|
+
"label-position": true,
|
|
53
|
+
"max-line-length": [true, 140],
|
|
54
|
+
"no-arg": true,
|
|
55
|
+
"no-console": [true,
|
|
56
|
+
"debug",
|
|
57
|
+
"info",
|
|
58
|
+
"log",
|
|
59
|
+
"time",
|
|
60
|
+
"timeEnd",
|
|
61
|
+
"trace"
|
|
62
|
+
],
|
|
63
|
+
"no-construct": true,
|
|
64
|
+
"no-parameter-properties": true,
|
|
65
|
+
"no-debugger": true,
|
|
66
|
+
"no-duplicate-variable": true,
|
|
67
|
+
"no-empty": true,
|
|
68
|
+
"no-eval": true,
|
|
69
|
+
"no-string-literal": true,
|
|
70
|
+
"no-switch-case-fall-through": true,
|
|
71
|
+
"trailing-comma": true,
|
|
72
|
+
"no-trailing-whitespace": true,
|
|
73
|
+
"no-unused-expression": true,
|
|
74
|
+
"no-use-before-declare": false,
|
|
75
|
+
"no-var-requires": true,
|
|
76
|
+
"one-line": [true,
|
|
77
|
+
"check-open-brace",
|
|
78
|
+
"check-catch",
|
|
79
|
+
"check-else",
|
|
80
|
+
"check-whitespace"
|
|
81
|
+
],
|
|
82
|
+
"no-any": true,
|
|
83
|
+
"no-conditional-assignment": true,
|
|
84
|
+
"no-angle-bracket-type-assertion": false,
|
|
85
|
+
"align": [true, "parameters", "arguments", "statements"],
|
|
86
|
+
"no-empty-line-after-opening-brace": false,
|
|
87
|
+
"typedef-whitespace": [false],
|
|
88
|
+
"ban": true,
|
|
89
|
+
"quotemark": [true, "single"],
|
|
90
|
+
"semicolon": true,
|
|
91
|
+
"triple-equals": [true, "allow-null-check"],
|
|
92
|
+
"typedef": [true,
|
|
93
|
+
"call-signature",
|
|
94
|
+
"parameter",
|
|
95
|
+
"property-declaration",
|
|
96
|
+
"variable-declaration",
|
|
97
|
+
"arrow-parameter",
|
|
98
|
+
"member-variable-declaration"],
|
|
99
|
+
"variable-name": true,
|
|
100
|
+
"whitespace": [true,
|
|
101
|
+
"check-branch",
|
|
102
|
+
"check-decl",
|
|
103
|
+
"check-operator",
|
|
104
|
+
"check-separator",
|
|
105
|
+
"check-type"
|
|
106
|
+
],
|
|
107
|
+
"jsdoc-format": true,
|
|
108
|
+
"no-var-keyword": true,
|
|
109
|
+
"radix": true
|
|
110
|
+
}
|
|
111
|
+
}
|