@syncfusion/ej2-maps 25.2.4 → 25.2.5

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 (52) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/ej2-maps.min.js +2 -2
  3. package/dist/ej2-maps.umd.min.js +2 -2
  4. package/dist/ej2-maps.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-maps.es2015.js +322 -202
  6. package/dist/es6/ej2-maps.es2015.js.map +1 -1
  7. package/dist/es6/ej2-maps.es5.js +331 -205
  8. package/dist/es6/ej2-maps.es5.js.map +1 -1
  9. package/dist/global/ej2-maps.min.js +2 -2
  10. package/dist/global/ej2-maps.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +7 -7
  13. package/src/maps/layers/bubble.d.ts +3 -4
  14. package/src/maps/layers/bubble.js +3 -4
  15. package/src/maps/layers/color-mapping.d.ts +2 -2
  16. package/src/maps/layers/color-mapping.js +2 -2
  17. package/src/maps/layers/data-label.d.ts +1 -1
  18. package/src/maps/layers/data-label.js +1 -1
  19. package/src/maps/layers/layer-panel.d.ts +7 -7
  20. package/src/maps/layers/layer-panel.js +11 -20
  21. package/src/maps/layers/legend.d.ts +9 -0
  22. package/src/maps/layers/legend.js +96 -19
  23. package/src/maps/layers/marker.d.ts +8 -8
  24. package/src/maps/layers/marker.js +8 -8
  25. package/src/maps/layers/navigation-selected-line.d.ts +1 -1
  26. package/src/maps/layers/navigation-selected-line.js +1 -1
  27. package/src/maps/layers/polygon.d.ts +1 -1
  28. package/src/maps/layers/polygon.js +1 -1
  29. package/src/maps/maps.d.ts +24 -26
  30. package/src/maps/maps.js +32 -30
  31. package/src/maps/model/base-model.d.ts +18 -2
  32. package/src/maps/model/base.d.ts +16 -2
  33. package/src/maps/model/base.js +7 -1
  34. package/src/maps/model/constants.d.ts +0 -4
  35. package/src/maps/model/constants.js +0 -4
  36. package/src/maps/model/interface.d.ts +2 -1
  37. package/src/maps/model/print.d.ts +3 -3
  38. package/src/maps/model/print.js +3 -3
  39. package/src/maps/model/theme.d.ts +1 -1
  40. package/src/maps/model/theme.js +1 -1
  41. package/src/maps/user-interaction/annotation.d.ts +1 -2
  42. package/src/maps/user-interaction/annotation.js +1 -2
  43. package/src/maps/user-interaction/highlight.d.ts +4 -4
  44. package/src/maps/user-interaction/highlight.js +4 -4
  45. package/src/maps/user-interaction/selection.d.ts +5 -5
  46. package/src/maps/user-interaction/selection.js +5 -5
  47. package/src/maps/user-interaction/tooltip.d.ts +6 -6
  48. package/src/maps/user-interaction/tooltip.js +18 -11
  49. package/src/maps/user-interaction/zoom.d.ts +6 -4
  50. package/src/maps/user-interaction/zoom.js +23 -10
  51. package/src/maps/utils/helper.d.ts +87 -72
  52. package/src/maps/utils/helper.js +114 -78
@@ -31,7 +31,7 @@ export declare class Marker {
31
31
  */
32
32
  private calculateIndividualLayerMarkerZoomLevel;
33
33
  /**
34
- * To calculate center position and factor value dynamically
34
+ * To calculate center position and factor value dynamically.
35
35
  *
36
36
  * @param {LayerSettings[]} layersCollection - Specifies the layer settings instance.
37
37
  * @returns {void}
@@ -39,7 +39,7 @@ export declare class Marker {
39
39
  */
40
40
  calculateZoomCenterPositionAndFactor(layersCollection: LayerSettings[]): void;
41
41
  /**
42
- * To check and trigger marker click event
42
+ * To check and trigger marker click event.
43
43
  *
44
44
  * @param {PointerEvent} e - Specifies the pointer event argument.
45
45
  * @returns {void}
@@ -47,7 +47,7 @@ export declare class Marker {
47
47
  */
48
48
  markerClick(e: PointerEvent): void;
49
49
  /**
50
- * To check and trigger Cluster click event
50
+ * To check and trigger Cluster click event.
51
51
  *
52
52
  * @param {PointerEvent} e - Specifies the pointer event argument.
53
53
  * @returns {void}
@@ -55,14 +55,14 @@ export declare class Marker {
55
55
  */
56
56
  markerClusterClick(e: PointerEvent): void;
57
57
  /**
58
- * To get marker from target id
58
+ * To get marker from target id.
59
59
  *
60
60
  * @param {string} target - Specifies the target
61
61
  * @returns {object} - Returns the marker, data, clusterCollection, markCollection
62
62
  */
63
63
  private getMarker;
64
64
  /**
65
- * To check and trigger marker move event
65
+ * To check and trigger marker move event.
66
66
  *
67
67
  * @param {PointerEvent} e - Specifies the pointer event argument.
68
68
  * @returns {void}
@@ -70,15 +70,15 @@ export declare class Marker {
70
70
  */
71
71
  markerMove(e: PointerEvent): void;
72
72
  /**
73
- * To check and trigger cluster move event
73
+ * To check and trigger cluster move event.
74
74
  *
75
75
  * @param {PointerEvent} e - Specifies the pointer event argument.
76
76
  * @returns {void}
77
77
  * @private
78
78
  */
79
79
  markerClusterMouseMove(e: PointerEvent): void;
80
- /** @private
81
- *
80
+ /**
81
+ * @private
82
82
  * @returns {void}
83
83
  */
84
84
  initializeMarkerClusterList(): void;
@@ -159,7 +159,7 @@ var Marker = /** @class */ (function () {
159
159
  return scaleFactor;
160
160
  };
161
161
  /**
162
- * To calculate center position and factor value dynamically
162
+ * To calculate center position and factor value dynamically.
163
163
  *
164
164
  * @param {LayerSettings[]} layersCollection - Specifies the layer settings instance.
165
165
  * @returns {void}
@@ -288,7 +288,7 @@ var Marker = /** @class */ (function () {
288
288
  }
289
289
  };
290
290
  /**
291
- * To check and trigger marker click event
291
+ * To check and trigger marker click event.
292
292
  *
293
293
  * @param {PointerEvent} e - Specifies the pointer event argument.
294
294
  * @returns {void}
@@ -350,7 +350,7 @@ var Marker = /** @class */ (function () {
350
350
  }
351
351
  };
352
352
  /**
353
- * To check and trigger Cluster click event
353
+ * To check and trigger Cluster click event.
354
354
  *
355
355
  * @param {PointerEvent} e - Specifies the pointer event argument.
356
356
  * @returns {void}
@@ -389,7 +389,7 @@ var Marker = /** @class */ (function () {
389
389
  this.maps.trigger(markerClusterClick, eventArgs);
390
390
  };
391
391
  /**
392
- * To get marker from target id
392
+ * To get marker from target id.
393
393
  *
394
394
  * @param {string} target - Specifies the target
395
395
  * @returns {object} - Returns the marker, data, clusterCollection, markCollection
@@ -445,7 +445,7 @@ var Marker = /** @class */ (function () {
445
445
  return null;
446
446
  };
447
447
  /**
448
- * To check and trigger marker move event
448
+ * To check and trigger marker move event.
449
449
  *
450
450
  * @param {PointerEvent} e - Specifies the pointer event argument.
451
451
  * @returns {void}
@@ -471,7 +471,7 @@ var Marker = /** @class */ (function () {
471
471
  this.maps.trigger(markerMouseMove, eventArgs);
472
472
  };
473
473
  /**
474
- * To check and trigger cluster move event
474
+ * To check and trigger cluster move event.
475
475
  *
476
476
  * @param {PointerEvent} e - Specifies the pointer event argument.
477
477
  * @returns {void}
@@ -495,8 +495,8 @@ var Marker = /** @class */ (function () {
495
495
  };
496
496
  this.maps.trigger(markerClusterMouseMove, eventArgs);
497
497
  };
498
- /** @private
499
- *
498
+ /**
499
+ * @private
500
500
  * @returns {void}
501
501
  */
502
502
  Marker.prototype.initializeMarkerClusterList = function () {
@@ -7,7 +7,7 @@ export declare class NavigationLine {
7
7
  private maps;
8
8
  constructor(maps: Maps);
9
9
  /**
10
- * To render navigation line for maps
10
+ * To render navigation line for maps.
11
11
  *
12
12
  * @param {LayerSettings} layer - Specifies the layer instance to which the navigation line is to be rendered.
13
13
  * @param {number} factor - Specifies the current zoom factor of the Maps.
@@ -9,7 +9,7 @@ var NavigationLine = /** @class */ (function () {
9
9
  this.maps = maps;
10
10
  }
11
11
  /**
12
- * To render navigation line for maps
12
+ * To render navigation line for maps.
13
13
  *
14
14
  * @param {LayerSettings} layer - Specifies the layer instance to which the navigation line is to be rendered.
15
15
  * @param {number} factor - Specifies the current zoom factor of the Maps.
@@ -5,7 +5,7 @@ import { Maps } from '../../index';
5
5
  export declare class Polygon {
6
6
  constructor(maps: Maps);
7
7
  /**
8
- * To render polygon for maps
8
+ * To render polygon for maps.
9
9
  *
10
10
  * @param {Maps} maps - Specifies the layer instance to which the polygon is to be rendered.
11
11
  * @param {number} layerIndex -Specifies the index of current layer.
@@ -10,7 +10,7 @@ var Polygon = /** @class */ (function () {
10
10
  /* eslint-enable @typescript-eslint/no-unused-vars */
11
11
  /* eslint-enable @typescript-eslint/no-empty-function */
12
12
  /**
13
- * To render polygon for maps
13
+ * To render polygon for maps.
14
14
  *
15
15
  * @param {Maps} maps - Specifies the layer instance to which the polygon is to be rendered.
16
16
  * @param {number} layerIndex -Specifies the index of current layer.
@@ -519,7 +519,7 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
519
519
  */
520
520
  intl: Internationalization;
521
521
  /**
522
- * Check layer whether is geometry or tile
522
+ * Check layer whether is geometry or tile.
523
523
  *
524
524
  * @private
525
525
  */
@@ -709,7 +709,7 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
709
709
  /** @private */
710
710
  toggledLegendId: number[];
711
711
  /** @private */
712
- toggledShapeElementId: string[];
712
+ toggledElementId: string[];
713
713
  /** @private */
714
714
  checkInitialRender: boolean;
715
715
  /** @private */
@@ -745,14 +745,14 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
745
745
  /** @private */
746
746
  markerDragArgument: any;
747
747
  /**
748
- * Constructor for creating the widget
748
+ * Constructor for creating the widget.
749
749
  *
750
750
  * @param {MapsModel} options Specifies the options
751
751
  * @param {string | HTMLElement} element Specifies the element
752
752
  */
753
753
  constructor(options?: MapsModel, element?: string | HTMLElement);
754
754
  /**
755
- * To manage persist maps data
755
+ * To manage persist maps data.
756
756
  *
757
757
  * @returns {void}
758
758
  */
@@ -794,7 +794,7 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
794
794
  private renderMap;
795
795
  private triggerZoomEvent;
796
796
  /**
797
- * To apply color to the initial selected marker
797
+ * To apply color to the initial selected marker.
798
798
  *
799
799
  * @param {SelectionSettingsModel} selectionSettings - Specifies the selection settings
800
800
  * @param {Maps} map - Specifies the instance of the maps
@@ -805,7 +805,7 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
805
805
  */
806
806
  markerSelection(selectionSettings: SelectionSettingsModel, map: Maps, targetElement: Element, data: object): void;
807
807
  /**
808
- * initial selection of marker
808
+ * initial selection of marker.
809
809
  *
810
810
  * @param {number} layerIndex - Specifies the layer index
811
811
  * @param {number} markerIndex - Specifies the marker index
@@ -817,13 +817,13 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
817
817
  */
818
818
  markerInitialSelection(layerIndex: number, markerIndex: number, markerSettings: MarkerSettingsModel, latitude: number, longitude: number): void;
819
819
  /**
820
- * Render the map area border
820
+ * Render the map area border.
821
821
  *
822
822
  * @returns {void}
823
823
  */
824
824
  private renderArea;
825
825
  /**
826
- * To add tab index for map element
826
+ * To add tab index for map element.
827
827
  *
828
828
  * @returns {void}
829
829
  */
@@ -849,14 +849,14 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
849
849
  private initPrivateVariable;
850
850
  private findBaseAndSubLayers;
851
851
  /**
852
- * Render the map border
852
+ * Render the map border.
853
853
  *
854
854
  * @private
855
855
  * @returns {void}
856
856
  */
857
857
  private renderBorder;
858
858
  /**
859
- * Render the title and subtitle
859
+ * Render the title and subtitle.
860
860
  *
861
861
  * @param {TitleSettingsModel} title - Specifies the title
862
862
  * @param {string} type - Specifies the type
@@ -867,13 +867,13 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
867
867
  */
868
868
  private renderTitle;
869
869
  /**
870
- * To create svg element for maps
870
+ * To create svg element for maps.
871
871
  *
872
872
  * @returns {void}
873
873
  */
874
874
  private createSVG;
875
875
  /**
876
- * To Remove the SVG
876
+ * To Remove the SVG.
877
877
  *
878
878
  * @returns {void}
879
879
  */
@@ -921,7 +921,7 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
921
921
  private triggerShapeSelection;
922
922
  private getMarkerClickLocation;
923
923
  /**
924
- * Gets the location of the mouse click
924
+ * Gets the location of the mouse click.
925
925
  *
926
926
  * @param {string} targetId - Specifies the ID for the target.
927
927
  * @param {number} pageX - Defines the page X position.
@@ -930,10 +930,8 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
930
930
  * @param {number} x - Defines the x position in pixel.
931
931
  * @param {number} y - Defines the y position in pixel.
932
932
  * @param {string} type - Specifies the type.
933
- * @returns {GeoPosition} - Returns the position of the event
934
- *
933
+ * @returns {GeoPosition} - Returns the position of the event.
935
934
  * @private
936
- *
937
935
  */
938
936
  getClickLocation(targetId: string, pageX: number, pageY: number, targetElement: HTMLElement, x: number, y: number, type?: string): GeoPosition;
939
937
  private removeTileMap;
@@ -1017,7 +1015,7 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
1017
1015
  /**
1018
1016
  * This method is used to add the layers dynamically to the maps.
1019
1017
  *
1020
- * @param {Object} layer - Specifies the layer to be added in the maps.
1018
+ * @param {object} layer - Specifies the layer to be added in the maps.
1021
1019
  * @returns {void}
1022
1020
  */
1023
1021
  addLayer(layer: Object): void;
@@ -1083,7 +1081,7 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
1083
1081
  */
1084
1082
  destroy(): void;
1085
1083
  /**
1086
- * Gets component name
1084
+ * Gets component name.
1087
1085
  *
1088
1086
  * @returns {string} - Returns the string value
1089
1087
  * @private
@@ -1106,44 +1104,44 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
1106
1104
  */
1107
1105
  onPropertyChanged(newProp: MapsModel, oldProp: MapsModel): void;
1108
1106
  /**
1109
- * To provide the array of modules needed for maps rendering
1107
+ * To provide the array of modules needed for maps rendering.
1110
1108
  *
1111
1109
  * @returns {ModuleDeclaration[]} - Returns the modules
1112
1110
  * @private
1113
1111
  */
1114
1112
  requiredModules(): ModuleDeclaration[];
1115
1113
  /**
1116
- * To find marker visibility
1114
+ * To find marker visibility.
1117
1115
  *
1118
1116
  * @returns {boolean} - Returns whether the markers are visible or not.
1119
1117
  */
1120
1118
  private isMarkersVisible;
1121
1119
  /**
1122
- * To find DataLabel visibility
1120
+ * To find DataLabel visibility.
1123
1121
  *
1124
1122
  * @returns {boolean} - Returns whether the data labels are visible or not.
1125
1123
  */
1126
1124
  private isDataLabelVisible;
1127
1125
  /**
1128
- * To find navigation line visibility
1126
+ * To find navigation line visibility.
1129
1127
  *
1130
1128
  * @returns {boolean} - Returns whether the navigation lines are visible or not.
1131
1129
  */
1132
1130
  private isNavigationVisible;
1133
1131
  /**
1134
- * To find navigation line visibility
1132
+ * To find navigation line visibility.
1135
1133
  *
1136
1134
  * @returns {boolean} - Returns whether the navigation lines are visible or not.
1137
1135
  */
1138
1136
  private isPolygonVisible;
1139
1137
  /**
1140
- * To find marker visibility
1138
+ * To find marker visibility.
1141
1139
  *
1142
1140
  * @returns {boolean} - Returns whether the bubble is visible or not.
1143
1141
  */
1144
1142
  private isBubbleVisible;
1145
1143
  /**
1146
- * To find the bubble visibility from layer
1144
+ * To find the bubble visibility from layer.
1147
1145
  *
1148
1146
  * @param {LayerSettingsModel} layer - Spcifies the layer settings model
1149
1147
  * @returns {boolean} - Returns the boolean value
@@ -1209,7 +1207,7 @@ export declare class Maps extends Component<HTMLElement> implements INotifyPrope
1209
1207
  *
1210
1208
  * @param {number} pageX - Specifies the x position value in pixels.
1211
1209
  * @param {number} pageY - Specifies the y position value in pixels.
1212
- * @returns {Object} - Returns the latitude and longitude values.
1210
+ * @returns {object} - Returns the latitude and longitude values.
1213
1211
  */
1214
1212
  pointToLatLong(pageX: number, pageY: number): Object;
1215
1213
  }
package/src/maps/maps.js CHANGED
@@ -52,7 +52,7 @@ import { DataManager, Query } from '@syncfusion/ej2-data';
52
52
  var Maps = /** @class */ (function (_super) {
53
53
  __extends(Maps, _super);
54
54
  /**
55
- * Constructor for creating the widget
55
+ * Constructor for creating the widget.
56
56
  *
57
57
  * @param {MapsModel} options Specifies the options
58
58
  * @param {string | HTMLElement} element Specifies the element
@@ -60,7 +60,7 @@ var Maps = /** @class */ (function (_super) {
60
60
  function Maps(options, element) {
61
61
  var _this = _super.call(this, options, element) || this;
62
62
  /**
63
- * Check layer whether is geometry or tile
63
+ * Check layer whether is geometry or tile.
64
64
  *
65
65
  * @private
66
66
  */
@@ -132,7 +132,7 @@ var Maps = /** @class */ (function (_super) {
132
132
  /** @private */
133
133
  _this.toggledLegendId = [];
134
134
  /** @private */
135
- _this.toggledShapeElementId = [];
135
+ _this.toggledElementId = [];
136
136
  /** @private */
137
137
  _this.checkInitialRender = true;
138
138
  /** @private */
@@ -174,7 +174,7 @@ var Maps = /** @class */ (function (_super) {
174
174
  configurable: true
175
175
  });
176
176
  /**
177
- * To manage persist maps data
177
+ * To manage persist maps data.
178
178
  *
179
179
  * @returns {void}
180
180
  */
@@ -533,7 +533,7 @@ var Maps = /** @class */ (function (_super) {
533
533
  //eslint-enable @typescript-eslint/prefer-const
534
534
  };
535
535
  /**
536
- * To apply color to the initial selected marker
536
+ * To apply color to the initial selected marker.
537
537
  *
538
538
  * @param {SelectionSettingsModel} selectionSettings - Specifies the selection settings
539
539
  * @param {Maps} map - Specifies the instance of the maps
@@ -575,7 +575,7 @@ var Maps = /** @class */ (function (_super) {
575
575
  }
576
576
  };
577
577
  /**
578
- * initial selection of marker
578
+ * initial selection of marker.
579
579
  *
580
580
  * @param {number} layerIndex - Specifies the layer index
581
581
  * @param {number} markerIndex - Specifies the marker index
@@ -600,7 +600,7 @@ var Maps = /** @class */ (function (_super) {
600
600
  }
601
601
  };
602
602
  /**
603
- * Render the map area border
603
+ * Render the map area border.
604
604
  *
605
605
  * @returns {void}
606
606
  */
@@ -617,7 +617,7 @@ var Maps = /** @class */ (function (_super) {
617
617
  }
618
618
  };
619
619
  /**
620
- * To add tab index for map element
620
+ * To add tab index for map element.
621
621
  *
622
622
  * @returns {void}
623
623
  */
@@ -840,7 +840,7 @@ var Maps = /** @class */ (function (_super) {
840
840
  });
841
841
  };
842
842
  /**
843
- * Render the map border
843
+ * Render the map border.
844
844
  *
845
845
  * @private
846
846
  * @returns {void}
@@ -861,7 +861,7 @@ var Maps = /** @class */ (function (_super) {
861
861
  }
862
862
  };
863
863
  /**
864
- * Render the title and subtitle
864
+ * Render the title and subtitle.
865
865
  *
866
866
  * @param {TitleSettingsModel} title - Specifies the title
867
867
  * @param {string} type - Specifies the type
@@ -914,7 +914,7 @@ var Maps = /** @class */ (function (_super) {
914
914
  }
915
915
  };
916
916
  /**
917
- * To create svg element for maps
917
+ * To create svg element for maps.
918
918
  *
919
919
  * @returns {void}
920
920
  */
@@ -923,7 +923,7 @@ var Maps = /** @class */ (function (_super) {
923
923
  createSvg(this);
924
924
  };
925
925
  /**
926
- * To Remove the SVG
926
+ * To Remove the SVG.
927
927
  *
928
928
  * @returns {void}
929
929
  */
@@ -1214,7 +1214,7 @@ var Maps = /** @class */ (function (_super) {
1214
1214
  return latLongValue;
1215
1215
  };
1216
1216
  /**
1217
- * Gets the location of the mouse click
1217
+ * Gets the location of the mouse click.
1218
1218
  *
1219
1219
  * @param {string} targetId - Specifies the ID for the target.
1220
1220
  * @param {number} pageX - Defines the page X position.
@@ -1223,10 +1223,8 @@ var Maps = /** @class */ (function (_super) {
1223
1223
  * @param {number} x - Defines the x position in pixel.
1224
1224
  * @param {number} y - Defines the y position in pixel.
1225
1225
  * @param {string} type - Specifies the type.
1226
- * @returns {GeoPosition} - Returns the position of the event
1227
- *
1226
+ * @returns {GeoPosition} - Returns the position of the event.
1228
1227
  * @private
1229
- *
1230
1228
  */
1231
1229
  Maps.prototype.getClickLocation = function (targetId, pageX, pageY, targetElement, x, y, type) {
1232
1230
  var layerIndex = 0;
@@ -1298,7 +1296,7 @@ var Maps = /** @class */ (function (_super) {
1298
1296
  }
1299
1297
  }
1300
1298
  else {
1301
- latLongValue = this.getGeoLocation(layerIndex, x, y);
1299
+ latLongValue = this.getGeoLocation(layerIndex, pageX, pageY);
1302
1300
  }
1303
1301
  }
1304
1302
  else if (this.isTileMap && (!isNullOrUndefined(type) ||
@@ -1735,7 +1733,7 @@ var Maps = /** @class */ (function (_super) {
1735
1733
  /**
1736
1734
  * This method is used to add the layers dynamically to the maps.
1737
1735
  *
1738
- * @param {Object} layer - Specifies the layer to be added in the maps.
1736
+ * @param {object} layer - Specifies the layer to be added in the maps.
1739
1737
  * @returns {void}
1740
1738
  */
1741
1739
  Maps.prototype.addLayer = function (layer) {
@@ -2018,7 +2016,7 @@ var Maps = /** @class */ (function (_super) {
2018
2016
  }
2019
2017
  _super.prototype.destroy.call(this);
2020
2018
  this.shapeSelectionItem = [];
2021
- this.toggledShapeElementId = [];
2019
+ this.toggledElementId = [];
2022
2020
  this.toggledLegendId = [];
2023
2021
  this.legendSelectionCollection = [];
2024
2022
  this.selectedLegendElementId = [];
@@ -2079,7 +2077,7 @@ var Maps = /** @class */ (function (_super) {
2079
2077
  this.markerDragArgument = null;
2080
2078
  };
2081
2079
  /**
2082
- * Gets component name
2080
+ * Gets component name.
2083
2081
  *
2084
2082
  * @returns {string} - Returns the string value
2085
2083
  * @private
@@ -2199,7 +2197,7 @@ var Maps = /** @class */ (function (_super) {
2199
2197
  }
2200
2198
  };
2201
2199
  /**
2202
- * To provide the array of modules needed for maps rendering
2200
+ * To provide the array of modules needed for maps rendering.
2203
2201
  *
2204
2202
  * @returns {ModuleDeclaration[]} - Returns the modules
2205
2203
  * @private
@@ -2312,7 +2310,7 @@ var Maps = /** @class */ (function (_super) {
2312
2310
  return modules;
2313
2311
  };
2314
2312
  /**
2315
- * To find marker visibility
2313
+ * To find marker visibility.
2316
2314
  *
2317
2315
  * @returns {boolean} - Returns whether the markers are visible or not.
2318
2316
  */
@@ -2329,7 +2327,7 @@ var Maps = /** @class */ (function (_super) {
2329
2327
  return isVisible;
2330
2328
  };
2331
2329
  /**
2332
- * To find DataLabel visibility
2330
+ * To find DataLabel visibility.
2333
2331
  *
2334
2332
  * @returns {boolean} - Returns whether the data labels are visible or not.
2335
2333
  */
@@ -2344,7 +2342,7 @@ var Maps = /** @class */ (function (_super) {
2344
2342
  return isVisible;
2345
2343
  };
2346
2344
  /**
2347
- * To find navigation line visibility
2345
+ * To find navigation line visibility.
2348
2346
  *
2349
2347
  * @returns {boolean} - Returns whether the navigation lines are visible or not.
2350
2348
  */
@@ -2361,7 +2359,7 @@ var Maps = /** @class */ (function (_super) {
2361
2359
  return isVisible;
2362
2360
  };
2363
2361
  /**
2364
- * To find navigation line visibility
2362
+ * To find navigation line visibility.
2365
2363
  *
2366
2364
  * @returns {boolean} - Returns whether the navigation lines are visible or not.
2367
2365
  */
@@ -2378,7 +2376,7 @@ var Maps = /** @class */ (function (_super) {
2378
2376
  return isVisible;
2379
2377
  };
2380
2378
  /**
2381
- * To find marker visibility
2379
+ * To find marker visibility.
2382
2380
  *
2383
2381
  * @returns {boolean} - Returns whether the bubble is visible or not.
2384
2382
  */
@@ -2394,7 +2392,7 @@ var Maps = /** @class */ (function (_super) {
2394
2392
  return isVisible;
2395
2393
  };
2396
2394
  /**
2397
- * To find the bubble visibility from layer
2395
+ * To find the bubble visibility from layer.
2398
2396
  *
2399
2397
  * @param {LayerSettingsModel} layer - Spcifies the layer settings model
2400
2398
  * @returns {boolean} - Returns the boolean value
@@ -2569,8 +2567,12 @@ var Maps = /** @class */ (function (_super) {
2569
2567
  var longitude = 0;
2570
2568
  if (!this.isDestroyed) {
2571
2569
  var container = document.getElementById(this.element.id);
2572
- var pageX = x - (isNullOrUndefined(this.markerDragArgument) ? container.offsetLeft : 0);
2573
- var pageY = y - (isNullOrUndefined(this.markerDragArgument) ? container.offsetTop : 0);
2570
+ var elementClientRect = this.element.getBoundingClientRect();
2571
+ var bodyClientRect = document.body.getBoundingClientRect();
2572
+ var pageX = x - (isNullOrUndefined(this.markerDragArgument) ? container.offsetLeft ||
2573
+ (elementClientRect.left - bodyClientRect.left) : 0);
2574
+ var pageY = y - (isNullOrUndefined(this.markerDragArgument) ? container.offsetTop ||
2575
+ (elementClientRect.top - bodyClientRect.top) : 0);
2574
2576
  var currentLayer = this.layersCollection[layerIndex];
2575
2577
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2576
2578
  var translate = getTranslate(this, currentLayer, false);
@@ -2614,7 +2616,7 @@ var Maps = /** @class */ (function (_super) {
2614
2616
  *
2615
2617
  * @param {number} pageX - Specifies the x position value in pixels.
2616
2618
  * @param {number} pageY - Specifies the y position value in pixels.
2617
- * @returns {Object} - Returns the latitude and longitude values.
2619
+ * @returns {object} - Returns the latitude and longitude values.
2618
2620
  */
2619
2621
  Maps.prototype.pointToLatLong = function (pageX, pageY) {
2620
2622
  var latitude = 0;
@@ -462,6 +462,14 @@ export interface TooltipSettingsModel {
462
462
  */
463
463
  valuePath?: string;
464
464
 
465
+ /**
466
+ * Specifies the value within which the tooltip will be removed on a mobile device. The value represents time in milliseconds.
467
+ * If the value is set to 0, the tooltip will not be removed. If the value is set to greater than 0, the tooltip will be removed at the specified time.
468
+ *
469
+ * @default 2000
470
+ */
471
+ duration?: number;
472
+
465
473
  }
466
474
 
467
475
  /**
@@ -493,6 +501,14 @@ export interface PolygonTooltipSettingsModel {
493
501
  */
494
502
  textStyle?: FontModel;
495
503
 
504
+ /**
505
+ * Specifies the value within which the tooltip will be removed on a mobile device. The value represents time in milliseconds.
506
+ * If the value is set to 0, the tooltip will not be removed. If the value is set to greater than 0, the tooltip will be removed at the specified time.
507
+ *
508
+ * @default 2000
509
+ */
510
+ duration?: number;
511
+
496
512
  }
497
513
 
498
514
  /**
@@ -1993,8 +2009,8 @@ export interface LayerSettingsModel {
1993
2009
 
1994
2010
  /**
1995
2011
  * Gets or sets the geometry type for the layer in maps. There are two types: Geographic and Normal.
1996
- * * Geographic type renders the shape maps with geographical coordinate system.
1997
- * * Normal type renders the shape maps using default coordinate system.
2012
+ * - Geographic type renders the shape maps with geographical coordinate system.
2013
+ * - Normal type renders the shape maps using default coordinate system.
1998
2014
  *
1999
2015
  * @default Geographic
2000
2016
  */