@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.
- 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 +7 -5
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +7 -5
- 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 +7 -7
- package/src/maps/layers/legend.js +3 -1
- 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';
|
|
@@ -13323,7 +13323,9 @@ class Legend {
|
|
|
13323
13323
|
let imageSrc = null;
|
|
13324
13324
|
const showLegend = isNullOrUndefined(data[this.maps.legendSettings.showLegendPath]) ? true :
|
|
13325
13325
|
data[this.maps.legendSettings.showLegendPath];
|
|
13326
|
-
|
|
13326
|
+
const latitude = !isNullOrUndefined(data['latitude']) || !isNullOrUndefined(data['Latitude']) || !isNullOrUndefined(data[marker.latitudeValuePath]);
|
|
13327
|
+
const longitude = !isNullOrUndefined(data['longitude']) || !isNullOrUndefined(data['Longitude']) || !isNullOrUndefined(data[marker.longitudeValuePath]);
|
|
13328
|
+
if (marker.visible && showLegend && latitude && longitude) {
|
|
13327
13329
|
if (marker.template) {
|
|
13328
13330
|
templateFn = getTemplateFunction(marker.template, this.maps);
|
|
13329
13331
|
const templateElement = templateFn(this.maps);
|
|
@@ -15377,7 +15379,6 @@ class Zoom {
|
|
|
15377
15379
|
map.markerZoomedState = map.isMarkerZoomCompleted = false;
|
|
15378
15380
|
map.zoomPersistence = map.enablePersistence;
|
|
15379
15381
|
const prevLevel = map.tileZoomLevel;
|
|
15380
|
-
const scale = map.previousScale = map.scale;
|
|
15381
15382
|
const maxZoom = map.zoomSettings.maxZoom;
|
|
15382
15383
|
const minZoom = map.zoomSettings.minZoom;
|
|
15383
15384
|
newZoomFactor = maxZoom >= newZoomFactor ? newZoomFactor : maxZoom;
|
|
@@ -15391,6 +15392,7 @@ class Zoom {
|
|
|
15391
15392
|
break;
|
|
15392
15393
|
}
|
|
15393
15394
|
if (isToolbarPerform) {
|
|
15395
|
+
const scale = map.previousScale = map.scale;
|
|
15394
15396
|
const prevTilePoint = map.tileTranslatePoint;
|
|
15395
15397
|
if ((!map.isTileMap) && ((type === 'ZoomIn' ? newZoomFactor >= minZoom && newZoomFactor <= maxZoom : newZoomFactor >= minZoom)
|
|
15396
15398
|
|| map.isReset)) {
|