@syncfusion/ej2-maps 28.1.33 → 28.1.38
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/README.md +1 -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 +22 -18
- package/dist/es6/ej2-maps.es2015.js.map +1 -1
- package/dist/es6/ej2-maps.es5.js +23 -18
- 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 +8 -8
- package/src/maps/layers/layer-panel.js +1 -1
- package/src/maps/maps.js +1 -1
- package/src/maps/user-interaction/zoom.d.ts +4 -2
- package/src/maps/user-interaction/zoom.js +21 -16
package/dist/es6/ej2-maps.es5.js
CHANGED
|
@@ -6572,7 +6572,7 @@ var LayerPanel = /** @__PURE__ @class */ (function () {
|
|
|
6572
6572
|
proxy.renderTileLayer(proxy, layer, layerIndex, bing);
|
|
6573
6573
|
this.mapObject.arrangeTemplate();
|
|
6574
6574
|
if (this.mapObject.zoomModule && (this.mapObject.previousScale !== this.mapObject.scale)) {
|
|
6575
|
-
this.mapObject.zoomModule.applyTransform(this.mapObject, true);
|
|
6575
|
+
this.mapObject.zoomModule.applyTransform(this.mapObject, false, true);
|
|
6576
6576
|
}
|
|
6577
6577
|
};
|
|
6578
6578
|
LayerPanel.prototype.bubbleCalculation = function (bubbleSettings, range) {
|
|
@@ -8471,7 +8471,7 @@ var Maps = /** @__PURE__ @class */ (function (_super) {
|
|
|
8471
8471
|
}
|
|
8472
8472
|
}
|
|
8473
8473
|
if (this.zoomModule && ((this.previousScale !== this.scale) || this.zoomNotApplied || this.isZoomByPosition)) {
|
|
8474
|
-
this.zoomModule.applyTransform(this, true);
|
|
8474
|
+
this.zoomModule.applyTransform(this, false, true);
|
|
8475
8475
|
}
|
|
8476
8476
|
}
|
|
8477
8477
|
};
|
|
@@ -15715,11 +15715,13 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15715
15715
|
* @param {Point} position - Specifies the position.
|
|
15716
15716
|
* @param {number} newZoomFactor - Specifies the zoom factor.
|
|
15717
15717
|
* @param {string} type - Specifies the type.
|
|
15718
|
+
* @param {boolean} isMouseWheel - Indicates whether the zoom operation was triggered by the mouse wheel.
|
|
15718
15719
|
* @returns {void}
|
|
15719
15720
|
* @private
|
|
15720
15721
|
*/
|
|
15721
|
-
Zoom.prototype.performZooming = function (position, newZoomFactor, type) {
|
|
15722
|
+
Zoom.prototype.performZooming = function (position, newZoomFactor, type, isMouseWheel) {
|
|
15722
15723
|
var _this = this;
|
|
15724
|
+
if (isMouseWheel === void 0) { isMouseWheel = false; }
|
|
15723
15725
|
var map = this.maps;
|
|
15724
15726
|
map.previousProjection = newZoomFactor <= 1.5 ? undefined : map.projectionType;
|
|
15725
15727
|
map.defaultState = false;
|
|
@@ -15778,7 +15780,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15778
15780
|
map.scale = map.mapScaleValue = map.previousScale;
|
|
15779
15781
|
}
|
|
15780
15782
|
else {
|
|
15781
|
-
this.applyTransform(map);
|
|
15783
|
+
this.applyTransform(map, isMouseWheel);
|
|
15782
15784
|
}
|
|
15783
15785
|
}
|
|
15784
15786
|
else if ((map.isTileMap) && (newZoomFactor >= minZoom && newZoomFactor <= maxZoom)) {
|
|
@@ -15822,7 +15824,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15822
15824
|
// element1 = element1;
|
|
15823
15825
|
// }
|
|
15824
15826
|
// }
|
|
15825
|
-
_this.applyTransform(_this.maps);
|
|
15827
|
+
_this.applyTransform(_this.maps, isMouseWheel);
|
|
15826
15828
|
if (document.getElementById(_this.maps.element.id + '_LayerIndex_1')) {
|
|
15827
15829
|
document.getElementById(_this.maps.element.id + '_LayerIndex_1').style.display = 'block';
|
|
15828
15830
|
}
|
|
@@ -15948,7 +15950,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
15948
15950
|
}
|
|
15949
15951
|
if (!isZoomCancelled) {
|
|
15950
15952
|
map.mapScaleValue = zoomCalculationFactor;
|
|
15951
|
-
this.applyTransform(map, true);
|
|
15953
|
+
this.applyTransform(map, false, true);
|
|
15952
15954
|
this.maps.zoomNotApplied = false;
|
|
15953
15955
|
this.zoomingRect = null;
|
|
15954
15956
|
}
|
|
@@ -16162,12 +16164,13 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
16162
16164
|
};
|
|
16163
16165
|
/**
|
|
16164
16166
|
* @param {Maps} maps - Specifies the Map control
|
|
16167
|
+
* @param {boolean} isMouseWheel - Indicates whether the zoom operation was triggered by the mouse wheel.
|
|
16165
16168
|
* @param {boolean} animate - Specifies the animation is available or not
|
|
16166
16169
|
* @param {boolean} isPanning - Specifies that it is panning or not
|
|
16167
16170
|
* @returns {void}
|
|
16168
16171
|
* @private
|
|
16169
16172
|
*/
|
|
16170
|
-
Zoom.prototype.applyTransform = function (maps, animate, isPanning) {
|
|
16173
|
+
Zoom.prototype.applyTransform = function (maps, isMouseWheel, animate, isPanning) {
|
|
16171
16174
|
var _this = this;
|
|
16172
16175
|
var layerIndex;
|
|
16173
16176
|
this.templateCount = 0;
|
|
@@ -16259,8 +16262,10 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
16259
16262
|
}
|
|
16260
16263
|
if (((_this.currentLayer.animationDuration > 0 || animationMode === 'Enable') || ((maps.layersCollection[0].animationDuration > 0 || animationMode === 'Enable') && _this.currentLayer.type === 'SubLayer')) && !_this.isPanModeEnabled) {
|
|
16261
16264
|
if (!maps.isTileMap) {
|
|
16262
|
-
markerStyle = 'visibility:hidden';
|
|
16263
|
-
|
|
16265
|
+
markerStyle = isMouseWheel ? markerStyle : 'visibility:hidden';
|
|
16266
|
+
if (!isNullOrUndefined(markerStyle)) {
|
|
16267
|
+
currentEle.style.cssText = markerStyle;
|
|
16268
|
+
}
|
|
16264
16269
|
}
|
|
16265
16270
|
}
|
|
16266
16271
|
});
|
|
@@ -16847,15 +16852,15 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
16847
16852
|
if (!panArgs.cancel) {
|
|
16848
16853
|
if (panningXDirection && panningYDirection) {
|
|
16849
16854
|
map.translatePoint = new Point(x, y);
|
|
16850
|
-
this.applyTransform(map, false, true);
|
|
16855
|
+
this.applyTransform(map, false, false, true);
|
|
16851
16856
|
}
|
|
16852
16857
|
else if (panningXDirection) {
|
|
16853
16858
|
map.translatePoint = new Point(x, map.translatePoint.y);
|
|
16854
|
-
this.applyTransform(map, false, true);
|
|
16859
|
+
this.applyTransform(map, false, false, true);
|
|
16855
16860
|
}
|
|
16856
16861
|
else if (panningYDirection) {
|
|
16857
16862
|
map.translatePoint = new Point(map.translatePoint.x, y);
|
|
16858
|
-
this.applyTransform(map, false, true);
|
|
16863
|
+
this.applyTransform(map, false, false, true);
|
|
16859
16864
|
}
|
|
16860
16865
|
}
|
|
16861
16866
|
this.maps.zoomNotApplied = false;
|
|
@@ -16884,7 +16889,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
16884
16889
|
};
|
|
16885
16890
|
map.trigger(pan, panArgs);
|
|
16886
16891
|
map.mapLayerPanel.generateTiles(map.tileZoomLevel, map.tileTranslatePoint, 'Pan');
|
|
16887
|
-
this.applyTransform(map, false, true);
|
|
16892
|
+
this.applyTransform(map, false, false, true);
|
|
16888
16893
|
map.translatePoint.x = (map.tileTranslatePoint.x - xDifference) / map.scale;
|
|
16889
16894
|
map.translatePoint.y = (map.tileTranslatePoint.y - yDifference) / map.scale;
|
|
16890
16895
|
}
|
|
@@ -16955,7 +16960,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
16955
16960
|
map.scale = map.previousScale;
|
|
16956
16961
|
}
|
|
16957
16962
|
else {
|
|
16958
|
-
this.applyTransform(map, true);
|
|
16963
|
+
this.applyTransform(map, false, true);
|
|
16959
16964
|
}
|
|
16960
16965
|
}
|
|
16961
16966
|
else if ((map.isTileMap) && ((zoomFactor >= minZoom && zoomFactor <= maxZoom) || map.isReset)) {
|
|
@@ -16992,7 +16997,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
16992
16997
|
map.mapLayerPanel.generateTiles(tileZoomFactor, map.tileTranslatePoint, type);
|
|
16993
16998
|
var animationDuration = this.maps.layersCollection[0].animationDuration === 0 && animationMode === 'Enable' ? 1000 : this.maps.layersCollection[0].animationDuration;
|
|
16994
16999
|
setTimeout(function () {
|
|
16995
|
-
_this.applyTransform(_this.maps, true);
|
|
17000
|
+
_this.applyTransform(_this.maps, false, true);
|
|
16996
17001
|
if (document.getElementById(_this.maps.element.id + '_LayerIndex_1')) {
|
|
16997
17002
|
document.getElementById(_this.maps.element.id + '_LayerIndex_1').style.display = 'block';
|
|
16998
17003
|
}
|
|
@@ -17605,11 +17610,11 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
17605
17610
|
map.staticMapZoom = map.tileZoomLevel;
|
|
17606
17611
|
if (map.staticMapZoom > 0 && map.staticMapZoom < staticMaxZoomLevel) {
|
|
17607
17612
|
map.staticMapZoom += 1;
|
|
17608
|
-
this.performZooming(position, (value + delta), direction);
|
|
17613
|
+
this.performZooming(position, (value + delta), direction, true);
|
|
17609
17614
|
}
|
|
17610
17615
|
}
|
|
17611
17616
|
else {
|
|
17612
|
-
this.performZooming(position, (value + delta), direction);
|
|
17617
|
+
this.performZooming(position, (value + delta), direction, true);
|
|
17613
17618
|
}
|
|
17614
17619
|
}
|
|
17615
17620
|
else {
|
|
@@ -17623,7 +17628,7 @@ var Zoom = /** @__PURE__ @class */ (function () {
|
|
|
17623
17628
|
if (map.staticMapZoom > 1 && map.staticMapZoom < staticMaxZoomLevel) {
|
|
17624
17629
|
map.staticMapZoom -= 1;
|
|
17625
17630
|
}
|
|
17626
|
-
this.performZooming(position, (value - delta), direction);
|
|
17631
|
+
this.performZooming(position, (value - delta), direction, true);
|
|
17627
17632
|
}
|
|
17628
17633
|
}
|
|
17629
17634
|
this.removeToolbarOpacity(map.mapScaleValue, (!this.maps.isDevice ? (!isNullOrUndefined(e.target) ? e.target['id'] :
|