@syncfusion/ej2-maps 28.2.3 → 28.2.5
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/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 +4 -4
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +4 -4
- 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 +6 -6
- package/src/maps/user-interaction/zoom.js +1 -1
- package/src/maps/utils/helper.js +3 -3
|
@@ -1288,7 +1288,7 @@ function mergeSeparateCluster(sameMarkerData, maps) {
|
|
|
1288
1288
|
let markerEle;
|
|
1289
1289
|
const markerDataLength = sameMarkerData[0].data.length;
|
|
1290
1290
|
for (let i = 0; i < markerDataLength; i++) {
|
|
1291
|
-
markerEle =
|
|
1291
|
+
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']);
|
|
1292
1292
|
markerEle['style']['visibility'] = 'hidden';
|
|
1293
1293
|
if (markerEle.id.indexOf('Group') > -1) {
|
|
1294
1294
|
const marker = getElement(markerId + '_dataIndex_' + sameMarkerData[0].data[i]['index']);
|
|
@@ -1325,7 +1325,7 @@ function clusterSeparate(sameMarkerData, maps, markerElement, isDom) {
|
|
|
1325
1325
|
const clusterEleLabel = getElementFunction(getQueryConnect + '' + clusterId + '_datalabel_' + clusterIndex);
|
|
1326
1326
|
clusterEle.setAttribute('visibility', 'hidden');
|
|
1327
1327
|
clusterEleLabel.setAttribute('visibility', 'hidden');
|
|
1328
|
-
let markerEle =
|
|
1328
|
+
let markerEle = getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex + '_Group') ? getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex + '_Group') : getElementFunction(getQueryConnect + '' + markerId + '_dataIndex_' + dataIndex);
|
|
1329
1329
|
const height = markerEle.parentElement.id.indexOf('Template_Group') > -1 ? markerEle.getBoundingClientRect().height : marker.height;
|
|
1330
1330
|
let width = markerEle.parentElement.id.indexOf('Template_Group') > -1 ? markerEle.getBoundingClientRect().width : marker.width;
|
|
1331
1331
|
const centerX = +clusterEle.getAttribute('transform').split('translate(')[1].trim().split(' ')[0];
|
|
@@ -1362,7 +1362,7 @@ function clusterSeparate(sameMarkerData, maps, markerElement, isDom) {
|
|
|
1362
1362
|
const x1 = centerX + radius * Math.sin((Math.PI * 2 * newAngle) / 360);
|
|
1363
1363
|
const y1 = centerY + radius * Math.cos((Math.PI * 2 * newAngle) / 360);
|
|
1364
1364
|
path += start + 'L ' + (x1) + ' ' + y1 + ' ';
|
|
1365
|
-
markerEle =
|
|
1365
|
+
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']);
|
|
1366
1366
|
if (markerEle.parentElement.id.indexOf('Template_Group') > -1) {
|
|
1367
1367
|
markerEle['style']['transform'] = '';
|
|
1368
1368
|
markerEle['style']['left'] = maps.isTileMap ? x1 - (width / 2) + 'px' : (x1 - (width / 2) - 10) + 'px';
|
|
@@ -15377,7 +15377,6 @@ class Zoom {
|
|
|
15377
15377
|
map.markerZoomedState = map.isMarkerZoomCompleted = false;
|
|
15378
15378
|
map.zoomPersistence = map.enablePersistence;
|
|
15379
15379
|
const prevLevel = map.tileZoomLevel;
|
|
15380
|
-
const scale = map.previousScale = map.scale;
|
|
15381
15380
|
const maxZoom = map.zoomSettings.maxZoom;
|
|
15382
15381
|
const minZoom = map.zoomSettings.minZoom;
|
|
15383
15382
|
newZoomFactor = maxZoom >= newZoomFactor ? newZoomFactor : maxZoom;
|
|
@@ -15391,6 +15390,7 @@ class Zoom {
|
|
|
15391
15390
|
break;
|
|
15392
15391
|
}
|
|
15393
15392
|
if (isToolbarPerform) {
|
|
15393
|
+
const scale = map.previousScale = map.scale;
|
|
15394
15394
|
const prevTilePoint = map.tileTranslatePoint;
|
|
15395
15395
|
if ((!map.isTileMap) && ((type === 'ZoomIn' ? newZoomFactor >= minZoom && newZoomFactor <= maxZoom : newZoomFactor >= minZoom)
|
|
15396
15396
|
|| map.isReset)) {
|