@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
@@ -80,6 +80,11 @@ export declare function radiansToDegrees(radian: number): number;
80
80
  */
81
81
  export declare function convertGeoToPoint(latitude: number, longitude: number, factor: number, layer: LayerSettings, mapModel: Maps): Point;
82
82
  /**
83
+ * @param {Maps} maps - Specifies the map control.
84
+ * @param {number} factor - Specifies the factor.
85
+ * @param {LayerSettings} currentLayer - Specifies the current layer.
86
+ * @param {Coordinate} markerData - Specifies the marker data.
87
+ * @returns {string} - Returns the path.
83
88
  * @private
84
89
  */
85
90
  export declare function calculatePolygonPath(maps: Maps, factor: number, currentLayer: LayerSettings, markerData: Coordinate[]): string;
@@ -219,7 +224,11 @@ export declare class GeoLocation {
219
224
  * @private
220
225
  */
221
226
  export declare function measureText(text: string, font: FontModel): Size;
222
- /** @private */
227
+ /**
228
+ * @param {string} text - Specifies the text.
229
+ * @param {FontModel} font - Specifies the font.
230
+ * @returns {Size} - Returns the size of text.
231
+ * @private */
223
232
  export declare function measureTextElement(text: string, font: FontModel): Size;
224
233
  /**
225
234
  * Internal use of text options
@@ -359,6 +368,7 @@ export declare class Rect {
359
368
  }
360
369
  /**
361
370
  * Defines the pattern unit types for drawing the patterns in maps.
371
+ *
362
372
  * @private
363
373
  */
364
374
  export declare type patternUnits =
@@ -397,15 +407,16 @@ export declare class PatternOptions {
397
407
  */
398
408
  export declare function renderTextElement(option: TextOption, style: FontModel, color: string, parent: HTMLElement | Element, isMinus?: boolean): Element;
399
409
  /**
400
- * @param {HTMLCollection} element Specifies the html collection
401
- * @param {string} markerId Specifies the marker id
402
- * @param {any} data Specifies the data
403
- * @param {number} index Specifies the index
404
- * @param {Maps} mapObj Specifies the map object
405
- * @returns {HTMLCollection} Returns the html collection
410
+ * @param {HTMLCollection} element - Specifies the html collection
411
+ * @param {string} markerId - Specifies the marker id
412
+ * @param {object} data - Specifies the data
413
+ * @param {number} index - Specifies the index
414
+ * @param {Maps} mapObj - Specifies the map object
415
+ * @param {string} templateType - Specifies the template type
416
+ * @returns {HTMLElement} - Returns the html element
406
417
  * @private
407
418
  */
408
- export declare function convertElement(element: HTMLCollection, markerId: string, data: any, index: number, mapObj: Maps, templateType: string): HTMLElement;
419
+ export declare function convertElement(element: HTMLCollection, markerId: string, data: object, index: number, mapObj: Maps, templateType: string): HTMLElement;
409
420
  /**
410
421
  *
411
422
  * @param {string} value - Specifies the value
@@ -418,23 +429,21 @@ export declare function formatValue(value: string, maps: Maps): string;
418
429
  *
419
430
  * @param {string} stringTemplate - Specifies the template
420
431
  * @param {string} format - Specifies the format
421
- * @param {any} data - Specifies the data
432
+ * @param {object} data - Specifies the data
422
433
  * @param {Maps} maps - Specifies the instance of the maps
423
434
  * @returns {string} - Returns the string value
424
435
  * @private
425
436
  */
426
- export declare function convertStringToValue(stringTemplate: string, format: string, data: any, maps: Maps): string;
437
+ export declare function convertStringToValue(stringTemplate: string, format: string, data: object, maps: Maps): string;
427
438
  /**
428
439
  *
429
440
  * @param {Element} element - Specifies the element
430
441
  * @param {string} labelId - Specifies the label id
431
- * @param {any} data - Specifies the data
432
- * @param {number} index - Specifies the index
433
- * @param {Maps} mapObj - Specifies the map object
442
+ * @param {object} data - Specifies the data
434
443
  * @returns {HTMLElement} - Returns the html element
435
444
  * @private
436
445
  */
437
- export declare function convertElementFromLabel(element: Element, labelId: string, data: any, index: number, mapObj: Maps): HTMLElement;
446
+ export declare function convertElementFromLabel(element: Element, labelId: string, data: object): HTMLElement;
438
447
  /**
439
448
  *
440
449
  * @param {MarkerType} shape - Specifies the shape
@@ -450,28 +459,28 @@ export declare function convertElementFromLabel(element: Element, labelId: strin
450
459
  export declare function drawSymbols(shape: MarkerType, imageUrl: string, location: Point, markerID: string, shapeCustom: any, markerCollection: Element, maps: Maps): Element;
451
460
  /**
452
461
  *
453
- * @param {any} data - Specifies the data
462
+ * @param {object} data - Specifies the data
454
463
  * @param {string} value - Specifies the value
455
464
  * @returns {any} - Returns the data
456
465
  * @private
457
466
  */
458
- export declare function getValueFromObject(data: any, value: string): any;
467
+ export declare function getValueFromObject(data: object, value: string): any;
459
468
  /**
460
469
  *
461
470
  * @param {IMarkerRenderingEventArgs} eventArgs - Specifies the event arguments
462
- * @param {any} data - Specifies the data
471
+ * @param {object} data - Specifies the data
463
472
  * @returns {IMarkerRenderingEventArgs} - Returns the arguments
464
473
  * @private
465
474
  */
466
- export declare function markerColorChoose(eventArgs: IMarkerRenderingEventArgs, data: any): IMarkerRenderingEventArgs;
475
+ export declare function markerColorChoose(eventArgs: IMarkerRenderingEventArgs, data: object): IMarkerRenderingEventArgs;
467
476
  /**
468
477
  *
469
478
  * @param {IMarkerRenderingEventArgs} eventArgs - Specifies the event arguments
470
- * @param {any} data - Specifies the data
479
+ * @param {object} data - Specifies the data
471
480
  * @returns {IMarkerRenderingEventArgs} - Returns the arguments
472
481
  * @private
473
482
  */
474
- export declare function markerShapeChoose(eventArgs: IMarkerRenderingEventArgs, data: any): IMarkerRenderingEventArgs;
483
+ export declare function markerShapeChoose(eventArgs: IMarkerRenderingEventArgs, data: object): IMarkerRenderingEventArgs;
475
484
  /**
476
485
  *
477
486
  * @param {LayerSettings} currentLayer - Specifies the current layer
@@ -482,23 +491,36 @@ export declare function markerShapeChoose(eventArgs: IMarkerRenderingEventArgs,
482
491
  * @param {Element} layerElement - Specifies the layer element
483
492
  * @param {boolean} check - Specifies the boolean value
484
493
  * @param {boolean} zoomCheck - Specifies the boolean value
485
- * @returns {void}
494
+ * @returns {boolean} -Returns boolean for cluster completion
486
495
  * @private
487
496
  */
488
497
  export declare function clusterTemplate(currentLayer: LayerSettings, markerTemplate: HTMLElement | Element, maps: Maps, layerIndex: number, markerCollection: Element, layerElement: Element, check: boolean, zoomCheck: boolean): boolean;
489
- /** @private */
498
+ /**
499
+ * @param {Maps} maps - Specifies the map control.
500
+ * @param {number} currentZoomFactor - Specifies the current zoom factor.
501
+ * @param {number} layerIndex - Specifies the layer index.
502
+ * @param {number} index - Specifies the index.
503
+ * @param {number} indexCollection - Specifies the index Collection.
504
+ * @returns {void}
505
+ * @private */
490
506
  export declare function markerClusterListHandler(maps: Maps, currentZoomFactor: number, layerIndex: number, index: number, indexCollection: number[]): void;
491
- /** @private */
507
+ /**
508
+ * @param {Element} tempElement - Specifies the temp element.
509
+ * @param {ClientRect} markerBounds - Specifies the marker bounds.
510
+ * @param {ClientRect} colloideBounds - Specifies the colloide Bounds.
511
+ * @param {number[]} indexCollection - Specifies the index collection.
512
+ * @param {number} p - Specifies the p.
513
+ * @returns {void}
514
+ * @private */
492
515
  export declare function markerBoundsComparer(tempElement: Element, markerBounds: ClientRect, colloideBounds: ClientRect[], indexCollection: number[], p: number): void;
493
516
  /**
494
517
  *
495
518
  * @param {MarkerClusterData[]} sameMarkerData - Specifies the marker data
496
519
  * @param {Maps} maps - Specifies the instance of the maps
497
- * @param {Element | HTMLElement} markerElement - Specifies the marker element
498
520
  * @returns {void}
499
521
  * @private
500
522
  */
501
- export declare function mergeSeparateCluster(sameMarkerData: MarkerClusterData[], maps: Maps, markerElement: Element | HTMLElement): void;
523
+ export declare function mergeSeparateCluster(sameMarkerData: MarkerClusterData[], maps: Maps): void;
502
524
  /**
503
525
  *
504
526
  * @param {MarkerClusterData[]} sameMarkerData - Specifies the marker data
@@ -771,10 +793,10 @@ export declare function checkShapeDataFields(dataSource: any[], properties: any,
771
793
  *
772
794
  * @param {string} shapeData - Specifies the shape data
773
795
  * @param {string | string[]} shapePropertyPath - Specifies the shape property path
774
- * @param {any} shape - Specifies the shape
796
+ * @param {object} shape - Specifies the shape
775
797
  * @returns {string} - Returns the string value
776
798
  */
777
- export declare function checkPropertyPath(shapeData: string, shapePropertyPath: string | string[], shape: any): string;
799
+ export declare function checkPropertyPath(shapeData: string, shapePropertyPath: string | string[], shape: object): string;
778
800
  /**
779
801
  *
780
802
  * @param {MapLocation[]} points - Specifies the location
@@ -819,6 +841,9 @@ export declare function isCustomPath(layerData: any[]): boolean;
819
841
  * @param {number} maxWidth - Specifies the maximum width
820
842
  * @param {string} text - Specifies the text
821
843
  * @param {FontModel} font - Specifies the font
844
+ * @param {number} width - Specifies the width of text
845
+ * @param {boolean} isCanvasMeasure - checks the canvas measure
846
+ * @param {number[]} widthList - Specifies the width list
822
847
  * @returns {string} - Returns the string
823
848
  * @private
824
849
  */
@@ -903,9 +928,9 @@ export declare function Internalize(maps: Maps, value: number): string;
903
928
  /**
904
929
  * Function to compile the template function for maps.
905
930
  *
906
- * @param {string} template - Specifies the template
931
+ * @param {string | Function} template - Specifies the template
907
932
  * @param {Maps} maps - Specifies the Maps instance.
908
- * @returns {Function} - Returns the function
933
+ * @returns {any} - Returns the template function
909
934
  * @private
910
935
  */
911
936
  export declare function getTemplateFunction(template: string | Function, maps: Maps): any;
@@ -922,7 +947,7 @@ export declare function getElement(id: string): Element;
922
947
  *
923
948
  * @param {string} targetId - Specifies the target id
924
949
  * @param {Maps} map - Specifies the instance of the maps
925
- * @returns {any} - Returns the object
950
+ * @returns {object} - Returns the object
926
951
  * @private
927
952
  */
928
953
  export declare function getShapeData(targetId: string, map: Maps): {
@@ -997,12 +1022,12 @@ export declare function customizeStyle(id: string, className: string, eventArgs:
997
1022
  * @param {SelectionSettingsModel} selectionSettings - Specifies the selection settings
998
1023
  * @param {Maps} map - Specifies the instance of the maps
999
1024
  * @param {Element} targetElement - Specifies the target element
1000
- * @param {any} shapeData - Specifies the shape data
1001
- * @param {any} data - Specifies the data
1025
+ * @param {object} shapeData - Specifies the shape data
1026
+ * @param {object} data - Specifies the data
1002
1027
  * @returns {void}
1003
1028
  * @private
1004
1029
  */
1005
- export declare function triggerItemSelectionEvent(selectionSettings: SelectionSettingsModel, map: Maps, targetElement: Element, shapeData: any, data: any): void;
1030
+ export declare function triggerItemSelectionEvent(selectionSettings: SelectionSettingsModel, map: Maps, targetElement: Element, shapeData: object, data: object): void;
1006
1031
  /**
1007
1032
  * Function to remove class from element
1008
1033
  *
@@ -1061,14 +1086,16 @@ export declare function wordWrap(tooltip: HTMLElement, text: string, x: number,
1061
1086
  /**
1062
1087
  * @param {string} id - Specifies the id
1063
1088
  * @param {string} text - Specifies the text
1064
- * @param {string} top - Specifies the top
1065
- * @param {string} left - Specifies the left
1089
+ * @param {number} top - Specifies the top
1090
+ * @param {number} left - Specifies the left
1066
1091
  * @param {ZoomToolbarTooltipSettingsModel} settings - Specifies the tooltip settings.
1067
1092
  * @returns {void}
1068
1093
  * @private
1069
1094
  */
1070
1095
  export declare function createTooltip(id: string, text: string, top: number, left: number, settings: ZoomToolbarTooltipSettingsModel): void;
1071
1096
  /**
1097
+ * @param {string} color - Specifies the color
1098
+ * @returns {any} - Returns the color in rgb
1072
1099
  * @private
1073
1100
  */
1074
1101
  export declare function getHexColor(color: string): any;
@@ -1185,7 +1212,7 @@ export declare function zoomAnimate(element: Element, delay: number, duration: n
1185
1212
  * @returns {void}
1186
1213
  * @private
1187
1214
  */
1188
- export declare function animate(element: Element, delay: number, duration: number, process: any, end: any): void;
1215
+ export declare function animate(element: Element, delay: number, duration: number, process: Function, end: Function): void;
1189
1216
  /**
1190
1217
  * Defines the options to get shape data file using Ajax request.
1191
1218
  */
@@ -1242,6 +1269,7 @@ export declare function compareZoomFactor(scaleFactor: number, maps: Maps): void
1242
1269
  * @param {number} mapWidth - Specifies the width of the maps
1243
1270
  * @param {number} mapHeight - Specifies the height of the maps
1244
1271
  * @param {Maps} maps - Specifies the instance of the maps
1272
+ * @param {boolean} isZoomToCoordinates - Checks for the zoom to coordinates
1245
1273
  * @returns {number} - Returns the scale factor
1246
1274
  * @private
1247
1275
  */