@syncfusion/ej2-maps 25.1.37 → 25.1.40

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.
Files changed (51) hide show
  1. package/.eslintrc.json +260 -0
  2. package/CHANGELOG.md +9 -0
  3. package/dist/ej2-maps.min.js +2 -2
  4. package/dist/ej2-maps.umd.min.js +2 -2
  5. package/dist/ej2-maps.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-maps.es2015.js +620 -396
  7. package/dist/es6/ej2-maps.es2015.js.map +1 -1
  8. package/dist/es6/ej2-maps.es5.js +601 -378
  9. package/dist/es6/ej2-maps.es5.js.map +1 -1
  10. package/dist/global/ej2-maps.min.js +2 -2
  11. package/dist/global/ej2-maps.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/package.json +7 -7
  14. package/src/maps/layers/bubble.d.ts +17 -2
  15. package/src/maps/layers/bubble.js +20 -5
  16. package/src/maps/layers/color-mapping.d.ts +1 -1
  17. package/src/maps/layers/color-mapping.js +4 -0
  18. package/src/maps/layers/data-label.d.ts +2 -2
  19. package/src/maps/layers/data-label.js +4 -6
  20. package/src/maps/layers/layer-panel.d.ts +9 -7
  21. package/src/maps/layers/layer-panel.js +124 -121
  22. package/src/maps/layers/legend.d.ts +7 -6
  23. package/src/maps/layers/legend.js +41 -24
  24. package/src/maps/layers/marker.d.ts +7 -2
  25. package/src/maps/layers/marker.js +14 -10
  26. package/src/maps/layers/navigation-selected-line.js +1 -0
  27. package/src/maps/layers/polygon.js +5 -1
  28. package/src/maps/maps-model.d.ts +9 -9
  29. package/src/maps/maps.d.ts +30 -12
  30. package/src/maps/maps.js +88 -59
  31. package/src/maps/model/base-model.d.ts +3 -2
  32. package/src/maps/model/base.d.ts +10 -9
  33. package/src/maps/model/base.js +1 -1
  34. package/src/maps/model/export-image.js +1 -1
  35. package/src/maps/model/export-pdf.js +3 -3
  36. package/src/maps/model/interface.d.ts +1 -0
  37. package/src/maps/model/print.js +2 -0
  38. package/src/maps/model/theme.js +12 -12
  39. package/src/maps/user-interaction/annotation.d.ts +5 -0
  40. package/src/maps/user-interaction/annotation.js +6 -2
  41. package/src/maps/user-interaction/highlight.d.ts +13 -1
  42. package/src/maps/user-interaction/highlight.js +12 -2
  43. package/src/maps/user-interaction/selection.d.ts +13 -1
  44. package/src/maps/user-interaction/selection.js +19 -13
  45. package/src/maps/user-interaction/tooltip.d.ts +14 -0
  46. package/src/maps/user-interaction/tooltip.js +16 -1
  47. package/src/maps/user-interaction/zoom.d.ts +55 -10
  48. package/src/maps/user-interaction/zoom.js +146 -104
  49. package/src/maps/utils/helper.d.ts +64 -36
  50. package/src/maps/utils/helper.js +82 -52
  51. package/tslint.json +111 -0
@@ -217,7 +217,7 @@ var LayerPanel = /** @class */ (function () {
217
217
  if (panel.mapObject.markerModule) {
218
218
  panel.mapObject.markerModule.markerRender(this.mapObject, panel.layerObject, layerIndex, panel.mapObject.tileZoomLevel, null);
219
219
  }
220
- panel.translateLayerElements(panel.layerObject, layerIndex);
220
+ panel.translateLayerElements(panel.layerObject);
221
221
  panel.layerGroup.appendChild(panel.layerObject);
222
222
  };
223
223
  LayerPanel.prototype.processLayers = function (layer, layerIndex) {
@@ -245,6 +245,7 @@ var LayerPanel = /** @class */ (function () {
245
245
  cancel: false, name: layerRendering, index: layerIndex,
246
246
  layer: layer, maps: this.mapObject, visible: layer.visible
247
247
  };
248
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
248
249
  this.mapObject.trigger('layerRendering', eventArgs, function (observedArgs) {
249
250
  if (!eventArgs.cancel && eventArgs.visible) {
250
251
  if (layer.layerType === 'OSM') {
@@ -371,9 +372,8 @@ var LayerPanel = /** @class */ (function () {
371
372
  }
372
373
  this.rectBounds = null;
373
374
  var shapeSettings = this.currentLayer.shapeSettings;
374
- var bubbleSettings = this.currentLayer.bubbleSettings;
375
375
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
376
- Array.prototype.forEach.call(renderData, function (geometryData, index) {
376
+ Array.prototype.forEach.call(renderData, function (geometryData) {
377
377
  if (!isNullOrUndefined(geometryData['geometry']) || !isNullOrUndefined(geometryData['coordinates'])) {
378
378
  var type = !isNullOrUndefined(geometryData['geometry']) ? geometryData['geometry']['type'] : geometryData['type'];
379
379
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -411,12 +411,9 @@ var LayerPanel = /** @class */ (function () {
411
411
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
412
412
  var currentShapeData = this_1.currentLayer.layerData[i];
413
413
  var pathOptions;
414
- var polyLineOptions = void 0;
415
414
  var circleOptions;
416
415
  var groupElement;
417
- var drawObject = void 0;
418
416
  var path = '';
419
- var points = '';
420
417
  var fill = (shapeSettings.autofill) ? colors[i % colors.length] :
421
418
  (shapeSettings.fill || this_1.mapObject.themeStyle.shapeFill);
422
419
  if (shapeSettings.colorValuePath !== null && !isNullOrUndefined(currentShapeData['property'])) {
@@ -583,7 +580,7 @@ var LayerPanel = /** @class */ (function () {
583
580
  var circleRadius = (_this.mapObject.layers[layerIndex].type !== 'SubLayer') ? shapeSettings.circleRadius : shapeSettings.circleRadius / (_this.mapObject.isTileMap ? _this.mapObject.scale : _this.currentFactor);
584
581
  circleOptions = new CircleOption((shapeID + '_multiLine_' + index), eventArgs.fill, eventArgs.border, opacity, pointData['x'], pointData['y'], circleRadius, shapeSettings.dashArray);
585
582
  pathEle = _this.mapObject.renderer.drawCircle(circleOptions);
586
- _this.pathAttributeCalculate(groupElement, pathEle, drawingType, currentShapeData, i);
583
+ _this.pathAttributeCalculate(groupElement, pathEle, drawingType, currentShapeData);
587
584
  });
588
585
  break;
589
586
  case 'Path':
@@ -593,7 +590,7 @@ var LayerPanel = /** @class */ (function () {
593
590
  break;
594
591
  }
595
592
  if (!isNullOrUndefined(pathEle) && drawingType !== 'MultiPoint') {
596
- _this.pathAttributeCalculate(groupElement, pathEle, drawingType, currentShapeData, i);
593
+ _this.pathAttributeCalculate(groupElement, pathEle, drawingType, currentShapeData);
597
594
  }
598
595
  if (i === _this.currentLayer.layerData.length - 1) {
599
596
  _this.layerFeatures(layerIndex, colors, renderData, labelTemplateEle);
@@ -618,12 +615,11 @@ var LayerPanel = /** @class */ (function () {
618
615
  * @param {Element} pathEle - Specifies the svg element.
619
616
  * @param {string} drawingType - Specifies the data type.
620
617
  * @param {any} currentShapeData - Specifies the layer of shapedata.
621
- * @param {number} index - Specifies the tab index.
622
618
  * @returns {void}
623
619
  */
624
620
  LayerPanel.prototype.pathAttributeCalculate = function (groupElement, pathEle, drawingType,
625
621
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
626
- currentShapeData, index) {
622
+ currentShapeData) {
627
623
  var property = (Object.prototype.toString.call(this.currentLayer.shapePropertyPath) === '[object Array]' ?
628
624
  this.currentLayer.shapePropertyPath : [this.currentLayer.shapePropertyPath]);
629
625
  var properties;
@@ -667,7 +663,7 @@ var LayerPanel = /** @class */ (function () {
667
663
  *
668
664
  * @param {number} layerIndex - Specifies the layer index
669
665
  * @param {string[]} colors - Specifies the colors
670
- * @param {Object[]} renderData - Specifies the render data
666
+ * @param {any[]} renderData - Specifies the render data
671
667
  * @param {HTMLElement} labelTemplateEle - Specifies the label template element
672
668
  * @returns {void}
673
669
  */
@@ -677,7 +673,8 @@ var LayerPanel = /** @class */ (function () {
677
673
  var _this = this;
678
674
  var bubbleG;
679
675
  if (this.mapObject.polygonModule) {
680
- this.groupElements.push(this.mapObject.polygonModule.polygonRender(this.mapObject, layerIndex, (this.mapObject.isTileMap ? Math.floor(this.currentFactor) : this.currentFactor)));
676
+ this.groupElements.push(this.mapObject.polygonModule.polygonRender(this.mapObject, layerIndex, (this.mapObject.isTileMap ? Math.floor(this.currentFactor)
677
+ : this.currentFactor)));
681
678
  }
682
679
  if (this.currentLayer.bubbleSettings.length && this.mapObject.bubbleModule) {
683
680
  var length_1 = this.currentLayer.bubbleSettings.length;
@@ -691,7 +688,6 @@ var LayerPanel = /** @class */ (function () {
691
688
  this_2.bubbleCalculation(bubble_1, range);
692
689
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
693
690
  var bubbleDataSource = bubble_1.dataSource;
694
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
695
691
  this_2.mapObject.bubbleModule.bubbleCollection = [];
696
692
  bubbleDataSource.map(function (bubbleData, i) {
697
693
  _this.renderBubble(_this.currentLayer, bubbleData, colors[i % colors.length], range, j, i, bubbleG, layerIndex, bubble_1);
@@ -729,7 +725,7 @@ var LayerPanel = /** @class */ (function () {
729
725
  this.mapObject.markerModule.markerRender(this.mapObject, this.layerObject, layerIndex, (this.mapObject.isTileMap ? Math.floor(this.currentFactor) :
730
726
  this.currentFactor), null);
731
727
  }
732
- this.translateLayerElements(this.layerObject, layerIndex);
728
+ this.translateLayerElements(this.layerObject);
733
729
  this.layerGroup.appendChild(this.layerObject);
734
730
  };
735
731
  /**
@@ -778,6 +774,8 @@ var LayerPanel = /** @class */ (function () {
778
774
  * @param {object} bubbleData - Specifies the bubble data
779
775
  * @param {string} color - Specifies the color
780
776
  * @param {number} range - Specifies the range
777
+ * @param {number} range.min - Specifies the minimum range
778
+ * @param {number} range.max - Specifies the maximum range
781
779
  * @param {number} bubbleIndex - Specifies the bubble index
782
780
  * @param {number} dataIndex - Specifies the data index
783
781
  * @param {number} group - Specifies the group
@@ -800,9 +798,9 @@ var LayerPanel = /** @class */ (function () {
800
798
  * To get the shape color from color mapping module
801
799
  *
802
800
  * @param {LayerSettingsModel} layer - Specifies the layer
803
- * @param {object} shape - Specifies the shape
801
+ * @param {any} shape - Specifies the shape
804
802
  * @param {string} color - Specifies the color
805
- * @returns {Object} - Returns the object
803
+ * @returns {any} - Returns the object
806
804
  */
807
805
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
808
806
  LayerPanel.prototype.getShapeColorMapping = function (layer, shape, color) {
@@ -828,7 +826,7 @@ var LayerPanel = /** @class */ (function () {
828
826
  switch (type.toLowerCase()) {
829
827
  case 'polygon':
830
828
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
831
- newData = this.calculatePolygonBox(coordinates[0], data, properties);
829
+ newData = this.calculatePolygonBox(coordinates[0]);
832
830
  if (newData.length > 0) {
833
831
  newData['property'] = properties;
834
832
  newData['type'] = type;
@@ -842,7 +840,7 @@ var LayerPanel = /** @class */ (function () {
842
840
  for (var i = 0; i < coordinates.length; i++) {
843
841
  for (var j = 0; j < coordinates[i].length; j++) {
844
842
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
845
- newData = this.calculatePolygonBox(coordinates[i][j], data, properties);
843
+ newData = this.calculatePolygonBox(coordinates[i][j]);
846
844
  if (newData.length > 0) {
847
845
  multiPolygonDatas.push(newData);
848
846
  }
@@ -986,7 +984,7 @@ var LayerPanel = /** @class */ (function () {
986
984
  }
987
985
  return (Math.min(verFactor, horFactor));
988
986
  };
989
- LayerPanel.prototype.translateLayerElements = function (layerElement, index) {
987
+ LayerPanel.prototype.translateLayerElements = function (layerElement) {
990
988
  var childNode;
991
989
  this.mapObject.translateType = 'layer';
992
990
  if (!isNullOrUndefined(this.mapObject.baseMapRectBounds)) {
@@ -1047,7 +1045,7 @@ var LayerPanel = /** @class */ (function () {
1047
1045
  LayerPanel.prototype.calculateRectBounds = function (layerData) {
1048
1046
  var _this = this;
1049
1047
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1050
- Array.prototype.forEach.call(layerData, function (obj, index) {
1048
+ Array.prototype.forEach.call(layerData, function (obj) {
1051
1049
  if (!isNullOrUndefined(obj['geometry']) || !isNullOrUndefined(obj['coordinates'])) {
1052
1050
  var type = !isNullOrUndefined(obj['geometry']) ? obj['geometry']['type'] : obj['type'];
1053
1051
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -1059,13 +1057,13 @@ var LayerPanel = /** @class */ (function () {
1059
1057
  break;
1060
1058
  case 'multipolygon':
1061
1059
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1062
- coordinates.map(function (point, index) {
1060
+ coordinates.map(function (point) {
1063
1061
  _this.calculateRectBox(point[0]);
1064
1062
  });
1065
1063
  break;
1066
1064
  case 'multilinestring':
1067
1065
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1068
- coordinates.map(function (multiPoint, index) {
1066
+ coordinates.map(function (multiPoint) {
1069
1067
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1070
1068
  multiPoint.map(function (point, index) {
1071
1069
  _this.calculateRectBox(point, 'multilinestring', index === 0 ? true : false);
@@ -1092,7 +1090,7 @@ var LayerPanel = /** @class */ (function () {
1092
1090
  });
1093
1091
  };
1094
1092
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1095
- LayerPanel.prototype.calculatePolygonBox = function (coordinates, data, properties) {
1093
+ LayerPanel.prototype.calculatePolygonBox = function (coordinates) {
1096
1094
  var _this = this;
1097
1095
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1098
1096
  var newData = [];
@@ -1247,121 +1245,126 @@ var LayerPanel = /** @class */ (function () {
1247
1245
  };
1248
1246
  LayerPanel.prototype.arrangeTiles = function (type, x, y) {
1249
1247
  var _this = this;
1250
- var element = document.getElementById(this.mapObject.element.id + '_tile_parent');
1251
- var element1 = document.getElementById(this.mapObject.element.id + '_tiles');
1252
1248
  var timeOut;
1253
1249
  if (!isNullOrUndefined(type) && type !== 'Pan') {
1254
1250
  this.tileAnimation(type, x, y);
1255
1251
  timeOut = animationMode === 'Disable' ? 0 : (this.mapObject.layersCollection[0].animationDuration === 0 &&
1256
1252
  animationMode === 'Enable') ? 1000 : this.mapObject.layersCollection[0].animationDuration;
1257
1253
  }
1258
- else {
1259
- timeOut = 0;
1260
- }
1261
1254
  if (this.mapObject.layers[this.mapObject.baseLayerIndex].layerType === 'GoogleStaticMap') {
1262
1255
  this.renderGoogleMap(this.mapObject.layers[0].key, this.mapObject.staticMapZoom);
1263
1256
  }
1264
1257
  else {
1265
- setTimeout(function () {
1266
- if (element) {
1267
- element.style.zIndex = '1';
1268
- }
1269
- if (element1) {
1270
- element1.style.zIndex = '0';
1258
+ if (type === 'Pan') {
1259
+ this.arrangeTilesLayer(type);
1260
+ }
1261
+ else {
1262
+ setTimeout(function () {
1263
+ _this.arrangeTilesLayer(type);
1264
+ }, timeOut);
1265
+ }
1266
+ }
1267
+ };
1268
+ LayerPanel.prototype.arrangeTilesLayer = function (type) {
1269
+ var element = document.getElementById(this.mapObject.element.id + '_tile_parent');
1270
+ var element1 = document.getElementById(this.mapObject.element.id + '_tiles');
1271
+ if (element) {
1272
+ element.style.zIndex = '1';
1273
+ }
1274
+ if (element1) {
1275
+ element1.style.zIndex = '0';
1276
+ }
1277
+ var animateElement;
1278
+ if (!document.getElementById(this.mapObject.element.id + '_animated_tiles') && element) {
1279
+ animateElement = createElement('div', { id: this.mapObject.element.id + '_animated_tiles' });
1280
+ element.appendChild(animateElement);
1281
+ }
1282
+ else {
1283
+ if (type !== 'Pan' && element1 && element) {
1284
+ element1.appendChild(element.children[0]);
1285
+ if (!this.mapObject.isAddLayer && !isNullOrUndefined(document.getElementById(this.mapObject.element.id + '_animated_tiles'))) {
1286
+ document.getElementById(this.mapObject.element.id + '_animated_tiles').id =
1287
+ this.mapObject.element.id + '_animated_tiles_old';
1271
1288
  }
1272
- var animateElement;
1273
- if (!document.getElementById(_this.mapObject.element.id + '_animated_tiles') && element) {
1274
- animateElement = createElement('div', { id: _this.mapObject.element.id + '_animated_tiles' });
1275
- element.appendChild(animateElement);
1289
+ animateElement = createElement('div', { id: this.mapObject.element.id + '_animated_tiles' });
1290
+ element.appendChild(animateElement);
1291
+ }
1292
+ else {
1293
+ animateElement = element ? element.children[0] : null;
1294
+ }
1295
+ }
1296
+ for (var id = 0; id < this.tiles.length; id++) {
1297
+ var tile = this.tiles[id];
1298
+ var imgElement = null;
1299
+ var mapId = this.mapObject.element.id;
1300
+ if (type === 'Pan') {
1301
+ var child = document.getElementById(mapId + '_tile_' + id);
1302
+ var isNewTile = false;
1303
+ if (isNullOrUndefined(child)) {
1304
+ isNewTile = true;
1305
+ child = createElement('div', { id: mapId + '_tile_' + id });
1306
+ imgElement = createElement('img');
1276
1307
  }
1277
1308
  else {
1278
- if (type !== 'Pan' && element1 && element) {
1279
- element1.appendChild(element.children[0]);
1280
- if (!_this.mapObject.isAddLayer && !isNullOrUndefined(document.getElementById(_this.mapObject.element.id + '_animated_tiles'))) {
1281
- document.getElementById(_this.mapObject.element.id + '_animated_tiles').id =
1282
- _this.mapObject.element.id + '_animated_tiles_old';
1283
- }
1284
- animateElement = createElement('div', { id: _this.mapObject.element.id + '_animated_tiles' });
1285
- element.appendChild(animateElement);
1286
- }
1287
- else {
1288
- animateElement = element ? element.children[0] : null;
1289
- }
1309
+ child.style.removeProperty('display');
1310
+ imgElement = child.children[0];
1290
1311
  }
1291
- for (var id = 0; id < _this.tiles.length; id++) {
1292
- var tile = _this.tiles[id];
1293
- var imgElement = null;
1294
- var mapId = _this.mapObject.element.id;
1295
- if (type === 'Pan') {
1296
- var child = document.getElementById(mapId + '_tile_' + id);
1297
- var isNewTile = false;
1298
- if (isNullOrUndefined(child)) {
1299
- isNewTile = true;
1300
- child = createElement('div', { id: mapId + '_tile_' + id });
1301
- imgElement = createElement('img');
1302
- }
1303
- else {
1304
- child.style.removeProperty('display');
1305
- imgElement = child.children[0];
1306
- }
1307
- if (!isNewTile && imgElement && imgElement.src !== tile.src) {
1308
- imgElement.src = tile.src;
1309
- }
1310
- child.style.position = 'absolute';
1311
- child.style.left = tile.left + 'px';
1312
- child.style.top = tile.top + 'px';
1313
- child.style.height = tile.height + 'px';
1314
- child.style.width = tile.width + 'px';
1315
- if (isNewTile) {
1316
- imgElement.setAttribute('height', '256px');
1317
- imgElement.setAttribute('width', '256px');
1318
- imgElement.setAttribute('src', tile.src);
1319
- imgElement.setAttribute('alt', _this.mapObject.getLocalizedLabel('ImageNotFound'));
1320
- imgElement.style.setProperty('user-select', 'none');
1321
- child.appendChild(imgElement);
1322
- animateElement.appendChild(child);
1323
- }
1324
- }
1325
- else {
1326
- imgElement = createElement('img');
1327
- imgElement.setAttribute('height', '256px');
1328
- imgElement.setAttribute('width', '256px');
1329
- imgElement.setAttribute('src', tile.src);
1330
- imgElement.style.setProperty('user-select', 'none');
1331
- imgElement.setAttribute('alt', _this.mapObject.getLocalizedLabel('ImageNotFound'));
1332
- var child = createElement('div', { id: mapId + '_tile_' + id });
1333
- child.style.position = 'absolute';
1334
- child.style.left = tile.left + 'px';
1335
- child.style.top = tile.top + 'px';
1336
- child.style.height = tile.height + 'px';
1337
- child.style.width = tile.width + 'px';
1338
- child.appendChild(imgElement);
1339
- if (animateElement) {
1340
- animateElement.appendChild(child);
1341
- }
1342
- }
1343
- if (id === (_this.tiles.length - 1) && document.getElementById(_this.mapObject.element.id + '_animated_tiles_old')) {
1344
- removeElement(_this.mapObject.element.id + '_animated_tiles_old');
1345
- }
1312
+ if (!isNewTile && imgElement && imgElement.src !== tile.src) {
1313
+ imgElement.src = tile.src;
1346
1314
  }
1347
- if (!isNullOrUndefined(_this.mapObject.currentTiles)) {
1348
- for (var l = _this.tiles.length; l < animateElement.childElementCount; l++) {
1349
- var isExistingElement = false;
1350
- for (var a = 0; a < _this.mapObject.currentTiles.childElementCount; a++) {
1351
- if (!isExistingElement &&
1352
- _this.mapObject.currentTiles.children[a].id === animateElement.children[l].id) {
1353
- isExistingElement = true;
1354
- }
1355
- }
1356
- if (isExistingElement) {
1357
- animateElement.children[l].style.display = 'none';
1358
- }
1359
- else {
1360
- animateElement.removeChild(animateElement.children[l]);
1361
- }
1315
+ child.style.position = 'absolute';
1316
+ child.style.left = tile.left + 'px';
1317
+ child.style.top = tile.top + 'px';
1318
+ child.style.height = tile.height + 'px';
1319
+ child.style.width = tile.width + 'px';
1320
+ if (isNewTile) {
1321
+ imgElement.setAttribute('height', '256px');
1322
+ imgElement.setAttribute('width', '256px');
1323
+ imgElement.setAttribute('src', tile.src);
1324
+ imgElement.setAttribute('alt', this.mapObject.getLocalizedLabel('ImageNotFound'));
1325
+ imgElement.style.setProperty('user-select', 'none');
1326
+ child.appendChild(imgElement);
1327
+ animateElement.appendChild(child);
1328
+ }
1329
+ }
1330
+ else {
1331
+ imgElement = createElement('img');
1332
+ imgElement.setAttribute('height', '256px');
1333
+ imgElement.setAttribute('width', '256px');
1334
+ imgElement.setAttribute('src', tile.src);
1335
+ imgElement.style.setProperty('user-select', 'none');
1336
+ imgElement.setAttribute('alt', this.mapObject.getLocalizedLabel('ImageNotFound'));
1337
+ var child = createElement('div', { id: mapId + '_tile_' + id });
1338
+ child.style.position = 'absolute';
1339
+ child.style.left = tile.left + 'px';
1340
+ child.style.top = tile.top + 'px';
1341
+ child.style.height = tile.height + 'px';
1342
+ child.style.width = tile.width + 'px';
1343
+ child.appendChild(imgElement);
1344
+ if (animateElement) {
1345
+ animateElement.appendChild(child);
1346
+ }
1347
+ }
1348
+ if (id === (this.tiles.length - 1) && document.getElementById(this.mapObject.element.id + '_animated_tiles_old')) {
1349
+ removeElement(this.mapObject.element.id + '_animated_tiles_old');
1350
+ }
1351
+ }
1352
+ if (!isNullOrUndefined(this.mapObject.currentTiles)) {
1353
+ for (var l = this.tiles.length; l < animateElement.childElementCount; l++) {
1354
+ var isExistingElement = false;
1355
+ for (var a = 0; a < this.mapObject.currentTiles.childElementCount; a++) {
1356
+ if (!isExistingElement &&
1357
+ this.mapObject.currentTiles.children[a].id === animateElement.children[l].id) {
1358
+ isExistingElement = true;
1362
1359
  }
1363
1360
  }
1364
- }, timeOut);
1361
+ if (isExistingElement) {
1362
+ animateElement.children[l].style.display = 'none';
1363
+ }
1364
+ else {
1365
+ animateElement.removeChild(animateElement.children[l]);
1366
+ }
1367
+ }
1365
1368
  }
1366
1369
  };
1367
1370
  /**
@@ -87,9 +87,9 @@ export declare class Legend {
87
87
  * Get the legend collections
88
88
  *
89
89
  * @param {number} layerIndex - Specifies the layer index
90
- * @param {object[]} layerData - Specifies the layer data
90
+ * @param {any[]} layerData - Specifies the layer data
91
91
  * @param {ColorMappingSettings[]} colorMapping - Specifies the color mapping
92
- * @param {object[]} dataSource - Specifies the data source
92
+ * @param {any[]} dataSource - Specifies the data source
93
93
  * @param {string} dataPath - Specifies the data path
94
94
  * @param {string} colorValuePath - Specifies the color value path
95
95
  * @param {string | string[]} propertyPath - Specifies the property path
@@ -100,28 +100,29 @@ export declare class Legend {
100
100
  private legendTextTrim;
101
101
  /**
102
102
  * To draw the legend shape and text.
103
+ *
103
104
  * @private
104
105
  */
105
106
  drawLegend(): void;
106
107
  /**
107
- * @param {string} page - Specifies the legend page.
108
+ * @param {number} page - Specifies the legend page.
108
109
  * @returns {void}
109
110
  * @private
110
111
  */
111
112
  drawLegendItem(page: number): void;
112
113
  legendHighLightAndSelection(targetElement: Element, value: string): void;
113
114
  private setColor;
114
- pushCollection(targetElement: Element, collection: any[], oldElement: any, shapeSettings: ShapeSettings): void;
115
+ pushCollection(targetElement: Element, collection: any[], oldElement: object, shapeSettings: ShapeSettings): void;
115
116
  private removeLegend;
116
117
  removeLegendHighlightCollection(): void;
117
118
  removeLegendSelectionCollection(targetElement: Element): void;
118
119
  removeShapeHighlightCollection(): void;
119
- shapeHighLightAndSelection(targetElement: Element, data: any, module: SelectionSettingsModel | HighlightSettingsModel, getValue: string, layerIndex: number): void;
120
+ shapeHighLightAndSelection(targetElement: Element, data: object, module: SelectionSettingsModel | HighlightSettingsModel, getValue: string, layerIndex: number): void;
120
121
  private isTargetSelected;
121
122
  private updateLegendElement;
122
123
  private getIndexofLegend;
123
124
  private removeAllSelections;
124
- legendIndexOnShape(data: any, index: number): any;
125
+ legendIndexOnShape(data: object, index: number): any;
125
126
  private shapeDataOnLegend;
126
127
  private shapesOfLegend;
127
128
  private legendToggle;