@syncfusion/ej2-maps 22.2.8 → 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 +13 -1
- 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 +75 -22
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +75 -22
- 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/tooltip.js +6 -0
- package/src/maps/user-interaction/zoom.js +9 -9
- package/src/maps/utils/helper.js +5 -4
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';
|
|
@@ -684,7 +684,7 @@ function renderTextElement(option, style, color, parent, isMinus) {
|
|
|
684
684
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
685
685
|
function convertElement(element, markerId, data, index, mapObj) {
|
|
686
686
|
var childElement = createElement('div', {
|
|
687
|
-
id: markerId
|
|
687
|
+
id: markerId, className: mapObj.element.id + '_marker_template_element'
|
|
688
688
|
});
|
|
689
689
|
childElement.style.cssText = 'position: absolute;pointer-events: auto;';
|
|
690
690
|
var elementLength = element.length;
|
|
@@ -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') {
|
|
@@ -14072,6 +14119,12 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
|
|
|
14072
14119
|
clearTimeout(this.clearTimeout);
|
|
14073
14120
|
this.clearTimeout = setTimeout(this.removeTooltip.bind(this), 2000);
|
|
14074
14121
|
}
|
|
14122
|
+
if (target.id.indexOf(this.maps.element.id) === -1) {
|
|
14123
|
+
var ancestor = target.closest('.' + this.maps.element.id + '_marker_template_element');
|
|
14124
|
+
if (!isNullOrUndefined(ancestor) && ancestor.id.indexOf('_MarkerIndex_') > -1) {
|
|
14125
|
+
target = ancestor;
|
|
14126
|
+
}
|
|
14127
|
+
}
|
|
14075
14128
|
var option;
|
|
14076
14129
|
var currentData = '';
|
|
14077
14130
|
var targetId = target.id;
|
|
@@ -14596,7 +14649,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
14596
14649
|
this.markerLineAnimation(map);
|
|
14597
14650
|
map.mapLayerPanel.generateTiles(newZoomFactor, map.tileTranslatePoint, type + 'wheel', null, position);
|
|
14598
14651
|
var element1 = document.getElementById(this.maps.element.id + '_tiles');
|
|
14599
|
-
var animationDuration = this.maps.layersCollection[0].animationDuration;
|
|
14652
|
+
var animationDuration = this.maps.layersCollection[0].animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.maps.layersCollection[0].animationDuration;
|
|
14600
14653
|
setTimeout(function () {
|
|
14601
14654
|
// if (type === 'ZoomOut') {
|
|
14602
14655
|
// element1.removeChild(element1.children[element1.childElementCount - 1]);
|
|
@@ -14857,7 +14910,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
14857
14910
|
* @returns {void}
|
|
14858
14911
|
*/
|
|
14859
14912
|
Zoom.prototype.animateTransform = function (element, animate$$1, x, y, scale) {
|
|
14860
|
-
var duration = this.currentLayer.animationDuration;
|
|
14913
|
+
var duration = this.currentLayer.animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.currentLayer.animationDuration;
|
|
14861
14914
|
if (!animate$$1 || duration === 0 || this.maps.isTileMap) {
|
|
14862
14915
|
element.setAttribute('transform', 'scale(' + (scale) + ') translate( ' + x + ' ' + y + ' )');
|
|
14863
14916
|
return;
|
|
@@ -14921,7 +14974,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
14921
14974
|
var layerIndex_1 = parseInt(currentEle.childNodes[k]['id'].split('_LayerIndex_')[1].split('_')[0], 10);
|
|
14922
14975
|
var dataIndex = parseInt(currentEle.childNodes[k]['id'].split('_dataIndex_')[1].split('_')[0], 10);
|
|
14923
14976
|
var markerIndex = parseInt(currentEle.childNodes[k]['id'].split('_MarkerIndex_')[1].split('_')[0], 10);
|
|
14924
|
-
markerAnimation = this.currentLayer.markerSettings[markerIndex].animationDuration > 0;
|
|
14977
|
+
markerAnimation = this.currentLayer.markerSettings[markerIndex].animationDuration > 0 || animationMode === 'Enable';
|
|
14925
14978
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14926
14979
|
var markerSelectionValues = this.currentLayer.markerSettings[markerIndex].dataSource[dataIndex];
|
|
14927
14980
|
for (var x_1 = 0; x_1 < this.currentLayer.markerSettings[markerIndex].initialMarkerSelection.length; x_1++) {
|
|
@@ -14932,7 +14985,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
14932
14985
|
maps.markerSelection(this.currentLayer.markerSettings[markerIndex].selectionSettings, maps, currentEle.children[k], this.currentLayer.markerSettings[markerIndex].dataSource[dataIndex]);
|
|
14933
14986
|
}
|
|
14934
14987
|
}
|
|
14935
|
-
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) {
|
|
14936
14989
|
if (maps.isTileMap) {
|
|
14937
14990
|
var groupElement = document.querySelector('.GroupElement');
|
|
14938
14991
|
if (groupElement && !(document.querySelector('.ClusterGroupElement')) && markerAnimation) {
|
|
@@ -14993,7 +15046,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
14993
15046
|
var centerY = bubbleCollection['center']['y'];
|
|
14994
15047
|
var currentX = ((centerX + x) * scale);
|
|
14995
15048
|
var currentY = ((centerY + y) * scale);
|
|
14996
|
-
var duration = this.currentLayer.animationDuration;
|
|
15049
|
+
var duration = this.currentLayer.animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.currentLayer.animationDuration;
|
|
14997
15050
|
if (!animate$$1 || duration === 0) {
|
|
14998
15051
|
childElement.setAttribute('transform', 'translate( ' + currentX + ' ' + currentY + ' )');
|
|
14999
15052
|
}
|
|
@@ -15193,7 +15246,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15193
15246
|
if (element.id.indexOf('_LabelIndex_') > -1) {
|
|
15194
15247
|
labelIndex = parseFloat(element.id.split('_LabelIndex_')[1].split('_')[0]);
|
|
15195
15248
|
}
|
|
15196
|
-
var duration = this.currentLayer.animationDuration;
|
|
15249
|
+
var duration = this.currentLayer.animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.currentLayer.animationDuration;
|
|
15197
15250
|
for (var l = 0; l < labelCollection.length; l++) {
|
|
15198
15251
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15199
15252
|
var label = labelCollection[l];
|
|
@@ -15340,7 +15393,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15340
15393
|
Number(getValueFromObject(marker$$1.dataSource[dataIndex], marker$$1.latitudeValuePath)) :
|
|
15341
15394
|
!isNullOrUndefined(marker$$1.dataSource[dataIndex]['latitude']) ? parseFloat(marker$$1.dataSource[dataIndex]['latitude']) :
|
|
15342
15395
|
!isNullOrUndefined(marker$$1.dataSource[dataIndex]['Latitude']) ? parseFloat(marker$$1.dataSource[dataIndex]['Latitude']) : 0;
|
|
15343
|
-
var duration = this.currentLayer.animationDuration;
|
|
15396
|
+
var duration = this.currentLayer.animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.currentLayer.animationDuration;
|
|
15344
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);
|
|
15345
15398
|
if (this.maps.isTileMap) {
|
|
15346
15399
|
if (type === 'Template') {
|
|
@@ -15602,7 +15655,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15602
15655
|
this.markerLineAnimation(map);
|
|
15603
15656
|
map.mapLayerPanel.generateTiles(tileZoomFactor, map.tileTranslatePoint, type);
|
|
15604
15657
|
var element1 = document.getElementById(this.maps.element.id + '_tiles');
|
|
15605
|
-
var animationDuration = this.maps.layersCollection[0].animationDuration;
|
|
15658
|
+
var animationDuration = this.maps.layersCollection[0].animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.maps.layersCollection[0].animationDuration;
|
|
15606
15659
|
setTimeout(function () {
|
|
15607
15660
|
_this.applyTransform(_this.maps, true);
|
|
15608
15661
|
if (document.getElementById(_this.maps.element.id + '_LayerIndex_1')) {
|