@syncfusion/ej2-maps 24.1.47 → 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.
- package/CHANGELOG.md +9 -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 +12 -6
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +12 -6
- 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 +2 -1
- package/src/maps/maps.js +12 -6
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.
|
|
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.
|
|
3
|
+
"_id": "@syncfusion/ej2-maps@24.2.3",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
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.
|
|
27
|
-
"_shasum": "
|
|
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": {
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~24.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~24.
|
|
40
|
-
"@syncfusion/ej2-compression": "~24.
|
|
41
|
-
"@syncfusion/ej2-data": "~24.
|
|
42
|
-
"@syncfusion/ej2-file-utils": "~24.
|
|
43
|
-
"@syncfusion/ej2-pdf-export": "~24.
|
|
44
|
-
"@syncfusion/ej2-svg-base": "~24.
|
|
38
|
+
"@syncfusion/ej2-base": "~24.2.3",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~24.2.3",
|
|
40
|
+
"@syncfusion/ej2-compression": "~24.2.3",
|
|
41
|
+
"@syncfusion/ej2-data": "~24.2.3",
|
|
42
|
+
"@syncfusion/ej2-file-utils": "~24.2.3",
|
|
43
|
+
"@syncfusion/ej2-pdf-export": "~24.2.3",
|
|
44
|
+
"@syncfusion/ej2-svg-base": "~24.2.3"
|
|
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": "24.
|
|
96
|
+
"version": "24.2.4",
|
|
97
97
|
"sideEffects": false
|
|
98
98
|
}
|
package/src/maps/maps.d.ts
CHANGED
|
@@ -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
|
|
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.
|
|
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
|
|
1198
|
-
var
|
|
1199
|
-
|
|
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 /
|
|
1202
|
-
longitude: Math.abs((location_2.x /
|
|
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;
|