@syncfusion/ej2-maps 21.1.37 → 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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 21.1.37
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@21.1.35",
3
+ "_id": "@syncfusion/ej2-maps@21.1.37",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-WufF1xB1A5FsIbAx3qZgmVdkX/ODPpprThHEejipaxPfBWQ14Fg1r32ugaadGMo+YY7KU6DSei6/Eqr6lUdr1A==",
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-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-21.1.35.tgz",
27
- "_shasum": "ac531b479c7bbaeffd248dfae5da90655e9c163d",
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.37",
38
+ "@syncfusion/ej2-base": "~21.1.38",
39
39
  "@syncfusion/ej2-buttons": "~21.1.37",
40
40
  "@syncfusion/ej2-compression": "~21.1.37",
41
- "@syncfusion/ej2-data": "~21.1.37",
41
+ "@syncfusion/ej2-data": "~21.1.38",
42
42
  "@syncfusion/ej2-file-utils": "~21.1.37",
43
43
  "@syncfusion/ej2-pdf-export": "~21.1.37",
44
- "@syncfusion/ej2-svg-base": "~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.37",
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
  }