@syncfusion/ej2-maps 28.2.9 → 29.1.34

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 28.2.9
3
+ * version : 29.1.33
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,32 +1,30 @@
1
1
  {
2
- "_from": "@syncfusion/ej2-maps@*",
3
- "_id": "@syncfusion/ej2-maps@28.2.6",
2
+ "_from": "@syncfusion/ej2-maps@29.1.33",
3
+ "_id": "@syncfusion/ej2-maps@29.1.33",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-xX75B2KaDwXt7tn/swZhDNqxlRsSd52P/+n0g96715/mVWVGwdMEEiXxxYzryRoGx0fs26nhprGmvGl6qbh+lw==",
5
+ "_integrity": "sha512-8FOun9obT58pjiDfXgT4Xnrre6KixmoiRWoLKjxKsYy4RbQU9ZUg+wSzN6PlLUeyT2gauC7M9oD0f0NaajOl3g==",
6
6
  "_location": "/@syncfusion/ej2-maps",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
9
- "type": "range",
9
+ "type": "version",
10
10
  "registry": true,
11
- "raw": "@syncfusion/ej2-maps@*",
11
+ "raw": "@syncfusion/ej2-maps@29.1.33",
12
12
  "name": "@syncfusion/ej2-maps",
13
13
  "escapedName": "@syncfusion%2fej2-maps",
14
14
  "scope": "@syncfusion",
15
- "rawSpec": "*",
15
+ "rawSpec": "29.1.34",
16
16
  "saveSpec": null,
17
- "fetchSpec": "*"
17
+ "fetchSpec": "29.1.34"
18
18
  },
19
19
  "_requiredBy": [
20
- "/",
21
- "/@syncfusion/ej2",
22
20
  "/@syncfusion/ej2-angular-maps",
23
21
  "/@syncfusion/ej2-react-maps",
24
22
  "/@syncfusion/ej2-vue-maps"
25
23
  ],
26
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-maps/-/ej2-maps-28.2.6.tgz",
27
- "_shasum": "1fb1958d38bd44143abd4e04c0d2df3b3378ea31",
28
- "_spec": "@syncfusion/ej2-maps@*",
29
- "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
24
+ "_resolved": "https://registry.npmjs.org/@syncfusion/ej2-maps/-/ej2-maps-29.1.33.tgz",
25
+ "_shasum": "92cc95addd7066ea358752dc136f1a572f58d1f9",
26
+ "_spec": "@syncfusion/ej2-maps@29.1.33",
27
+ "_where": "E:\\march2025\\memory-leaks\\node_modules\\@syncfusion\\ej2-angular-maps",
30
28
  "author": {
31
29
  "name": "Syncfusion Inc."
32
30
  },
@@ -35,13 +33,13 @@
35
33
  },
36
34
  "bundleDependencies": false,
37
35
  "dependencies": {
38
- "@syncfusion/ej2-base": "~28.2.9",
39
- "@syncfusion/ej2-buttons": "~28.2.7",
40
- "@syncfusion/ej2-compression": "~28.2.3",
41
- "@syncfusion/ej2-data": "~28.2.3",
42
- "@syncfusion/ej2-file-utils": "~28.2.3",
43
- "@syncfusion/ej2-pdf-export": "~28.2.3",
44
- "@syncfusion/ej2-svg-base": "~28.2.3"
36
+ "@syncfusion/ej2-base": "~29.1.33",
37
+ "@syncfusion/ej2-buttons": "~29.1.33",
38
+ "@syncfusion/ej2-compression": "~29.1.33",
39
+ "@syncfusion/ej2-data": "~29.1.33",
40
+ "@syncfusion/ej2-file-utils": "~29.1.33",
41
+ "@syncfusion/ej2-pdf-export": "~29.1.33",
42
+ "@syncfusion/ej2-svg-base": "~29.1.33"
45
43
  },
46
44
  "deprecated": false,
47
45
  "description": "The Maps component is used to visualize the geographical data and represent the statistical data of a particular geographical area on earth with user interactivity, and provides various customizing options",
@@ -92,7 +90,7 @@
92
90
  "type": "git",
93
91
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
94
92
  },
93
+ "sideEffects": false,
95
94
  "typings": "index.d.ts",
96
- "version": "28.2.9",
97
- "sideEffects": false
98
- }
95
+ "version": "29.1.34"
96
+ }
@@ -115,8 +115,9 @@ export declare class LayerPanel {
115
115
  calculateRectBounds(layerData: any[]): void;
116
116
  calculatePolygonBox(coordinates: any[]): any;
117
117
  calculateRectBox(coordinates: any[], type?: string, isFirstItem?: boolean): void;
118
- generateTiles(zoomLevel: number, tileTranslatePoint: Point, zoomType?: string, bing?: BingMap, position?: Point): void;
119
- arrangeTiles(type: string, x: number, y: number): void;
118
+ generateTiles(zoomLevel: number, tileTranslatePoint: Point, zoomType?: string, bing?: BingMap, position?: Point, isPinch?: boolean): void;
119
+ arrangeTiles(type: string, x: number, y: number, isPinch?: boolean): void;
120
+ private tileProcess;
120
121
  /**
121
122
  * Animation for tile layers and hide the group element until the tile layer rendering.
122
123
  *
@@ -1096,7 +1096,7 @@ var LayerPanel = /** @class */ (function () {
1096
1096
  }
1097
1097
  }
1098
1098
  };
1099
- LayerPanel.prototype.generateTiles = function (zoomLevel, tileTranslatePoint, zoomType, bing, position) {
1099
+ LayerPanel.prototype.generateTiles = function (zoomLevel, tileTranslatePoint, zoomType, bing, position, isPinch) {
1100
1100
  var userLang = this.mapObject.locale;
1101
1101
  var size = this.mapObject.availableSize;
1102
1102
  this.tiles = [];
@@ -1186,122 +1186,136 @@ var LayerPanel = /** @class */ (function () {
1186
1186
  }
1187
1187
  if (this.mapObject.previousScale !== this.mapObject.scale || this.mapObject.isReset || this.mapObject.isZoomByPosition
1188
1188
  || this.mapObject.zoomNotApplied) {
1189
- this.arrangeTiles(zoomType, this.animateToZoomX, this.animateToZoomY);
1189
+ this.arrangeTiles(zoomType, this.animateToZoomX, this.animateToZoomY, isPinch);
1190
1190
  }
1191
1191
  };
1192
- LayerPanel.prototype.arrangeTiles = function (type, x, y) {
1192
+ LayerPanel.prototype.arrangeTiles = function (type, x, y, isPinch) {
1193
1193
  var _this = this;
1194
+ if (isPinch === void 0) { isPinch = false; }
1194
1195
  var element = document.getElementById(this.mapObject.element.id + '_tile_parent');
1195
1196
  var element1 = document.getElementById(this.mapObject.element.id + '_tiles');
1196
- var timeOut;
1197
- if (!isNullOrUndefined(type) && type !== 'Pan') {
1198
- this.tileAnimation(type, x, y);
1199
- timeOut = animationMode === 'Disable' ? 0 : (this.mapObject.layersCollection[0].animationDuration === 0 &&
1200
- animationMode === 'Enable') ? 1000 : this.mapObject.layersCollection[0].animationDuration;
1201
- }
1202
- else {
1203
- timeOut = 0;
1204
- }
1205
- setTimeout(function () {
1206
- if (element) {
1207
- element.style.zIndex = '1';
1208
- }
1209
- if (element1) {
1210
- element1.style.zIndex = '0';
1211
- }
1212
- var animateElement;
1213
- if (!document.getElementById(_this.mapObject.element.id + '_animated_tiles') && element) {
1214
- animateElement = createElement('div', { id: _this.mapObject.element.id + '_animated_tiles' });
1215
- element.appendChild(animateElement);
1197
+ if (!isPinch) {
1198
+ var timeOut = void 0;
1199
+ if (!isNullOrUndefined(type) && type !== 'Pan') {
1200
+ this.tileAnimation(type, x, y);
1201
+ timeOut = animationMode === 'Disable' ? 0 : (this.mapObject.layersCollection[0].animationDuration === 0 &&
1202
+ animationMode === 'Enable') ? 1000 : this.mapObject.layersCollection[0].animationDuration;
1216
1203
  }
1217
1204
  else {
1218
- if (type !== 'Pan' && element1 && element) {
1219
- element1.appendChild(element.children[0]);
1220
- if (!_this.mapObject.isAddLayer && !isNullOrUndefined(document.getElementById(_this.mapObject.element.id + '_animated_tiles'))) {
1221
- document.getElementById(_this.mapObject.element.id + '_animated_tiles').id =
1222
- _this.mapObject.element.id + '_animated_tiles_old';
1223
- }
1205
+ timeOut = 0;
1206
+ }
1207
+ setTimeout(function () {
1208
+ if (element) {
1209
+ element.style.zIndex = '1';
1210
+ }
1211
+ if (element1) {
1212
+ element1.style.zIndex = '0';
1213
+ }
1214
+ var animateElement;
1215
+ if (!document.getElementById(_this.mapObject.element.id + '_animated_tiles') && element) {
1224
1216
  animateElement = createElement('div', { id: _this.mapObject.element.id + '_animated_tiles' });
1225
1217
  element.appendChild(animateElement);
1226
1218
  }
1227
1219
  else {
1228
- animateElement = element ? element.children[0] : null;
1229
- }
1230
- }
1231
- for (var id = 0; id < _this.tiles.length; id++) {
1232
- var tile = _this.tiles[id];
1233
- var imgElement = null;
1234
- var mapId = _this.mapObject.element.id;
1235
- if (type === 'Pan') {
1236
- var child = document.getElementById(mapId + '_tile_' + id);
1237
- var isNewTile = false;
1238
- if (isNullOrUndefined(child)) {
1239
- isNewTile = true;
1240
- child = createElement('div', { id: mapId + '_tile_' + id });
1241
- imgElement = createElement('img');
1220
+ if (type !== 'Pan' && element1 && element) {
1221
+ element1.appendChild(element.children[0]);
1222
+ if (!_this.mapObject.isAddLayer && !isNullOrUndefined(document.getElementById(_this.mapObject.element.id + '_animated_tiles'))) {
1223
+ document.getElementById(_this.mapObject.element.id + '_animated_tiles').id =
1224
+ _this.mapObject.element.id + '_animated_tiles_old';
1225
+ }
1226
+ animateElement = createElement('div', { id: _this.mapObject.element.id + '_animated_tiles' });
1227
+ element.appendChild(animateElement);
1242
1228
  }
1243
1229
  else {
1244
- child.style.removeProperty('display');
1245
- imgElement = child.children[0];
1246
- }
1247
- if (!isNewTile && imgElement && imgElement.src !== tile.src) {
1248
- imgElement.src = tile.src;
1230
+ animateElement = element ? element.children[0] : null;
1249
1231
  }
1250
- child.style.position = 'absolute';
1251
- child.style.left = tile.left + 'px';
1252
- child.style.top = tile.top + 'px';
1253
- child.style.height = tile.height + 'px';
1254
- child.style.width = tile.width + 'px';
1255
- if (isNewTile) {
1256
- imgElement.setAttribute('height', '256px');
1257
- imgElement.setAttribute('width', '256px');
1258
- imgElement.setAttribute('src', tile.src);
1259
- imgElement.setAttribute('alt', _this.mapObject.getLocalizedLabel('ImageNotFound'));
1260
- imgElement.style.setProperty('user-select', 'none');
1261
- child.appendChild(imgElement);
1262
- animateElement.appendChild(child);
1232
+ }
1233
+ _this.tileProcess(type, animateElement, isPinch);
1234
+ if (!isNullOrUndefined(_this.mapObject.currentTiles)) {
1235
+ for (var l = _this.tiles.length; l < animateElement.childElementCount; l++) {
1236
+ var isExistingElement = false;
1237
+ for (var a = 0; a < _this.mapObject.currentTiles.childElementCount; a++) {
1238
+ if (!isExistingElement &&
1239
+ _this.mapObject.currentTiles.children[a].id === animateElement.children[l].id) {
1240
+ isExistingElement = true;
1241
+ }
1242
+ }
1243
+ if (isExistingElement) {
1244
+ animateElement.children[l].style.display = 'none';
1245
+ }
1246
+ else {
1247
+ animateElement.removeChild(animateElement.children[l]);
1248
+ }
1263
1249
  }
1264
1250
  }
1265
- else {
1251
+ }, timeOut);
1252
+ }
1253
+ else {
1254
+ var animateElement = document.getElementById(this.mapObject.element.id + '_animates_tiles');
1255
+ if (isNullOrUndefined(animateElement)) {
1256
+ animateElement = createElement('div', { id: this.mapObject.element.id + '_animates_tiles' });
1257
+ }
1258
+ this.tileProcess(type, animateElement, isPinch);
1259
+ element1.appendChild(animateElement);
1260
+ }
1261
+ };
1262
+ LayerPanel.prototype.tileProcess = function (type, animateElement, isPinch) {
1263
+ for (var id = 0; id < this.tiles.length; id++) {
1264
+ var tile = this.tiles[id];
1265
+ var imgElement = null;
1266
+ var mapId = this.mapObject.element.id;
1267
+ if (type === 'Pan') {
1268
+ var child = document.getElementById(mapId + '_tile_' + id);
1269
+ var isNewTile = false;
1270
+ if (isNullOrUndefined(child)) {
1271
+ isNewTile = true;
1272
+ child = createElement('div', { id: mapId + '_tile_' + id });
1266
1273
  imgElement = createElement('img');
1274
+ }
1275
+ else {
1276
+ child.style.removeProperty('display');
1277
+ imgElement = child.children[0];
1278
+ }
1279
+ if (!isNewTile && imgElement && imgElement.src !== tile.src) {
1280
+ imgElement.src = tile.src;
1281
+ }
1282
+ child.style.position = 'absolute';
1283
+ child.style.left = tile.left + 'px';
1284
+ child.style.top = tile.top + 'px';
1285
+ child.style.height = tile.height + 'px';
1286
+ child.style.width = tile.width + 'px';
1287
+ if (isNewTile) {
1267
1288
  imgElement.setAttribute('height', '256px');
1268
1289
  imgElement.setAttribute('width', '256px');
1269
1290
  imgElement.setAttribute('src', tile.src);
1291
+ imgElement.setAttribute('alt', this.mapObject.getLocalizedLabel('ImageNotFound'));
1270
1292
  imgElement.style.setProperty('user-select', 'none');
1271
- imgElement.setAttribute('alt', _this.mapObject.getLocalizedLabel('ImageNotFound'));
1272
- var child = createElement('div', { id: mapId + '_tile_' + id });
1273
- child.style.position = 'absolute';
1274
- child.style.left = tile.left + 'px';
1275
- child.style.top = tile.top + 'px';
1276
- child.style.height = tile.height + 'px';
1277
- child.style.width = tile.width + 'px';
1278
1293
  child.appendChild(imgElement);
1279
- if (animateElement) {
1280
- animateElement.appendChild(child);
1281
- }
1282
- }
1283
- if (id === (_this.tiles.length - 1) && document.getElementById(_this.mapObject.element.id + '_animated_tiles_old')) {
1284
- removeElement(_this.mapObject.element.id + '_animated_tiles_old');
1294
+ animateElement.appendChild(child);
1285
1295
  }
1286
1296
  }
1287
- if (!isNullOrUndefined(_this.mapObject.currentTiles)) {
1288
- for (var l = _this.tiles.length; l < animateElement.childElementCount; l++) {
1289
- var isExistingElement = false;
1290
- for (var a = 0; a < _this.mapObject.currentTiles.childElementCount; a++) {
1291
- if (!isExistingElement &&
1292
- _this.mapObject.currentTiles.children[a].id === animateElement.children[l].id) {
1293
- isExistingElement = true;
1294
- }
1295
- }
1296
- if (isExistingElement) {
1297
- animateElement.children[l].style.display = 'none';
1298
- }
1299
- else {
1300
- animateElement.removeChild(animateElement.children[l]);
1301
- }
1297
+ else {
1298
+ imgElement = createElement('img');
1299
+ imgElement.setAttribute('height', '256px');
1300
+ imgElement.setAttribute('width', '256px');
1301
+ imgElement.setAttribute('src', tile.src);
1302
+ imgElement.style.setProperty('user-select', 'none');
1303
+ imgElement.setAttribute('alt', this.mapObject.getLocalizedLabel('ImageNotFound'));
1304
+ var child = createElement('div', { id: mapId + '_tile_' + id });
1305
+ child.style.position = 'absolute';
1306
+ child.style.left = tile.left + 'px';
1307
+ child.style.top = tile.top + 'px';
1308
+ child.style.height = tile.height + 'px';
1309
+ child.style.width = tile.width + 'px';
1310
+ child.appendChild(imgElement);
1311
+ if (animateElement) {
1312
+ animateElement.appendChild(child);
1302
1313
  }
1303
1314
  }
1304
- }, timeOut);
1315
+ if (!isPinch && id === (this.tiles.length - 1) && document.getElementById(this.mapObject.element.id + '_animated_tiles_old')) {
1316
+ removeElement(this.mapObject.element.id + '_animated_tiles_old');
1317
+ }
1318
+ }
1305
1319
  };
1306
1320
  /**
1307
1321
  * Animation for tile layers and hide the group element until the tile layer rendering.
@@ -2373,8 +2373,10 @@ var Legend = /** @class */ (function () {
2373
2373
  this.defsElement = null;
2374
2374
  this.legendElement = [];
2375
2375
  this.oldShapeElement = null;
2376
- this.removeEventListener();
2377
- this.maps = null;
2376
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2377
+ if (!this.maps.refreshing) {
2378
+ this.maps = null;
2379
+ }
2378
2380
  };
2379
2381
  return Legend;
2380
2382
  }());
package/src/maps/maps.js CHANGED
@@ -2041,6 +2041,20 @@ var Maps = /** @class */ (function (_super) {
2041
2041
  if (!isNullOrUndefined(this.mapsTooltipModule)) {
2042
2042
  this.mapsTooltipModule.removeEventListener();
2043
2043
  }
2044
+ if (!isNullOrUndefined(this.zoomModule)) {
2045
+ this.zoomModule.removeEventListener();
2046
+ }
2047
+ if (!isNullOrUndefined(this.legendModule)) {
2048
+ this.legendModule.removeEventListener();
2049
+ }
2050
+ if (!isNullOrUndefined(this.selectionModule)) {
2051
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2052
+ this.selectionModule.removeEventListener();
2053
+ }
2054
+ if (!isNullOrUndefined(this.highlightModule)) {
2055
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2056
+ this.highlightModule.removeEventListener();
2057
+ }
2044
2058
  if (!isNullOrUndefined(this.bingMap)) {
2045
2059
  this.bingMap.destroy();
2046
2060
  }
@@ -932,21 +932,25 @@ export interface PolygonSettingsModel {
932
932
 
933
933
  /**
934
934
  * Gets or sets the properties of all the polygon shapes that will be displayed in a layer.
935
+ * {% codeBlock src='maps/polygonSettingsPolygons/index.md' %}{% endcodeBlock %}
935
936
  */
936
937
  polygons?: PolygonSettingModel[];
937
938
 
938
939
  /**
939
940
  * Gets or sets the properties for selecting polygon shapes in a map layer.
941
+ * {% codeBlock src='maps/polygonSettingsSelectionSettings/index.md' %}{% endcodeBlock %}
940
942
  */
941
943
  selectionSettings?: SelectionSettingsModel;
942
944
 
943
945
  /**
944
946
  * Gets or sets the properties for highlighting polygon shapes in a map layer.
947
+ * {% codeBlock src='maps/polygonSettingsHighlightSettings/index.md' %}{% endcodeBlock %}
945
948
  */
946
949
  highlightSettings?: HighlightSettingsModel;
947
950
 
948
951
  /**
949
952
  * Specifies the properties such as visibility, fill, border and text style to customize the tooltip.
953
+ * {% codeBlock src='maps/polygonSettingsTooltipSettings/index.md' %}{% endcodeBlock %}
950
954
  */
951
955
  tooltipSettings?: PolygonTooltipSettingsModel;
952
956
 
@@ -827,18 +827,22 @@ export declare class PolygonSetting extends ChildProperty<PolygonSettings> {
827
827
  export declare class PolygonSettings extends ChildProperty<PolygonSettings> {
828
828
  /**
829
829
  * Gets or sets the properties of all the polygon shapes that will be displayed in a layer.
830
+ * {% codeBlock src='maps/polygonSettingsPolygons/index.md' %}{% endcodeBlock %}
830
831
  */
831
832
  polygons: PolygonSettingModel[];
832
833
  /**
833
834
  * Gets or sets the properties for selecting polygon shapes in a map layer.
835
+ * {% codeBlock src='maps/polygonSettingsSelectionSettings/index.md' %}{% endcodeBlock %}
834
836
  */
835
837
  selectionSettings: SelectionSettingsModel;
836
838
  /**
837
839
  * Gets or sets the properties for highlighting polygon shapes in a map layer.
840
+ * {% codeBlock src='maps/polygonSettingsHighlightSettings/index.md' %}{% endcodeBlock %}
838
841
  */
839
842
  highlightSettings: HighlightSettingsModel;
840
843
  /**
841
844
  * Specifies the properties such as visibility, fill, border and text style to customize the tooltip.
845
+ * {% codeBlock src='maps/polygonSettingsTooltipSettings/index.md' %}{% endcodeBlock %}
842
846
  */
843
847
  tooltipSettings: PolygonTooltipSettingsModel;
844
848
  }
@@ -20,8 +20,9 @@ export declare class Highlight {
20
20
  * To unbind events for highlight module.
21
21
  *
22
22
  * @returns {void}
23
+ * @private
23
24
  */
24
- private removeEventListener;
25
+ removeEventListener(): void;
25
26
  /**
26
27
  * Public method for highlight module.
27
28
  *
@@ -25,6 +25,7 @@ var Highlight = /** @class */ (function () {
25
25
  * To unbind events for highlight module.
26
26
  *
27
27
  * @returns {void}
28
+ * @private
28
29
  */
29
30
  Highlight.prototype.removeEventListener = function () {
30
31
  if (this.maps.isDestroyed) {
@@ -263,8 +264,10 @@ var Highlight = /** @class */ (function () {
263
264
  */
264
265
  Highlight.prototype.destroy = function () {
265
266
  this.highlightSettings = null;
266
- this.removeEventListener();
267
- this.maps = null;
267
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
268
+ if (!this.maps.refreshing) {
269
+ this.maps = null;
270
+ }
268
271
  };
269
272
  return Highlight;
270
273
  }());
@@ -24,8 +24,9 @@ export declare class Selection {
24
24
  * For removing events from selection module.
25
25
  *
26
26
  * @returns {void}
27
+ * @private
27
28
  */
28
- private removeEventListener;
29
+ removeEventListener(): void;
29
30
  private mouseClick;
30
31
  /**
31
32
  * Selects the element in the map.
@@ -23,6 +23,7 @@ var Selection = /** @class */ (function () {
23
23
  * For removing events from selection module.
24
24
  *
25
25
  * @returns {void}
26
+ * @private
26
27
  */
27
28
  Selection.prototype.removeEventListener = function () {
28
29
  if (this.maps.isDestroyed) {
@@ -324,8 +325,10 @@ var Selection = /** @class */ (function () {
324
325
  */
325
326
  Selection.prototype.destroy = function () {
326
327
  this.selectionsettings = null;
327
- this.removeEventListener();
328
- this.maps = null;
328
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
329
+ if (!this.maps.refreshing) {
330
+ this.maps = null;
331
+ }
329
332
  };
330
333
  return Selection;
331
334
  }());
@@ -461,22 +461,20 @@ var MapsTooltip = /** @class */ (function () {
461
461
  * @private
462
462
  */
463
463
  MapsTooltip.prototype.removeEventListener = function () {
464
- if (this.maps) {
465
- if (this.maps.isDestroyed) {
466
- return;
467
- }
468
- if (this.maps.tooltipDisplayMode === 'DoubleClick') {
469
- this.maps.off('dblclick', this.renderTooltip);
470
- }
471
- else if (this.maps.tooltipDisplayMode === 'Click') {
472
- this.maps.off(Browser.touchEndEvent, this.mouseUpHandler);
473
- }
474
- else {
475
- this.maps.off(Browser.touchMoveEvent, this.renderTooltip);
476
- }
477
- this.maps.off(Browser.touchCancelEvent, this.removeTooltip);
478
- this.maps.element.removeEventListener('contextmenu', this.removeTooltip);
464
+ if (this.maps.isDestroyed) {
465
+ return;
479
466
  }
467
+ if (this.maps.tooltipDisplayMode === 'DoubleClick') {
468
+ this.maps.off('dblclick', this.renderTooltip);
469
+ }
470
+ else if (this.maps.tooltipDisplayMode === 'Click') {
471
+ this.maps.off(Browser.touchEndEvent, this.mouseUpHandler);
472
+ }
473
+ else {
474
+ this.maps.off(Browser.touchMoveEvent, this.renderTooltip);
475
+ }
476
+ this.maps.off(Browser.touchCancelEvent, this.removeTooltip);
477
+ this.maps.element.removeEventListener('contextmenu', this.removeTooltip);
480
478
  };
481
479
  /**
482
480
  * Get module name.
@@ -499,7 +497,9 @@ var MapsTooltip = /** @class */ (function () {
499
497
  removeElement(this.maps.element.id + '_mapsTooltip');
500
498
  }
501
499
  this.svgTooltip = null;
502
- this.maps = null;
500
+ if (!this.maps.refreshing) {
501
+ this.maps = null;
502
+ }
503
503
  };
504
504
  return MapsTooltip;
505
505
  }());
@@ -70,6 +70,18 @@ export declare class Zoom {
70
70
  private templateCount;
71
71
  private pinchDistance;
72
72
  /** @private */
73
+ startDistance: number;
74
+ /** @private */
75
+ touchCenter: Point;
76
+ /** @private */
77
+ pinchStartLatLong: object;
78
+ /** @private */
79
+ isCancellation: boolean;
80
+ private pinchTileZoomScale;
81
+ private tileZoomLevel;
82
+ private pinchZoomScale;
83
+ private isPinchZooming;
84
+ /** @private */
73
85
  mouseDownLatLong: object;
74
86
  /** @private */
75
87
  mouseMoveLatLong: object;
@@ -92,6 +104,7 @@ export declare class Zoom {
92
104
  private calculateInitalZoomTranslatePoint;
93
105
  private triggerZoomEvent;
94
106
  private getTileTranslatePosition;
107
+ private getTileTranslate;
95
108
  /**
96
109
  * @returns {void}
97
110
  * @private
@@ -99,12 +112,14 @@ export declare class Zoom {
99
112
  performRectZooming(): void;
100
113
  private setInteraction;
101
114
  private updateInteraction;
115
+ private tilePinchingProcess;
102
116
  /**
103
117
  * @param {PointerEvent} e - Specifies the vent in the map
104
118
  * @returns {void}
105
119
  * @private
106
120
  */
107
121
  performPinchZooming(e: PointerEvent | TouchEvent): void;
122
+ private copyStyles;
108
123
  private getTouchCenterPoint;
109
124
  private triggerZoomComplete;
110
125
  /**