@syncfusion/ej2-maps 22.2.12 → 23.1.36
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 +6 -2
- 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 +68 -21
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +68 -21
- 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 +13 -13
- package/src/maps/layers/bubble.js +3 -3
- package/src/maps/layers/data-label.d.ts +1 -0
- package/src/maps/layers/data-label.js +32 -3
- package/src/maps/layers/layer-panel.js +7 -4
- package/src/maps/layers/marker.js +2 -2
- package/src/maps/maps.js +13 -2
- package/src/maps/model/base-model.d.ts +7 -0
- package/src/maps/model/base.d.ts +6 -0
- package/src/maps/model/base.js +3 -0
- package/src/maps/user-interaction/zoom.js +9 -9
- package/src/maps/utils/helper.js +4 -3
package/dist/es6/ej2-maps.es5.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Animation, Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, Fetch, Internationalization, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, compile, createElement, extend, isNullOrUndefined, merge, print, remove, setValue } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Animation, Browser, ChildProperty, Collection, Complex, Component, Event, EventHandler, Fetch, Internationalization, L10n, NotifyPropertyChanges, Property, SanitizeHtmlHelper, animationMode, compile, createElement, extend, isNullOrUndefined, merge, print, remove, setValue } from '@syncfusion/ej2-base';
|
|
2
2
|
import { SvgRenderer, Tooltip } from '@syncfusion/ej2-svg-base';
|
|
3
3
|
import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
4
4
|
import { PdfBitmap, PdfDocument, PdfPageOrientation } from '@syncfusion/ej2-pdf-export';
|
|
@@ -1276,7 +1276,7 @@ function marker(eventArgs, markerSettings, markerData, dataIndex, location, tran
|
|
|
1276
1276
|
markerCollection.appendChild(ele);
|
|
1277
1277
|
var element = (markerData.length - 1) === dataIndex ? 'marker' : null;
|
|
1278
1278
|
var markerPoint = new Point(x, y);
|
|
1279
|
-
if (markerSettings.animationDuration > 0) {
|
|
1279
|
+
if (markerSettings.animationDuration > 0 || animationMode === 'Enable') {
|
|
1280
1280
|
elementAnimate(ele, markerSettings.animationDelay, markerSettings.animationDuration, markerPoint, maps, element);
|
|
1281
1281
|
}
|
|
1282
1282
|
return markerCollection;
|
|
@@ -2635,7 +2635,7 @@ function elementAnimate(element, delay, duration, point, maps, ele, radius) {
|
|
|
2635
2635
|
var height = 0;
|
|
2636
2636
|
var transform = element.getAttribute('transform') || '';
|
|
2637
2637
|
new Animation({}).animate(element, {
|
|
2638
|
-
duration: duration,
|
|
2638
|
+
duration: (duration === 0 && animationMode === 'Enable') ? 1000 : duration,
|
|
2639
2639
|
delay: delay,
|
|
2640
2640
|
progress: function (args) {
|
|
2641
2641
|
if (args.timeStamp > args.delay) {
|
|
@@ -3226,6 +3226,7 @@ function animate(element, delay, duration, process, end) {
|
|
|
3226
3226
|
// eslint-disable-next-line prefer-const
|
|
3227
3227
|
var clearAnimation;
|
|
3228
3228
|
var markerStyle = 'visibility:visible';
|
|
3229
|
+
duration = animationMode === "Disable" ? 0 : duration;
|
|
3229
3230
|
var startAnimation = function (timestamp) {
|
|
3230
3231
|
if (!start) {
|
|
3231
3232
|
start = timestamp;
|
|
@@ -4949,6 +4950,9 @@ var DataLabelSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
4949
4950
|
__decorate$1([
|
|
4950
4951
|
Property('')
|
|
4951
4952
|
], DataLabelSettings.prototype, "template", void 0);
|
|
4953
|
+
__decorate$1([
|
|
4954
|
+
Property(0)
|
|
4955
|
+
], DataLabelSettings.prototype, "animationDuration", void 0);
|
|
4952
4956
|
return DataLabelSettings;
|
|
4953
4957
|
}(ChildProperty));
|
|
4954
4958
|
/**
|
|
@@ -5282,7 +5286,7 @@ var Marker = /** @__PURE__ @class */ (function () {
|
|
|
5282
5286
|
var markerID = maps.element.id + '_LayerIndex_' + layerIndex + '_MarkerIndex_'
|
|
5283
5287
|
+ markerIndex + '_dataIndex_' + dataIndex;
|
|
5284
5288
|
var location_1 = (maps.isTileMap) ? convertTileLatLongToPoint(new MapLocation(lng, lat), factor, maps.tileTranslatePoint, true) : convertGeoToPoint(lat, lng, factor, currentLayer, maps);
|
|
5285
|
-
var animate$$1 = currentLayer.animationDuration !== 0 || isNullOrUndefined(maps.zoomModule);
|
|
5289
|
+
var animate$$1 = (currentLayer.animationDuration !== 0 || animationMode === 'Enable') || isNullOrUndefined(maps.zoomModule);
|
|
5286
5290
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5287
5291
|
var translate = (maps.isTileMap) ? (currentLayer.type === 'SubLayer' && isNullOrUndefined(maps.zoomModule)) ? location_1 = convertTileLatLongToPoint(new MapLocation(lng, lat), maps.tileZoomLevel, maps.tileTranslatePoint, true) : new Object() :
|
|
5288
5292
|
!isNullOrUndefined(maps.zoomModule) && maps.zoomSettings.zoomFactor > 1 ?
|
|
@@ -7153,7 +7157,8 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
7153
7157
|
var childNode;
|
|
7154
7158
|
this.mapObject.translateType = 'layer';
|
|
7155
7159
|
if (!isNullOrUndefined(this.mapObject.baseMapRectBounds)) {
|
|
7156
|
-
var duration = this.currentLayer.animationDuration
|
|
7160
|
+
var duration = animationMode === 'Disable' ? 0 : (this.currentLayer.animationDuration === 0 && animationMode === 'Enable') ?
|
|
7161
|
+
1000 : this.currentLayer.animationDuration;
|
|
7157
7162
|
var animate$$1 = duration !== 0 || isNullOrUndefined(this.mapObject.zoomModule);
|
|
7158
7163
|
this.mapObject.baseTranslatePoint = this.mapObject.zoomTranslatePoint;
|
|
7159
7164
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -7412,7 +7417,8 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
7412
7417
|
var timeOut;
|
|
7413
7418
|
if (!isNullOrUndefined(type) && type !== 'Pan') {
|
|
7414
7419
|
this.tileAnimation(type, x, y);
|
|
7415
|
-
timeOut = this.mapObject.layersCollection[0].animationDuration
|
|
7420
|
+
timeOut = animationMode === 'Disable' ? 0 : (this.mapObject.layersCollection[0].animationDuration === 0 &&
|
|
7421
|
+
animationMode === 'Enable') ? 1000 : this.mapObject.layersCollection[0].animationDuration;
|
|
7416
7422
|
}
|
|
7417
7423
|
else {
|
|
7418
7424
|
timeOut = 0;
|
|
@@ -7547,7 +7553,8 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
7547
7553
|
scaleValue = zoomType.indexOf('ZoomOut') === 0 ? '0.5' : '0.2';
|
|
7548
7554
|
}
|
|
7549
7555
|
if (!isNullOrUndefined(animatedTiles)) {
|
|
7550
|
-
animatedTiles.style.transition = this.mapObject.layersCollection[0].animationDuration
|
|
7556
|
+
animatedTiles.style.transition = animationMode === 'Disable' ? '0ms' : (this.mapObject.layersCollection[0].animationDuration === 0
|
|
7557
|
+
&& animationMode === 'Enable') ? '1000ms' : this.mapObject.layersCollection[0].animationDuration + 'ms';
|
|
7551
7558
|
animatedTiles.style.transform = 'translate(' + translateX + 'px, ' + translateY + 'px) scale(' + scaleValue + ')';
|
|
7552
7559
|
}
|
|
7553
7560
|
};
|
|
@@ -8133,7 +8140,18 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8133
8140
|
this.serverProcess['request']++;
|
|
8134
8141
|
var fetchApiModule = new Fetch(localAjax.dataOptions, localAjax.type, localAjax.contentType);
|
|
8135
8142
|
fetchApiModule.onSuccess = function (args) {
|
|
8136
|
-
|
|
8143
|
+
if (!isNullOrUndefined(args.type) && args.type === 'application/octet-stream') {
|
|
8144
|
+
var reader_1 = new FileReader();
|
|
8145
|
+
var map_1 = _this;
|
|
8146
|
+
reader_1.onload = function (data) {
|
|
8147
|
+
args = JSON.parse(reader_1.result.toString());
|
|
8148
|
+
map_1.processResponseJsonData('Fetch', args, layer, type);
|
|
8149
|
+
};
|
|
8150
|
+
reader_1.readAsText(args);
|
|
8151
|
+
}
|
|
8152
|
+
else {
|
|
8153
|
+
_this.processResponseJsonData('Fetch', args, layer, type);
|
|
8154
|
+
}
|
|
8137
8155
|
};
|
|
8138
8156
|
fetchApiModule.send(localAjax.sendData);
|
|
8139
8157
|
};
|
|
@@ -9125,7 +9143,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
9125
9143
|
if (e.type.indexOf('touch') !== -1 && e.changedTouches) {
|
|
9126
9144
|
this.mouseDownEvent = { x: e.changedTouches[0].pageX, y: e.changedTouches[0].pageY };
|
|
9127
9145
|
}
|
|
9128
|
-
if (this.isDevice) {
|
|
9146
|
+
if (this.isDevice && !isNullOrUndefined(this.mapsTooltipModule)) {
|
|
9129
9147
|
this.mapsTooltipModule.renderTooltip(e);
|
|
9130
9148
|
}
|
|
9131
9149
|
var rect = this.element.getBoundingClientRect();
|
|
@@ -10559,7 +10577,7 @@ var Bubble = /** @__PURE__ @class */ (function () {
|
|
|
10559
10577
|
});
|
|
10560
10578
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10561
10579
|
var translate;
|
|
10562
|
-
var animate$$1 = layer.animationDuration !== 0 || isNullOrUndefined(_this.maps.zoomModule);
|
|
10580
|
+
var animate$$1 = (layer.animationDuration !== 0 || animationMode === 'Enable') || isNullOrUndefined(_this.maps.zoomModule);
|
|
10563
10581
|
if (_this.maps.zoomSettings.zoomFactor > 1 && !isNullOrUndefined(_this.maps.zoomModule) && !_this.maps.isTileMap) {
|
|
10564
10582
|
translate = getZoomTranslate(_this.maps, layer, animate$$1);
|
|
10565
10583
|
}
|
|
@@ -10580,7 +10598,7 @@ var Bubble = /** @__PURE__ @class */ (function () {
|
|
|
10580
10598
|
else {
|
|
10581
10599
|
radius = 0;
|
|
10582
10600
|
}
|
|
10583
|
-
if (bubbleSettings.animationDuration > 0) {
|
|
10601
|
+
if (bubbleSettings.animationDuration > 0 || animationMode === 'Enable') {
|
|
10584
10602
|
elementAnimate(bubbleElement, bubbleSettings.animationDelay, bubbleSettings.animationDuration, position, _this.maps, bubble, radius);
|
|
10585
10603
|
}
|
|
10586
10604
|
});
|
|
@@ -10753,6 +10771,7 @@ var DataLabel = /** @__PURE__ @class */ (function () {
|
|
|
10753
10771
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10754
10772
|
var shapeData = shape;
|
|
10755
10773
|
var element;
|
|
10774
|
+
var rect;
|
|
10756
10775
|
var text = '';
|
|
10757
10776
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10758
10777
|
var datasrcObj;
|
|
@@ -10776,7 +10795,7 @@ var DataLabel = /** @__PURE__ @class */ (function () {
|
|
|
10776
10795
|
layer.shapePropertyPath : [layer.shapePropertyPath]);
|
|
10777
10796
|
var propertyPath;
|
|
10778
10797
|
var isPoint = false;
|
|
10779
|
-
var animate$$1 = layer.animationDuration !== 0 || isNullOrUndefined(this.maps.zoomModule);
|
|
10798
|
+
var animate$$1 = (layer.animationDuration !== 0 || animationMode === 'Enable') || isNullOrUndefined(this.maps.zoomModule);
|
|
10780
10799
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10781
10800
|
var translate = (this.maps.isTileMap) ? new Object() : ((this.maps.zoomSettings.zoomFactor > 1 &&
|
|
10782
10801
|
!isNullOrUndefined(this.maps.zoomModule)) ? getZoomTranslate(this.maps, layer, animate$$1) :
|
|
@@ -11035,11 +11054,13 @@ var DataLabel = /** @__PURE__ @class */ (function () {
|
|
|
11035
11054
|
}
|
|
11036
11055
|
border.opacity = isNullOrUndefined(border.opacity) ? opacity : border.opacity;
|
|
11037
11056
|
var rectOptions = new RectOption(_this.maps.element.id + '_LayerIndex_' + layerIndex + '_shapeIndex_' + index + '_rectIndex_' + index, fill, border, opacity, new Rect((x + labelArgs.offsetX), (y + labelArgs.offsetY), textSize['width'], textSize['height']), rx, ry);
|
|
11038
|
-
|
|
11057
|
+
rect = _this.maps.renderer.drawRectangle(rectOptions);
|
|
11058
|
+
rect.setAttribute('visibility', layer.dataLabelSettings.animationDuration > 0 || animationMode === 'Enable' ? 'hidden' : 'visibile');
|
|
11039
11059
|
group.appendChild(rect);
|
|
11040
11060
|
}
|
|
11041
11061
|
}
|
|
11042
11062
|
element = renderTextElement(options, style, style.color || _this.maps.themeStyle.dataLabelFontColor, group);
|
|
11063
|
+
element.setAttribute('visibility', layer.dataLabelSettings.animationDuration > 0 || animationMode === 'Enable' ? 'hidden' : 'visibile');
|
|
11043
11064
|
if (zoomLabelsPosition && scaleZoomValue > 1 && !_this.maps.zoomNotApplied) {
|
|
11044
11065
|
element.setAttribute('transform', 'translate( ' + ((location['x'] + labelArgs.offsetX)) + ' '
|
|
11045
11066
|
+ (((location['y'] + labelArgs.offsetY))) + ' )');
|
|
@@ -11065,9 +11086,35 @@ var DataLabel = /** @__PURE__ @class */ (function () {
|
|
|
11065
11086
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11066
11087
|
_this.maps.renderReactTemplates();
|
|
11067
11088
|
}
|
|
11089
|
+
if (layer.dataLabelSettings.animationDuration > 0 || animationMode === 'Enable') {
|
|
11090
|
+
if (!isNullOrUndefined(element)) {
|
|
11091
|
+
_this.datalabelAnimate(element, dataLabelSettings.animationDuration, style.opacity, false);
|
|
11092
|
+
if (!isNullOrUndefined(rect)) {
|
|
11093
|
+
_this.datalabelAnimate(rect, dataLabelSettings.animationDuration, dataLabelSettings.opacity, true);
|
|
11094
|
+
}
|
|
11095
|
+
}
|
|
11096
|
+
}
|
|
11068
11097
|
});
|
|
11069
11098
|
}
|
|
11070
11099
|
};
|
|
11100
|
+
DataLabel.prototype.datalabelAnimate = function (element, duration, opacity, isRect) {
|
|
11101
|
+
var height = 0;
|
|
11102
|
+
new Animation({}).animate(element, {
|
|
11103
|
+
duration: (duration === 0 && animationMode === 'Enable') ? 1000 : duration,
|
|
11104
|
+
delay: 0,
|
|
11105
|
+
progress: function (args) {
|
|
11106
|
+
if (args.timeStamp > args.delay) {
|
|
11107
|
+
height = ((args.timeStamp - args.delay) / args.duration);
|
|
11108
|
+
element.setAttribute('style', 'user-select: none; visibility: visible;');
|
|
11109
|
+
element.setAttribute(isRect ? 'fill-opacity' : 'opacity', (opacity * height).toString());
|
|
11110
|
+
}
|
|
11111
|
+
},
|
|
11112
|
+
end: function (model) {
|
|
11113
|
+
element.style.visibility = 'visible';
|
|
11114
|
+
element.setAttribute(isRect ? 'fill-opacity' : 'opacity', opacity.toString());
|
|
11115
|
+
}
|
|
11116
|
+
});
|
|
11117
|
+
};
|
|
11071
11118
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11072
11119
|
DataLabel.prototype.getPoint = function (shapes, points) {
|
|
11073
11120
|
if (shapes['type'] === 'MultiLineString') {
|
|
@@ -14602,7 +14649,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
14602
14649
|
this.markerLineAnimation(map);
|
|
14603
14650
|
map.mapLayerPanel.generateTiles(newZoomFactor, map.tileTranslatePoint, type + 'wheel', null, position);
|
|
14604
14651
|
var element1 = document.getElementById(this.maps.element.id + '_tiles');
|
|
14605
|
-
var animationDuration = this.maps.layersCollection[0].animationDuration;
|
|
14652
|
+
var animationDuration = this.maps.layersCollection[0].animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.maps.layersCollection[0].animationDuration;
|
|
14606
14653
|
setTimeout(function () {
|
|
14607
14654
|
// if (type === 'ZoomOut') {
|
|
14608
14655
|
// element1.removeChild(element1.children[element1.childElementCount - 1]);
|
|
@@ -14863,7 +14910,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
14863
14910
|
* @returns {void}
|
|
14864
14911
|
*/
|
|
14865
14912
|
Zoom.prototype.animateTransform = function (element, animate$$1, x, y, scale) {
|
|
14866
|
-
var duration = this.currentLayer.animationDuration;
|
|
14913
|
+
var duration = this.currentLayer.animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.currentLayer.animationDuration;
|
|
14867
14914
|
if (!animate$$1 || duration === 0 || this.maps.isTileMap) {
|
|
14868
14915
|
element.setAttribute('transform', 'scale(' + (scale) + ') translate( ' + x + ' ' + y + ' )');
|
|
14869
14916
|
return;
|
|
@@ -14927,7 +14974,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
14927
14974
|
var layerIndex_1 = parseInt(currentEle.childNodes[k]['id'].split('_LayerIndex_')[1].split('_')[0], 10);
|
|
14928
14975
|
var dataIndex = parseInt(currentEle.childNodes[k]['id'].split('_dataIndex_')[1].split('_')[0], 10);
|
|
14929
14976
|
var markerIndex = parseInt(currentEle.childNodes[k]['id'].split('_MarkerIndex_')[1].split('_')[0], 10);
|
|
14930
|
-
markerAnimation = this.currentLayer.markerSettings[markerIndex].animationDuration > 0;
|
|
14977
|
+
markerAnimation = this.currentLayer.markerSettings[markerIndex].animationDuration > 0 || animationMode === 'Enable';
|
|
14931
14978
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14932
14979
|
var markerSelectionValues = this.currentLayer.markerSettings[markerIndex].dataSource[dataIndex];
|
|
14933
14980
|
for (var x_1 = 0; x_1 < this.currentLayer.markerSettings[markerIndex].initialMarkerSelection.length; x_1++) {
|
|
@@ -14938,7 +14985,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
14938
14985
|
maps.markerSelection(this.currentLayer.markerSettings[markerIndex].selectionSettings, maps, currentEle.children[k], this.currentLayer.markerSettings[markerIndex].dataSource[dataIndex]);
|
|
14939
14986
|
}
|
|
14940
14987
|
}
|
|
14941
|
-
if ((this.currentLayer.animationDuration > 0 || (maps.layersCollection[0].animationDuration > 0 && this.currentLayer.type === 'SubLayer')) && !this.isPanning) {
|
|
14988
|
+
if (((this.currentLayer.animationDuration > 0 || animationMode === 'Enable') || ((maps.layersCollection[0].animationDuration > 0 || animationMode === 'Enable') && this.currentLayer.type === 'SubLayer')) && !this.isPanning) {
|
|
14942
14989
|
if (maps.isTileMap) {
|
|
14943
14990
|
var groupElement = document.querySelector('.GroupElement');
|
|
14944
14991
|
if (groupElement && !(document.querySelector('.ClusterGroupElement')) && markerAnimation) {
|
|
@@ -14999,7 +15046,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
14999
15046
|
var centerY = bubbleCollection['center']['y'];
|
|
15000
15047
|
var currentX = ((centerX + x) * scale);
|
|
15001
15048
|
var currentY = ((centerY + y) * scale);
|
|
15002
|
-
var duration = this.currentLayer.animationDuration;
|
|
15049
|
+
var duration = this.currentLayer.animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.currentLayer.animationDuration;
|
|
15003
15050
|
if (!animate$$1 || duration === 0) {
|
|
15004
15051
|
childElement.setAttribute('transform', 'translate( ' + currentX + ' ' + currentY + ' )');
|
|
15005
15052
|
}
|
|
@@ -15199,7 +15246,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15199
15246
|
if (element.id.indexOf('_LabelIndex_') > -1) {
|
|
15200
15247
|
labelIndex = parseFloat(element.id.split('_LabelIndex_')[1].split('_')[0]);
|
|
15201
15248
|
}
|
|
15202
|
-
var duration = this.currentLayer.animationDuration;
|
|
15249
|
+
var duration = this.currentLayer.animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.currentLayer.animationDuration;
|
|
15203
15250
|
for (var l = 0; l < labelCollection.length; l++) {
|
|
15204
15251
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15205
15252
|
var label = labelCollection[l];
|
|
@@ -15346,7 +15393,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15346
15393
|
Number(getValueFromObject(marker$$1.dataSource[dataIndex], marker$$1.latitudeValuePath)) :
|
|
15347
15394
|
!isNullOrUndefined(marker$$1.dataSource[dataIndex]['latitude']) ? parseFloat(marker$$1.dataSource[dataIndex]['latitude']) :
|
|
15348
15395
|
!isNullOrUndefined(marker$$1.dataSource[dataIndex]['Latitude']) ? parseFloat(marker$$1.dataSource[dataIndex]['Latitude']) : 0;
|
|
15349
|
-
var duration = this.currentLayer.animationDuration;
|
|
15396
|
+
var duration = this.currentLayer.animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.currentLayer.animationDuration;
|
|
15350
15397
|
var location_2 = (this.maps.isTileMap) ? convertTileLatLongToPoint(new Point(lng, lat), this.maps.tileZoomLevel, this.maps.tileTranslatePoint, true) : convertGeoToPoint(lat, lng, factor, layer, this.maps);
|
|
15351
15398
|
if (this.maps.isTileMap) {
|
|
15352
15399
|
if (type === 'Template') {
|
|
@@ -15608,7 +15655,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15608
15655
|
this.markerLineAnimation(map);
|
|
15609
15656
|
map.mapLayerPanel.generateTiles(tileZoomFactor, map.tileTranslatePoint, type);
|
|
15610
15657
|
var element1 = document.getElementById(this.maps.element.id + '_tiles');
|
|
15611
|
-
var animationDuration = this.maps.layersCollection[0].animationDuration;
|
|
15658
|
+
var animationDuration = this.maps.layersCollection[0].animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.maps.layersCollection[0].animationDuration;
|
|
15612
15659
|
setTimeout(function () {
|
|
15613
15660
|
_this.applyTransform(_this.maps, true);
|
|
15614
15661
|
if (document.getElementById(_this.maps.element.id + '_LayerIndex_1')) {
|