@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
package/src/maps/maps.js CHANGED
@@ -340,16 +340,19 @@ var Maps = /** @class */ (function (_super) {
340
340
  }
341
341
  });
342
342
  };
343
- /* eslint-disable @typescript-eslint/no-explicit-any */
343
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
344
344
  Maps.prototype.processAjaxRequest = function (layer, localAjax, type) {
345
345
  var _this = this;
346
346
  this.serverProcess['request']++;
347
347
  var fetchApiModule = new Fetch(localAjax.dataOptions, localAjax.type, localAjax.contentType);
348
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
348
349
  fetchApiModule.onSuccess = function (args) {
349
350
  if (!isNullOrUndefined(args.type) && args.type === 'application/octet-stream') {
350
351
  var reader_1 = new FileReader();
352
+ //eslint-disable-next-line @typescript-eslint/no-this-alias
351
353
  var map_1 = _this;
352
- reader_1.onload = function (data) {
354
+ // eslint-disable-next-line @typescript-eslint/tslint/config
355
+ reader_1.onload = function () {
353
356
  args = JSON.parse(reader_1.result.toString());
354
357
  map_1.processResponseJsonData('Fetch', args, layer, type);
355
358
  };
@@ -371,13 +374,17 @@ var Maps = /** @class */ (function (_super) {
371
374
  * @returns {void}
372
375
  * @private
373
376
  */
374
- Maps.prototype.processResponseJsonData = function (processType, data, layer, dataType) {
377
+ Maps.prototype.processResponseJsonData = function (processType,
378
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
379
+ data, layer, dataType) {
375
380
  this.serverProcess['response']++;
376
381
  if (processType) {
377
382
  if (dataType === 'ShapeData') {
383
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
378
384
  layer.shapeData = (processType === 'DataManager') ? processResult(data) : data;
379
385
  }
380
386
  else {
387
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
381
388
  layer.dataSource = (processType === 'DataManager') ? processResult(data) : data;
382
389
  }
383
390
  }
@@ -516,12 +523,14 @@ var Maps = /** @class */ (function (_super) {
516
523
  Maps.prototype.triggerZoomEvent = function () {
517
524
  var loadedArgs;
518
525
  var minMaxLatitudeLongitude = this.getMinMaxLatitudeLongitude();
526
+ // eslint-disable-next-line prefer-const
519
527
  loadedArgs = {
520
528
  maps: this, isResized: this.isResize, minLatitude: minMaxLatitudeLongitude.minLatitude,
521
529
  maxLatitude: minMaxLatitudeLongitude.maxLatitude, minLongitude: minMaxLatitudeLongitude.minLongitude,
522
530
  maxLongitude: minMaxLatitudeLongitude.maxLongitude, cancel: false, name: 'Loaded'
523
531
  };
524
532
  this.trigger('loaded', loadedArgs);
533
+ //eslint-enable @typescript-eslint/prefer-const
525
534
  };
526
535
  /**
527
536
  * To apply color to the initial selected marker
@@ -529,7 +538,7 @@ var Maps = /** @class */ (function (_super) {
529
538
  * @param {SelectionSettingsModel} selectionSettings - Specifies the selection settings
530
539
  * @param {Maps} map - Specifies the instance of the maps
531
540
  * @param {Element} targetElement - Specifies the target element
532
- * @param {any} data - Specifies the data
541
+ * @param {object} data - Specifies the data
533
542
  * @returns {void}
534
543
  * @private
535
544
  */
@@ -580,6 +589,7 @@ var Maps = /** @class */ (function (_super) {
580
589
  var selectionSettings = markerSettings.selectionSettings;
581
590
  if (selectionSettings.enable) {
582
591
  for (var i = 0; i < markerSettings.dataSource['length']; i++) {
592
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
583
593
  var data = markerSettings.dataSource[i];
584
594
  if (data['latitude'] === latitude && data['longitude'] === longitude) {
585
595
  var targetId = this.element.id + '_' + 'LayerIndex_' + layerIndex + '_MarkerIndex_' + markerIndex +
@@ -701,7 +711,9 @@ var Maps = /** @class */ (function (_super) {
701
711
  var mapsElement = document.getElementById(this.element.id);
702
712
  if (!isNullOrUndefined(mapsElement)) {
703
713
  var element = mapsElement.getBoundingClientRect();
704
- var minPosition = this.isTileMap ? this.pointToLatLong((this.mapAreaRect.x - this.margin.left), -this.mapAreaRect.y) : this.getGeoLocation(0, (this.mapAreaRect.x + element.left), this.mapAreaRect.y);
714
+ var minPosition = this.isTileMap ?
715
+ this.pointToLatLong((this.mapAreaRect.x - this.margin.left), -this.mapAreaRect.y) :
716
+ this.getGeoLocation(0, (this.mapAreaRect.x + element.left), this.mapAreaRect.y);
705
717
  var maxPosition = this.isTileMap ? this.pointToLatLong(this.mapAreaRect.width, (this.mapAreaRect.height - this.mapAreaRect.y)) :
706
718
  this.getGeoLocation(0, (this.mapAreaRect.x + element.left + this.mapAreaRect.width), (this.mapAreaRect.y + this.mapAreaRect.height));
707
719
  var MinMaxLatitudeLongitude = {
@@ -727,7 +739,7 @@ var Maps = /** @class */ (function (_super) {
727
739
  var templateElements = document.getElementsByClassName(this.element.id + '_template');
728
740
  if (!isNullOrUndefined(templateElements) && templateElements.length > 0 &&
729
741
  getElementByID(this.element.id + '_Layer_Collections') && !this.isTileMap) {
730
- Array.prototype.forEach.call(templateElements, function (templateGroupEle, i) {
742
+ Array.prototype.forEach.call(templateElements, function (templateGroupEle) {
731
743
  var offSetLetValue = 0;
732
744
  var offSetTopValue = 0;
733
745
  if (!isNullOrUndefined(templateGroupEle) && templateGroupEle.childElementCount > 0) {
@@ -739,9 +751,9 @@ var Maps = /** @class */ (function (_super) {
739
751
  offSetTopValue = _this.isTileMap ? 0 : (layerOffset.top < elementOffset.top) ?
740
752
  -(Math.abs(elementOffset.top - layerOffset.top)) : Math.abs(elementOffset.top - layerOffset.top);
741
753
  }
742
- Array.prototype.forEach.call(templateGroupEle.childNodes, function (currentTemplate, j) {
754
+ Array.prototype.forEach.call(templateGroupEle.childNodes, function (currentTemplate) {
743
755
  if (currentTemplate.id.indexOf('Marker') !== -1) {
744
- if (currentTemplate.style.visibility != "hidden") {
756
+ if (currentTemplate.style.visibility !== 'hidden') {
745
757
  var elementOffset_1 = getElementByID(currentTemplate.id).getBoundingClientRect();
746
758
  currentTemplate.style.left = parseFloat(currentTemplate.style.left) - (_this.isTileMap ? 0 : elementOffset_1.width / 2) + 'px';
747
759
  currentTemplate.style.top = parseFloat(currentTemplate.style.top) - (_this.isTileMap ? 0 : elementOffset_1.height / 2) + 'px';
@@ -800,6 +812,7 @@ var Maps = /** @class */ (function (_super) {
800
812
  Maps.prototype.findBaseAndSubLayers = function () {
801
813
  var _this = this;
802
814
  var baseIndex = this.baseLayerIndex;
815
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
803
816
  var mainLayers = [];
804
817
  var subLayers = [];
805
818
  this.layersCollection = [];
@@ -974,6 +987,7 @@ var Maps = /** @class */ (function (_super) {
974
987
  * @returns {void}
975
988
  * @private
976
989
  */
990
+ //eslint-disable-next-line @typescript-eslint/no-unused-vars
977
991
  Maps.prototype.mouseLeaveOnMap = function (e) {
978
992
  if (document.getElementsByClassName('highlightMapStyle').length > 0 && this.legendModule) {
979
993
  this.legendModule.removeShapeHighlightCollection();
@@ -999,7 +1013,7 @@ var Maps = /** @class */ (function (_super) {
999
1013
  Maps.prototype.keyboardHighlightSelection = function (id, key) {
1000
1014
  var layerIndex = parseInt(id.split('_LayerIndex_')[1].split('_')[0], 10);
1001
1015
  var shapeIndex = parseInt(id.split('_shapeIndex_')[1].split('_')[0], 10);
1002
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1016
+ //eslint-disable-next-line @typescript-eslint/no-explicit-any
1003
1017
  var shapeData = this.layers[layerIndex].shapeData['features']['length'] > shapeIndex ?
1004
1018
  this.layers[layerIndex].shapeData['features'][shapeIndex]['properties'] : null;
1005
1019
  var dataIndex = parseInt(id.split('_dataIndex_')[1].split('_')[0], 10);
@@ -1129,11 +1143,13 @@ var Maps = /** @class */ (function (_super) {
1129
1143
  };
1130
1144
  if (this.onclick) {
1131
1145
  eventArgs_1.name = onclick;
1146
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1132
1147
  this.trigger('onclick', eventArgs_1, function (mouseArgs) {
1133
1148
  _this.clickHandler(e, eventArgs_1, targetEle);
1134
1149
  });
1135
1150
  }
1136
1151
  else {
1152
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1137
1153
  this.trigger('click', eventArgs_1, function (mouseArgs) {
1138
1154
  _this.clickHandler(e, eventArgs_1, targetEle);
1139
1155
  });
@@ -1178,7 +1194,7 @@ var Maps = /** @class */ (function (_super) {
1178
1194
  };
1179
1195
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1180
1196
  Maps.prototype.getMarkerClickLocation = function (pageX, pageY, x, y, marker, isDragEnd) {
1181
- document.getElementById(this.element.id + "_svg").style.cursor = 'grabbing';
1197
+ document.getElementById(this.element.id + '_svg').style.cursor = 'grabbing';
1182
1198
  var targetElement = getElement(marker.targetId);
1183
1199
  var latLongValue = this.getClickLocation(marker.targetId, pageX, pageY, targetElement, x, y);
1184
1200
  var location = (this.isTileMap) ? convertTileLatLongToPoint(new MapLocation(latLongValue.longitude, latLongValue.latitude), this.tileZoomLevel, this.tileTranslatePoint, true) : convertGeoToPoint(latLongValue.latitude, latLongValue.longitude, this.mapLayerPanel.currentFactor, this.layersCollection[marker.layerIndex], this);
@@ -1197,9 +1213,24 @@ var Maps = /** @class */ (function (_super) {
1197
1213
  }
1198
1214
  return latLongValue;
1199
1215
  };
1200
- /** @private */
1216
+ /**
1217
+ * Gets the location of the mouse click
1218
+ *
1219
+ * @param {string} targetId - Specifies the ID for the target.
1220
+ * @param {number} pageX - Defines the page X position.
1221
+ * @param {number} pageY - Defines the page Y position.
1222
+ * @param {HTMLElement} targetElement - Specifies the target element on the event.
1223
+ * @param {number} x - Defines the x position in pixel.
1224
+ * @param {number} y - Defines the y position in pixel.
1225
+ * @param {string} type - Specifies the type.
1226
+ * @returns {GeoPosition} - Returns the position of the event
1227
+ *
1228
+ * @private
1229
+ *
1230
+ */
1201
1231
  Maps.prototype.getClickLocation = function (targetId, pageX, pageY, targetElement, x, y, type) {
1202
1232
  var layerIndex = 0;
1233
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1203
1234
  var latLongValue;
1204
1235
  if (targetId.indexOf('_LayerIndex_') !== -1 && !this.isTileMap && (!isNullOrUndefined(type) ||
1205
1236
  ((parseInt(this.mouseDownEvent['x'], 10) === parseInt(this.mouseClickEvent['x'], 10)) &&
@@ -1207,6 +1238,7 @@ var Maps = /** @class */ (function (_super) {
1207
1238
  layerIndex = parseFloat(targetId.split('_LayerIndex_')[1].split('_')[0]);
1208
1239
  if (this.layers[layerIndex].geometryType === 'Normal') {
1209
1240
  if (targetId.indexOf('_shapeIndex_') > -1) {
1241
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1210
1242
  var immediateParent = targetElement.parentElement;
1211
1243
  var parentElement = immediateParent.id.indexOf('_Point_Group') > -1 || immediateParent.id.indexOf('_LineString_Group') > -1
1212
1244
  || immediateParent.id.indexOf('_MultiLineString_Group') > -1 || immediateParent.id.indexOf('_Polygon_Group') > -1 ?
@@ -1220,9 +1252,11 @@ var Maps = /** @class */ (function (_super) {
1220
1252
  longitude: Math.abs((location_2.x / zoomScaleValue) + this.baseMapBounds.longitude.min)
1221
1253
  };
1222
1254
  if (this.baseMapBounds.longitude.min < 0 && minLongitude > location_2.x) {
1255
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1223
1256
  latLongValue.longitude = -latLongValue.longitude;
1224
1257
  }
1225
1258
  if (this.baseMapBounds.latitude.min < 0 && minLatitude > location_2.y) {
1259
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1226
1260
  latLongValue.latitude = -latLongValue.latitude;
1227
1261
  }
1228
1262
  }
@@ -1230,6 +1264,7 @@ var Maps = /** @class */ (function (_super) {
1230
1264
  var markerIndex = parseInt(targetId.split('_MarkerIndex_')[1].split('_')[0], 10);
1231
1265
  var dataIndex = parseInt(targetId.split('_dataIndex_')[1].split('_')[0], 10);
1232
1266
  if (!isNaN(markerIndex) && !isNaN(dataIndex)) {
1267
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1233
1268
  var dataObject = this.layers[layerIndex].markerSettings[markerIndex].dataSource[dataIndex];
1234
1269
  latLongValue = { latitude: dataObject['latitude'], longitude: dataObject.longitude };
1235
1270
  }
@@ -1244,13 +1279,17 @@ var Maps = /** @class */ (function (_super) {
1244
1279
  var minLongitude = Math.abs((-this.baseMapBounds.longitude.min) * this.mapLayerPanel.currentFactor);
1245
1280
  var minLatitude = Math.abs(this.baseMapBounds.latitude.max * this.mapLayerPanel.currentFactor);
1246
1281
  latLongValue = {
1247
- latitude: Math.abs(this.baseMapBounds.latitude.max - (location_3.y / (this.mapLayerPanel.currentFactor * this.scale))),
1248
- longitude: Math.abs((location_3.x / (this.mapLayerPanel.currentFactor * this.scale)) + this.baseMapBounds.longitude.min)
1282
+ latitude: Math.abs(this.baseMapBounds.latitude.max
1283
+ - (location_3.y / (this.mapLayerPanel.currentFactor * this.scale))),
1284
+ longitude: Math.abs((location_3.x / (this.mapLayerPanel.currentFactor * this.scale))
1285
+ + this.baseMapBounds.longitude.min)
1249
1286
  };
1250
1287
  if (this.baseMapBounds.longitude.min < 0 && minLongitude > location_3.x) {
1288
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1251
1289
  latLongValue.longitude = -latLongValue.longitude;
1252
1290
  }
1253
1291
  if (this.baseMapBounds.latitude.min < 0 && minLatitude > location_3.y) {
1292
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1254
1293
  latLongValue.latitude = -latLongValue.latitude;
1255
1294
  }
1256
1295
  }
@@ -1286,25 +1325,17 @@ var Maps = /** @class */ (function (_super) {
1286
1325
  * @private
1287
1326
  */
1288
1327
  Maps.prototype.mouseEndOnMap = function (e) {
1289
- var targetEle = e.target;
1290
- var targetId = targetEle.id;
1291
1328
  var pageX;
1292
- var latitude = null;
1293
- var longitude = null;
1294
1329
  var pageY;
1295
- var target;
1296
1330
  var touchArg;
1297
1331
  var layerX = 0;
1298
1332
  var layerY = 0;
1299
- var rect = this.element.getBoundingClientRect();
1300
- var element = e.target;
1301
1333
  if (e.type.indexOf('touch') !== -1) {
1302
1334
  this.isTouch = true;
1303
1335
  touchArg = e;
1304
1336
  layerX = pageX = touchArg.changedTouches[0].pageX;
1305
1337
  pageY = touchArg.changedTouches[0].pageY;
1306
1338
  layerY = pageY - (this.isTileMap ? 10 : 0);
1307
- target = touchArg.target;
1308
1339
  this.mouseClickEvent = { x: pageX, y: pageY };
1309
1340
  }
1310
1341
  else {
@@ -1313,19 +1344,11 @@ var Maps = /** @class */ (function (_super) {
1313
1344
  pageY = e.pageY;
1314
1345
  layerX = e['layerX'];
1315
1346
  layerY = e['layerY'] - (this.isTileMap ? 10 : 0);
1316
- target = e.target;
1317
1347
  }
1318
1348
  if (this.isTileMap) {
1319
1349
  this.removeTileMap();
1320
1350
  }
1321
1351
  if (this.isTouch) {
1322
- if (targetEle.id.indexOf('_ToolBar') === -1) {
1323
- var latLongValue = this.getClickLocation(targetId, pageX, pageY, targetEle, pageX, pageY);
1324
- if (!isNullOrUndefined(latLongValue)) {
1325
- latitude = latLongValue.latitude;
1326
- longitude = latLongValue.longitude;
1327
- }
1328
- }
1329
1352
  this.titleTooltip(e, pageX, pageY, true);
1330
1353
  if (!isNullOrUndefined(this.legendModule)) {
1331
1354
  this.legendTooltip(e, e.pageX, e.pageY, true);
@@ -1336,12 +1359,13 @@ var Maps = /** @class */ (function (_super) {
1336
1359
  e.preventDefault();
1337
1360
  }
1338
1361
  if (!isNullOrUndefined(this.markerDragArgument)) {
1362
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1339
1363
  var marker = this.markerDragArgument;
1340
1364
  this.mouseClickEvent['x'] = this.mouseDownEvent['x'];
1341
1365
  this.mouseClickEvent['y'] = this.mouseDownEvent['y'];
1342
1366
  var latLongValue = this.getMarkerClickLocation(pageX, pageY, layerX, layerY, this.markerDragArgument, true);
1343
1367
  var markerObject = this.layers[marker.layerIndex].markerSettings[marker.markerIndex];
1344
- document.getElementById(this.element.id + "_svg").style.cursor = markerObject.enableDrag ? 'pointer' : 'grabbing';
1368
+ document.getElementById(this.element.id + '_svg').style.cursor = markerObject.enableDrag ? 'pointer' : 'grabbing';
1345
1369
  var dragEventArgs = {
1346
1370
  name: 'markerDragEnd', x: pageX, y: pageY,
1347
1371
  latitude: latLongValue.latitude, longitude: latLongValue.longitude,
@@ -1368,7 +1392,7 @@ var Maps = /** @class */ (function (_super) {
1368
1392
  this.trigger('markerDragEnd', dragEventArgs);
1369
1393
  }
1370
1394
  else {
1371
- document.getElementById(this.element.id + "_svg").style.cursor = 'auto';
1395
+ document.getElementById(this.element.id + '_svg').style.cursor = 'auto';
1372
1396
  }
1373
1397
  if (this.zoomModule && this.isDevice) {
1374
1398
  this.zoomModule.removeToolbarOpacity(this.isTileMap ? Math.round(this.tileZoomLevel) : this.scale, this.element.id + '_Zooming_');
@@ -1384,18 +1408,15 @@ var Maps = /** @class */ (function (_super) {
1384
1408
  * @private
1385
1409
  */
1386
1410
  Maps.prototype.mouseDownOnMap = function (e) {
1387
- var pageX;
1388
- var pageY;
1389
- var target;
1390
- var touchArg;
1391
1411
  this.mouseDownEvent = { x: e.x, y: e.y };
1412
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1392
1413
  if (e.type.indexOf('touch') !== -1 && e.changedTouches) {
1414
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1393
1415
  this.mouseDownEvent = { x: e.changedTouches[0].pageX, y: e.changedTouches[0].pageY };
1394
1416
  }
1395
1417
  if (this.isDevice && !isNullOrUndefined(this.mapsTooltipModule)) {
1396
1418
  this.mapsTooltipModule.renderTooltip(e);
1397
1419
  }
1398
- var rect = this.element.getBoundingClientRect();
1399
1420
  var element = e.target;
1400
1421
  this.markerDragId = element.id;
1401
1422
  var animatedTiles = document.getElementById(this.element.id + '_animated_tiles');
@@ -1426,7 +1447,7 @@ var Maps = /** @class */ (function (_super) {
1426
1447
  Maps.prototype.mergeCluster = function () {
1427
1448
  if (this.markerModule && (this.markerModule.sameMarkerData.length > 0) &&
1428
1449
  (this.zoomModule ? this.zoomModule.isSingleClick : true)) {
1429
- mergeSeparateCluster(this.markerModule.sameMarkerData, this, getElement(this.element.id + '_Markers_Group'));
1450
+ mergeSeparateCluster(this.markerModule.sameMarkerData, this);
1430
1451
  this.markerModule.sameMarkerData = [];
1431
1452
  }
1432
1453
  };
@@ -1467,6 +1488,7 @@ var Maps = /** @class */ (function (_super) {
1467
1488
  var targetElement = e.target;
1468
1489
  var targetId = targetElement.id;
1469
1490
  var layerIndex = 0;
1491
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1470
1492
  var latLongValue;
1471
1493
  var latitude = null;
1472
1494
  var longitude = null;
@@ -1499,11 +1521,7 @@ var Maps = /** @class */ (function (_super) {
1499
1521
  * @private
1500
1522
  */
1501
1523
  Maps.prototype.mouseMoveOnMap = function (e) {
1502
- var pageX;
1503
- var pageY;
1504
- var touchArg;
1505
1524
  var target;
1506
- var touches = null;
1507
1525
  target = (e.type === 'touchmove') ? e.target :
1508
1526
  target = e.target;
1509
1527
  // if (target.id.indexOf('shapeIndex') !== -1 && !this.highlightSettings.enable) {
@@ -1516,8 +1534,8 @@ var Maps = /** @class */ (function (_super) {
1516
1534
  if (this.bubbleModule) {
1517
1535
  this.bubbleModule.bubbleMove(e);
1518
1536
  }
1519
- if (target.id.indexOf('MarkerIndex') == -1) {
1520
- document.getElementById(this.element.id + "_svg").style.cursor = 'auto';
1537
+ if (target.id.indexOf('MarkerIndex') === -1) {
1538
+ document.getElementById(this.element.id + '_svg').style.cursor = 'auto';
1521
1539
  }
1522
1540
  this.onMouseMove(e);
1523
1541
  this.notify(Browser.touchMoveEvent, e);
@@ -1534,12 +1552,10 @@ var Maps = /** @class */ (function (_super) {
1534
1552
  this.mouseMoveId = element['id'];
1535
1553
  var pageX;
1536
1554
  var pageY;
1537
- var target;
1538
- var touchArg;
1539
1555
  var touches = null;
1540
1556
  var layerX = 0;
1541
1557
  var layerY = 0;
1542
- if (e.type.indexOf('touch') == -1) {
1558
+ if (e.type.indexOf('touch') === -1) {
1543
1559
  pageX = e.pageX;
1544
1560
  pageY = e.pageY;
1545
1561
  layerX = e['layerX'];
@@ -1555,6 +1571,7 @@ var Maps = /** @class */ (function (_super) {
1555
1571
  layerY = pageY = touches[0].clientY - (this.isTileMap ? 10 : 0);
1556
1572
  }
1557
1573
  if (!isNullOrUndefined(this.markerDragArgument)) {
1574
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1558
1575
  var marker = this.markerDragArgument;
1559
1576
  this.mouseClickEvent['x'] = this.mouseDownEvent['x'];
1560
1577
  this.mouseClickEvent['y'] = this.mouseDownEvent['y'];
@@ -1570,6 +1587,7 @@ var Maps = /** @class */ (function (_super) {
1570
1587
  var legendText;
1571
1588
  var page = this.legendModule.currentPage;
1572
1589
  var legendIndex = event.target.id.split('_Index_')[1];
1590
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1573
1591
  var collection;
1574
1592
  page = this.legendModule.totalPages.length <= this.legendModule.currentPage
1575
1593
  ? this.legendModule.totalPages.length - 1 : this.legendModule.currentPage < 0 ?
@@ -1612,6 +1630,7 @@ var Maps = /** @class */ (function (_super) {
1612
1630
  *
1613
1631
  * @param e - Specifies the arguments of window resize event.
1614
1632
  */
1633
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1615
1634
  Maps.prototype.mapsOnResize = function (e) {
1616
1635
  var _this = this;
1617
1636
  if (!this.isDestroyed && !this.isExportInitialTileMap) {
@@ -1646,6 +1665,8 @@ var Maps = /** @class */ (function (_super) {
1646
1665
  * This method is used to zoom the map by specifying the center position.
1647
1666
  *
1648
1667
  * @param {number} centerPosition - Specifies the location of the maps to be zoomed as geographical coordinates.
1668
+ * @param {number} centerPosition.longitude - Specifies the longitude of the location to be zoomed.
1669
+ * @param {number} centerPosition.latitude - Specifies the latitude of the location to be zoomed.
1649
1670
  * @param {number} zoomFactor - Specifies the zoom factor for the maps.
1650
1671
  * @returns {void}
1651
1672
  */
@@ -1794,9 +1815,11 @@ var Maps = /** @class */ (function (_super) {
1794
1815
  var dataIndex = void 0;
1795
1816
  var shapeIndex = void 0;
1796
1817
  var indexValue = void 0;
1818
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1797
1819
  var shapeDataValue = void 0;
1798
1820
  var data = void 0;
1799
1821
  var shapeData = this.layers[layerIndex].shapeData['features'];
1822
+ /* eslint-enable @typescript-eslint/no-explicit-any */
1800
1823
  for (var i = 0; i < shapeData.length; i++) {
1801
1824
  for (var j = 0; j < popertyNameArray.length; j++) {
1802
1825
  var propertyName_1 = !isNullOrUndefined(shapeData[i]['properties'][popertyNameArray[j]])
@@ -1806,7 +1829,9 @@ var Maps = /** @class */ (function (_super) {
1806
1829
  var k = void 0;
1807
1830
  if (propertyName_1 === shapeName) {
1808
1831
  if (!isNullOrUndefined(this.layers[layerIndex].shapeSettings.colorValuePath)) {
1809
- k = checkShapeDataFields(this.layers[layerIndex].dataSource, shapeData[i]['properties'], this.layers[layerIndex].shapeDataPath, this.layers[layerIndex].shapePropertyPath, this.layers[layerIndex]);
1832
+ k = checkShapeDataFields(
1833
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1834
+ this.layers[layerIndex].dataSource, shapeData[i]['properties'], this.layers[layerIndex].shapeDataPath, this.layers[layerIndex].shapePropertyPath, this.layers[layerIndex]);
1810
1835
  }
1811
1836
  var baseLayer = this.layers[layerIndex];
1812
1837
  if (this.baseLayerIndex >= 0 && baseLayer.isBaseLayer) {
@@ -2088,11 +2113,6 @@ var Maps = /** @class */ (function (_super) {
2088
2113
  var isMarker = false;
2089
2114
  var isLayer = false;
2090
2115
  var isStaticMapType = false;
2091
- var layerEle = void 0;
2092
- if (newProp['layers']) {
2093
- var newLayerLength = Object.keys(newProp['layers']).length;
2094
- layerEle = document.getElementById(this.element.id + '_LayerIndex_' + (newLayerLength - 1));
2095
- }
2096
2116
  for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
2097
2117
  var prop = _a[_i];
2098
2118
  switch (prop) {
@@ -2359,6 +2379,8 @@ var Maps = /** @class */ (function (_super) {
2359
2379
  };
2360
2380
  /**
2361
2381
  * To find marker visibility
2382
+ *
2383
+ * @returns {boolean} - Returns whether the bubble is visible or not.
2362
2384
  */
2363
2385
  Maps.prototype.isBubbleVisible = function () {
2364
2386
  var isVisible = false;
@@ -2416,12 +2438,14 @@ var Maps = /** @class */ (function (_super) {
2416
2438
  allowDownload = true;
2417
2439
  }
2418
2440
  if ((type !== 'PDF') && (this.allowImageExport) && (this.imageExportModule)) {
2419
- return new Promise(function (resolve, reject) {
2441
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2442
+ return new Promise(function (resolve) {
2420
2443
  resolve(_this.imageExportModule.export(_this, type, fileName, allowDownload));
2421
2444
  });
2422
2445
  }
2423
2446
  else if ((this.allowPdfExport) && (this.pdfExportModule)) {
2424
- return new Promise(function (resolve, reject) {
2447
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2448
+ return new Promise(function (resolve) {
2425
2449
  resolve(_this.pdfExportModule.export(_this, type, fileName, allowDownload, orientation));
2426
2450
  });
2427
2451
  }
@@ -2437,10 +2461,11 @@ var Maps = /** @class */ (function (_super) {
2437
2461
  Maps.prototype.getBingUrlTemplate = function (url) {
2438
2462
  var promise;
2439
2463
  if (!this.isDestroyed) {
2440
- promise = new Promise(function (resolve, reject) {
2464
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2465
+ promise = new Promise(function (resolve) {
2441
2466
  var fetchApi = new Fetch({
2442
2467
  url: url
2443
- });
2468
+ }); // eslint-disable-next-line @typescript-eslint/no-explicit-any
2444
2469
  fetchApi.onSuccess = function (json) {
2445
2470
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2446
2471
  var resource = json['resourceSets'][0]['resources'][0];
@@ -2460,7 +2485,7 @@ var Maps = /** @class */ (function (_super) {
2460
2485
  * @param {boolean} istooltipVisible - Specifies whether the tooltip is visible or not.
2461
2486
  * @param {boolean} isSelection - Specifies whether the shape is selectd or not.
2462
2487
  * @param {boolean} isHighlight - Specfies whether the shape is highlighted or not.
2463
- * @returns {boolean} - Returns the boolean value
2488
+ * @returns {object} - Returns the boolean values in object.
2464
2489
  */
2465
2490
  Maps.prototype.findVisibleLayers = function (layers, isLayerVisible, isBubblevisible, istooltipVisible, isSelection, isHighlight) {
2466
2491
  if (isLayerVisible === void 0) { isLayerVisible = false; }
@@ -2482,8 +2507,10 @@ var Maps = /** @class */ (function (_super) {
2482
2507
  for (var _a = 0, navigationLine_1 = navigationLine; _a < navigationLine_1.length; _a++) {
2483
2508
  var navigation = navigationLine_1[_a];
2484
2509
  if (navigation.visible) {
2485
- isSelection = (!isNullOrUndefined(navigation.highlightSettings) && navigation.highlightSettings.enable) || isSelection;
2486
- isHighlight = (!isNullOrUndefined(navigation.selectionSettings) && navigation.selectionSettings.enable) || isHighlight;
2510
+ isSelection = (!isNullOrUndefined(navigation.highlightSettings) &&
2511
+ navigation.highlightSettings.enable) || isSelection;
2512
+ isHighlight = (!isNullOrUndefined(navigation.selectionSettings) &&
2513
+ navigation.selectionSettings.enable) || isHighlight;
2487
2514
  }
2488
2515
  }
2489
2516
  for (var _b = 0, _c = polygonSetting.polygons; _b < _c.length; _b++) {
@@ -2545,6 +2572,7 @@ var Maps = /** @class */ (function (_super) {
2545
2572
  var pageX = x - (isNullOrUndefined(this.markerDragArgument) ? container.offsetLeft : 0);
2546
2573
  var pageY = y - (isNullOrUndefined(this.markerDragArgument) ? container.offsetTop : 0);
2547
2574
  var currentLayer = this.layersCollection[layerIndex];
2575
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2548
2576
  var translate = getTranslate(this, currentLayer, false);
2549
2577
  var translatePoint = translate['location'];
2550
2578
  var translatePointX = translatePoint.x * this.scale;
@@ -2574,6 +2602,7 @@ var Maps = /** @class */ (function (_super) {
2574
2602
  if (!this.isDestroyed) {
2575
2603
  var container = document.getElementById(this.element.id);
2576
2604
  var ele = document.getElementById(this.element.id + '_tile_parent');
2605
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2577
2606
  var latLong = this.pointToLatLong(x + this.mapAreaRect.x - (ele.offsetLeft - (isNullOrUndefined(this.markerDragArgument) ? container.offsetLeft : 0)), y + this.mapAreaRect.y - (ele.offsetTop - (isNullOrUndefined(this.markerDragArgument) ? container.offsetTop : 0)));
2578
2607
  latitude = latLong['latitude'];
2579
2608
  longitude = latLong['longitude'];
@@ -574,7 +574,7 @@ export interface MarkerClusterSettingsModel {
574
574
  * Enables or disables intense marker clustering for improved accuracy.
575
575
  * The default value is true, and clustering logic will be executed twice for improved accuracy.
576
576
  * If set to false, the clustering logic will only be executed once, increasing performance while maintaining decent accuracy.
577
- *
577
+ *
578
578
  * @default true
579
579
  */
580
580
  allowDeepClustering?: boolean;
@@ -930,7 +930,7 @@ export interface PolygonSettingsModel {
930
930
  highlightSettings?: HighlightSettingsModel;
931
931
 
932
932
  /**
933
- * Specifies the properties such as visibility, fill, border and text style to customize the tooltip.
933
+ * Specifies the properties such as visibility, fill, border and text style to customize the tooltip.
934
934
  */
935
935
  tooltipSettings?: PolygonTooltipSettingsModel;
936
936
 
@@ -1270,6 +1270,7 @@ export interface ZoomSettingsModel {
1270
1270
 
1271
1271
  /**
1272
1272
  * Gets or sets the items that are to be shown in the zooming toolbar of the maps. Zoom-in, zoom-out and reset buttons are displayed by default.
1273
+ *
1273
1274
 
1274
1275
  */
1275
1276
  toolbars?: string[];
@@ -793,17 +793,17 @@ export declare class PolygonSetting extends ChildProperty<PolygonSettings> {
793
793
  */
794
794
  points: Coordinate[];
795
795
  /**
796
- * Specifies the tooltip text to be displayed for the polygon shape. If it is not set, the tooltip will not be displayed.
797
- *
798
- * @default ''
799
- */
796
+ * Specifies the tooltip text to be displayed for the polygon shape. If it is not set, the tooltip will not be displayed.
797
+ *
798
+ * @default ''
799
+ */
800
800
  tooltipText: string;
801
801
  /**
802
- * Specifies any HTML content as a tooltip on the polygon shape. If it is not set, the tooltip will not be displayed.
803
- *
804
- * @default ''
805
- * @aspType string
806
- */
802
+ * Specifies any HTML content as a tooltip on the polygon shape. If it is not set, the tooltip will not be displayed.
803
+ *
804
+ * @default ''
805
+ * @aspType string
806
+ */
807
807
  tooltipTemplate: string | Function;
808
808
  }
809
809
  /**
@@ -1108,6 +1108,7 @@ export declare class ZoomSettings extends ChildProperty<ZoomSettings> {
1108
1108
  verticalAlignment: Alignment;
1109
1109
  /**
1110
1110
  * Gets or sets the items that are to be shown in the zooming toolbar of the maps. Zoom-in, zoom-out and reset buttons are displayed by default.
1111
+ *
1111
1112
 
1112
1113
  */
1113
1114
  toolbars: string[];
@@ -1155,7 +1155,7 @@ export { MarkerBase };
1155
1155
  */
1156
1156
  var MarkerSettings = /** @class */ (function (_super) {
1157
1157
  __extends(MarkerSettings, _super);
1158
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1158
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
1159
1159
  function MarkerSettings(parent, propName, defaultValue, isArray) {
1160
1160
  return _super.call(this, parent, propName, defaultValue, isArray) || this;
1161
1161
  }
@@ -181,7 +181,7 @@ var ImageExport = /** @class */ (function () {
181
181
  * @returns {void}
182
182
  * @private
183
183
  */
184
- // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
184
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
185
185
  ImageExport.prototype.destroy = function () { };
186
186
  return ImageExport;
187
187
  }());
@@ -10,7 +10,7 @@ var PdfExport = /** @class */ (function () {
10
10
  * Constructor for Maps
11
11
  *
12
12
  */
13
- // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
13
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
14
14
  function PdfExport() {
15
15
  }
16
16
  /**
@@ -26,7 +26,7 @@ var PdfExport = /** @class */ (function () {
26
26
  */
27
27
  PdfExport.prototype.export = function (maps, type, fileName, allowDownload, orientation) {
28
28
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
29
- var promise = new Promise(function (resolve, reject) {
29
+ var promise = new Promise(function (resolve) {
30
30
  if (maps.isTileMap) {
31
31
  maps.isExportInitialTileMap = true;
32
32
  }
@@ -165,7 +165,7 @@ var PdfExport = /** @class */ (function () {
165
165
  * @returns {void}
166
166
  * @private
167
167
  */
168
- // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
168
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
169
169
  PdfExport.prototype.destroy = function () { };
170
170
  return PdfExport;
171
171
  }());
@@ -786,6 +786,7 @@ export interface IMapZoomEventArgs extends IMinMaxLatitudeLongitude, IMapsEventA
786
786
  }
787
787
  /**
788
788
  * Specifies the theme style for maps.
789
+ *
789
790
  * @private
790
791
  */
791
792
  export interface IThemeStyle {
@@ -30,6 +30,7 @@ var Print = /** @class */ (function () {
30
30
  var argsData = {
31
31
  cancel: false, htmlContent: this.getHTMLContent(maps, elements), name: beforePrint
32
32
  };
33
+ //eslint-disable-next-line @typescript-eslint/no-unused-vars
33
34
  maps.trigger('beforePrint', argsData, function (beforePrintArgs) {
34
35
  if (!argsData.cancel) {
35
36
  printFunction(argsData.htmlContent, printWindow);
@@ -47,6 +48,7 @@ var Print = /** @class */ (function () {
47
48
  Print.prototype.getHTMLContent = function (maps, elements) {
48
49
  var div = createElement('div');
49
50
  var divElement = maps.element.cloneNode(true);
51
+ //eslint-disable-next-line @typescript-eslint/no-explicit-any
50
52
  var backgroundElement = (!maps.isTileMap ? divElement.getElementsByTagName('svg')[0] : divElement.getElementsByTagName('svg')[1]);
51
53
  if (!isNullOrUndefined(backgroundElement)) {
52
54
  backgroundElement = backgroundElement.childNodes[0];