@syncfusion/ej2-maps 28.2.3 → 28.2.6

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 : 28.2.3
3
+ * version : 28.2.6
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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@28.1.38",
3
+ "_id": "@syncfusion/ej2-maps@28.2.5",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-ddDdmIsdDFSF2y4GSLRiLbX48FcIJzGVQkUAd3NrW447N+Z9RdH0nsPrSKJk2EgcRy38pdqcZscqBpsvkczf2Q==",
5
+ "_integrity": "sha512-RK9fe3ccc8tEH/3oxpcbj1lWho8MvMh+6xBIXk9kLuf0U4ZxIlIVeRdY0f3y1LnC63yBqiVHR/QSSTkiY8gF9w==",
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.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-28.1.38.tgz",
27
- "_shasum": "f23c26822ead30c099493aea92cd2d97b5780651",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-28.2.5.tgz",
27
+ "_shasum": "e2baee13470664eb8db4b66f92c5673818c49276",
28
28
  "_spec": "@syncfusion/ej2-maps@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
30
30
  "author": {
@@ -35,8 +35,8 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~28.2.3",
39
- "@syncfusion/ej2-buttons": "~28.2.3",
38
+ "@syncfusion/ej2-base": "~28.2.5",
39
+ "@syncfusion/ej2-buttons": "~28.2.6",
40
40
  "@syncfusion/ej2-compression": "~28.2.3",
41
41
  "@syncfusion/ej2-data": "~28.2.3",
42
42
  "@syncfusion/ej2-file-utils": "~28.2.3",
@@ -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": "28.2.3",
96
+ "version": "28.2.6",
97
97
  "sideEffects": false
98
98
  }
@@ -1450,7 +1450,9 @@ var Legend = /** @class */ (function () {
1450
1450
  var imageSrc = null;
1451
1451
  var showLegend = isNullOrUndefined(data[_this.maps.legendSettings.showLegendPath]) ? true :
1452
1452
  data[_this.maps.legendSettings.showLegendPath];
1453
- if (marker.visible && showLegend && (!isNullOrUndefined(data['latitude'])) && (!isNullOrUndefined(data['longitude']))) {
1453
+ var latitude = !isNullOrUndefined(data['latitude']) || !isNullOrUndefined(data['Latitude']) || !isNullOrUndefined(data[marker.latitudeValuePath]);
1454
+ var longitude = !isNullOrUndefined(data['longitude']) || !isNullOrUndefined(data['Longitude']) || !isNullOrUndefined(data[marker.longitudeValuePath]);
1455
+ if (marker.visible && showLegend && latitude && longitude) {
1454
1456
  if (marker.template) {
1455
1457
  templateFn = getTemplateFunction(marker.template, _this.maps);
1456
1458
  var templateElement = templateFn(_this.maps);
@@ -66,7 +66,6 @@ var Zoom = /** @class */ (function () {
66
66
  map.markerZoomedState = map.isMarkerZoomCompleted = false;
67
67
  map.zoomPersistence = map.enablePersistence;
68
68
  var prevLevel = map.tileZoomLevel;
69
- var scale = map.previousScale = map.scale;
70
69
  var maxZoom = map.zoomSettings.maxZoom;
71
70
  var minZoom = map.zoomSettings.minZoom;
72
71
  newZoomFactor = maxZoom >= newZoomFactor ? newZoomFactor : maxZoom;
@@ -80,6 +79,7 @@ var Zoom = /** @class */ (function () {
80
79
  break;
81
80
  }
82
81
  if (isToolbarPerform) {
82
+ var scale = map.previousScale = map.scale;
83
83
  var prevTilePoint = map.tileTranslatePoint;
84
84
  if ((!map.isTileMap) && ((type === 'ZoomIn' ? newZoomFactor >= minZoom && newZoomFactor <= maxZoom : newZoomFactor >= minZoom)
85
85
  || map.isReset)) {
@@ -1365,7 +1365,7 @@ export function mergeSeparateCluster(sameMarkerData, maps) {
1365
1365
  var markerEle;
1366
1366
  var markerDataLength = sameMarkerData[0].data.length;
1367
1367
  for (var i = 0; i < markerDataLength; i++) {
1368
- markerEle = marker.shape === 'Balloon' && isNullOrUndefined(marker.template) ? getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index'] + '_Group') : getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index']);
1368
+ markerEle = getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index'] + '_Group') ? getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index'] + '_Group') : getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index']);
1369
1369
  markerEle['style']['visibility'] = 'hidden';
1370
1370
  if (markerEle.id.indexOf('Group') > -1) {
1371
1371
  var marker_1 = getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index']);
@@ -1402,7 +1402,7 @@ export function clusterSeparate(sameMarkerData, maps, markerElement, isDom) {
1402
1402
  var clusterEleLabel = getElementFunction(getQueryConnect + '' + clusterId + '_datalabel_' + clusterIndex);
1403
1403
  clusterEle.setAttribute('visibility', 'hidden');
1404
1404
  clusterEleLabel.setAttribute('visibility', 'hidden');
1405
- var markerEle = marker.shape === 'Balloon' && isNullOrUndefined(marker.template) ? getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex + '_Group') : getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex);
1405
+ var markerEle = getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex + '_Group') ? getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex + '_Group') : getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex);
1406
1406
  var height = markerEle.parentElement.id.indexOf('Template_Group') > -1 ? markerEle.getBoundingClientRect().height : marker.height;
1407
1407
  var width = markerEle.parentElement.id.indexOf('Template_Group') > -1 ? markerEle.getBoundingClientRect().width : marker.width;
1408
1408
  var centerX = +clusterEle.getAttribute('transform').split('translate(')[1].trim().split(' ')[0];
@@ -1439,7 +1439,7 @@ export function clusterSeparate(sameMarkerData, maps, markerElement, isDom) {
1439
1439
  var x1 = centerX + radius * Math.sin((Math.PI * 2 * newAngle) / 360);
1440
1440
  var y1 = centerY + radius * Math.cos((Math.PI * 2 * newAngle) / 360);
1441
1441
  path += start + 'L ' + (x1) + ' ' + y1 + ' ';
1442
- markerEle = marker.shape === 'Balloon' && isNullOrUndefined(marker.template) ? getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index'] + '_Group') : getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index']);
1442
+ markerEle = getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index'] + '_Group') ? getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index'] + '_Group') : getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index']);
1443
1443
  if (markerEle.parentElement.id.indexOf('Template_Group') > -1) {
1444
1444
  markerEle['style']['transform'] = '';
1445
1445
  markerEle['style']['left'] = maps.isTileMap ? x1 - (width / 2) + 'px' : (x1 - (width / 2) - 10) + 'px';