@syncfusion/ej2-maps 24.2.3 → 24.2.4

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 : 24.2.3
3
+ * version : 24.2.4
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. 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@24.1.47",
3
+ "_id": "@syncfusion/ej2-maps@24.2.3",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-8r/mKrM8doGFlqjSBkgQlpSlMs44HjsXvNVKcPOKmbkiBVnYPXEMVv3fB17i9JBcYDsIZhQCwnHLjJhcGC9rFQ==",
5
+ "_integrity": "sha512-BaaTF4jeFZlhezCjeUOzd7aQM/3otxJo5NGf/qauIMwrYjSq22pdOPme89Ptnu64FW3tEua9lUxZ5R3dGOK16g==",
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-24.1.47.tgz",
27
- "_shasum": "a16cef9280427d05c31130c8ddf069cf5ecfbe17",
26
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-24.2.3.tgz",
27
+ "_shasum": "8d7d8c62ba2b21ab6c14b3f5a2e37cb3fdbdbd23",
28
28
  "_spec": "@syncfusion/ej2-maps@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
30
30
  "author": {
@@ -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": "24.2.3",
96
+ "version": "24.2.4",
97
97
  "sideEffects": false
98
98
  }
@@ -908,7 +908,8 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
908
908
  private clickHandler;
909
909
  private triggerShapeSelection;
910
910
  private getMarkerClickLocation;
911
- private getClickLocation;
911
+ /** @private */
912
+ getClickLocation(targetId: string, pageX: number, pageY: number, targetElement: HTMLElement, x: number, y: number): GeoPosition;
912
913
  private removeTileMap;
913
914
  /**
914
915
  * This method is used to perform operations when mouse click on maps.
package/src/maps/maps.js CHANGED
@@ -1169,7 +1169,7 @@ var Maps = /** @class */ (function (_super) {
1169
1169
  document.getElementById(this.element.id + "_svg").style.cursor = 'grabbing';
1170
1170
  var targetElement = getElement(marker.targetId);
1171
1171
  var latLongValue = this.getClickLocation(marker.targetId, pageX, pageY, targetElement, x, y);
1172
- var location = (this.isTileMap) ? convertTileLatLongToPoint(new MapLocation(latLongValue.longitude, latLongValue.latitude), this.scale, this.tileTranslatePoint, true) : convertGeoToPoint(latLongValue.latitude, latLongValue.longitude, this.mapLayerPanel.currentFactor, this.layersCollection[marker.layerIndex], this);
1172
+ var location = (this.isTileMap) ? convertTileLatLongToPoint(new MapLocation(latLongValue.longitude, latLongValue.latitude), this.tileZoomLevel, this.tileTranslatePoint, true) : convertGeoToPoint(latLongValue.latitude, latLongValue.longitude, this.mapLayerPanel.currentFactor, this.layersCollection[marker.layerIndex], this);
1173
1173
  var transPoint = this.translatePoint;
1174
1174
  var translateX = (this.isTileMap ? location.x : (location.x + transPoint.x) * this.scale);
1175
1175
  var translateY = (this.isTileMap ? location.y : (location.y + transPoint.y) * this.scale);
@@ -1185,6 +1185,7 @@ var Maps = /** @class */ (function (_super) {
1185
1185
  }
1186
1186
  return latLongValue;
1187
1187
  };
1188
+ /** @private */
1188
1189
  Maps.prototype.getClickLocation = function (targetId, pageX, pageY, targetElement, x, y) {
1189
1190
  var layerIndex = 0;
1190
1191
  var latLongValue;
@@ -1194,12 +1195,17 @@ var Maps = /** @class */ (function (_super) {
1194
1195
  layerIndex = parseFloat(targetId.split('_LayerIndex_')[1].split('_')[0]);
1195
1196
  if (this.layers[layerIndex].geometryType === 'Normal') {
1196
1197
  if (targetId.indexOf('_shapeIndex_') > -1) {
1197
- var location_2 = getMousePosition(pageX, pageY, targetElement.parentElement);
1198
- var minLongitude = Math.abs((-this.baseMapBounds.longitude.min) * this.mapLayerPanel.currentFactor);
1199
- var minLatitude = Math.abs(this.baseMapBounds.latitude.max * this.mapLayerPanel.currentFactor);
1198
+ var immediateParent = targetElement.parentElement;
1199
+ var parentElement = immediateParent.id.indexOf('_Point_Group') > -1 || immediateParent.id.indexOf('_LineString_Group') > -1
1200
+ || immediateParent.id.indexOf('_MultiLineString_Group') > -1 || immediateParent.id.indexOf('_Polygon_Group') > -1 ?
1201
+ immediateParent.parentElement : immediateParent;
1202
+ var location_2 = getMousePosition(pageX, pageY, parentElement);
1203
+ var zoomScaleValue = this.mapLayerPanel.currentFactor * this.mapScaleValue;
1204
+ var minLongitude = Math.abs((-this.baseMapBounds.longitude.min) * zoomScaleValue);
1205
+ var minLatitude = Math.abs(this.baseMapBounds.latitude.max * zoomScaleValue);
1200
1206
  latLongValue = {
1201
- latitude: Math.abs(this.baseMapBounds.latitude.max - (location_2.y / this.mapLayerPanel.currentFactor)),
1202
- longitude: Math.abs((location_2.x / this.mapLayerPanel.currentFactor) + this.baseMapBounds.longitude.min)
1207
+ latitude: Math.abs(this.baseMapBounds.latitude.max - (location_2.y / zoomScaleValue)),
1208
+ longitude: Math.abs((location_2.x / zoomScaleValue) + this.baseMapBounds.longitude.min)
1203
1209
  };
1204
1210
  if (this.baseMapBounds.longitude.min < 0 && minLongitude > location_2.x) {
1205
1211
  latLongValue.longitude = -latLongValue.longitude;