@syncfusion/ej2-maps 31.2.2 → 31.2.12

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 (67) hide show
  1. package/README.md +11 -2
  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 +84 -53
  6. package/dist/es6/ej2-maps.es2015.js.map +1 -1
  7. package/dist/es6/ej2-maps.es5.js +87 -56
  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 +18 -53
  13. package/src/maps/layers/layer-panel.js +86 -55
  14. package/dist/ts/index.d.ts +0 -4
  15. package/dist/ts/index.ts +0 -4
  16. package/dist/ts/maps/index.d.ts +0 -28
  17. package/dist/ts/maps/index.ts +0 -28
  18. package/dist/ts/maps/layers/bing-map.d.ts +0 -21
  19. package/dist/ts/maps/layers/bing-map.ts +0 -51
  20. package/dist/ts/maps/layers/bubble.d.ts +0 -77
  21. package/dist/ts/maps/layers/bubble.ts +0 -304
  22. package/dist/ts/maps/layers/color-mapping.d.ts +0 -36
  23. package/dist/ts/maps/layers/color-mapping.ts +0 -230
  24. package/dist/ts/maps/layers/data-label.d.ts +0 -45
  25. package/dist/ts/maps/layers/data-label.ts +0 -457
  26. package/dist/ts/maps/layers/layer-panel.d.ts +0 -144
  27. package/dist/ts/maps/layers/layer-panel.ts +0 -1455
  28. package/dist/ts/maps/layers/legend.d.ts +0 -173
  29. package/dist/ts/maps/layers/legend.ts +0 -2465
  30. package/dist/ts/maps/layers/marker.d.ts +0 -105
  31. package/dist/ts/maps/layers/marker.ts +0 -632
  32. package/dist/ts/maps/layers/navigation-selected-line.d.ts +0 -33
  33. package/dist/ts/maps/layers/navigation-selected-line.ts +0 -171
  34. package/dist/ts/maps/layers/polygon.d.ts +0 -30
  35. package/dist/ts/maps/layers/polygon.ts +0 -68
  36. package/dist/ts/maps/maps-model.d.ts +0 -409
  37. package/dist/ts/maps/maps.d.ts +0 -1247
  38. package/dist/ts/maps/maps.ts +0 -3416
  39. package/dist/ts/maps/model/base-model.d.ts +0 -2107
  40. package/dist/ts/maps/model/base.d.ts +0 -1840
  41. package/dist/ts/maps/model/base.ts +0 -2257
  42. package/dist/ts/maps/model/constants.d.ts +0 -225
  43. package/dist/ts/maps/model/constants.ts +0 -226
  44. package/dist/ts/maps/model/export-image.d.ts +0 -39
  45. package/dist/ts/maps/model/export-image.ts +0 -194
  46. package/dist/ts/maps/model/export-pdf.d.ts +0 -40
  47. package/dist/ts/maps/model/export-pdf.ts +0 -183
  48. package/dist/ts/maps/model/interface.d.ts +0 -892
  49. package/dist/ts/maps/model/interface.ts +0 -929
  50. package/dist/ts/maps/model/print.d.ts +0 -45
  51. package/dist/ts/maps/model/print.ts +0 -125
  52. package/dist/ts/maps/model/theme.d.ts +0 -98
  53. package/dist/ts/maps/model/theme.ts +0 -919
  54. package/dist/ts/maps/user-interaction/annotation.d.ts +0 -27
  55. package/dist/ts/maps/user-interaction/annotation.ts +0 -133
  56. package/dist/ts/maps/user-interaction/highlight.d.ts +0 -63
  57. package/dist/ts/maps/user-interaction/highlight.ts +0 -272
  58. package/dist/ts/maps/user-interaction/selection.d.ts +0 -85
  59. package/dist/ts/maps/user-interaction/selection.ts +0 -342
  60. package/dist/ts/maps/user-interaction/tooltip.d.ts +0 -78
  61. package/dist/ts/maps/user-interaction/tooltip.ts +0 -500
  62. package/dist/ts/maps/user-interaction/zoom.d.ts +0 -334
  63. package/dist/ts/maps/user-interaction/zoom.ts +0 -2523
  64. package/dist/ts/maps/utils/enum.d.ts +0 -328
  65. package/dist/ts/maps/utils/enum.ts +0 -343
  66. package/dist/ts/maps/utils/helper.d.ts +0 -1318
  67. package/dist/ts/maps/utils/helper.ts +0 -3811
@@ -1,1318 +0,0 @@
1
- import { Maps, FontModel, BorderModel, LayerSettings } from '../../index';
2
- import { Alignment, LayerSettingsModel, ZoomToolbarTooltipSettingsModel } from '../index';
3
- import { MarkerType, IShapeSelectedEventArgs, ITouches, IShapes, SelectionSettingsModel, IMarkerRenderingEventArgs, MarkerSettings, MarkerClusterData } from '../index';
4
- import { ExportType } from '../utils/enum';
5
- /**
6
- * Specifies the size information of an element.
7
- */
8
- export declare class Size {
9
- /**
10
- * Specifies the height of an element.
11
- */
12
- height: number;
13
- /**
14
- * Specifies the width of an element.
15
- */
16
- width: number;
17
- constructor(width: number, height: number);
18
- }
19
- /**
20
- * To find number from string.
21
- *
22
- * @param {string} value Specifies the value
23
- * @param {number} containerSize Specifies the container size
24
- * @returns {number} Returns the number
25
- * @private
26
- */
27
- export declare function stringToNumber(value: string, containerSize: number): number;
28
- /**
29
- * Method to calculate the width and height of the maps.
30
- *
31
- * @param {Maps} maps Specifies the maps instance
32
- * @returns {void}
33
- * @private
34
- */
35
- export declare function calculateSize(maps: Maps): Size;
36
- /**
37
- * Method to create svg for maps.
38
- *
39
- * @param {Maps} maps Specifies the map instance
40
- * @returns {void}
41
- * @private
42
- */
43
- export declare function createSvg(maps: Maps): void;
44
- /**
45
- * Method to get the mouse position.
46
- *
47
- * @param {number} pageX - Specifies the pageX.
48
- * @param {number} pageY - Specifies the pageY.
49
- * @param {Element} element - Specifies the element.
50
- * @returns {MapLocation} - Returns the location.
51
- * @private
52
- */
53
- export declare function getMousePosition(pageX: number, pageY: number, element: Element): MapLocation;
54
- /**
55
- * Method to convert degrees to radians.
56
- *
57
- * @param {number} deg Specifies the degree value
58
- * @returns {number} Returns the number
59
- * @private
60
- */
61
- export declare function degreesToRadians(deg: number): number;
62
- /**
63
- * Convert radians to degrees method.
64
- *
65
- * @param {number} radian Specifies the radian value
66
- * @returns {number} Returns the number
67
- * @private
68
- */
69
- export declare function radiansToDegrees(radian: number): number;
70
- /**
71
- * Method for converting from latitude and longitude values to points.
72
- *
73
- * @param {number} latitude - Specifies the latitude.
74
- * @param {number} longitude - Specifies the longitude.
75
- * @param {number} factor - Specifies the factor.
76
- * @param {LayerSettings} layer - Specifies the layer settings.
77
- * @param {Maps} mapModel - Specifies the maps.
78
- * @returns {Point} - Returns the point values.
79
- * @private
80
- */
81
- export declare function convertGeoToPoint(latitude: number, longitude: number, factor: number, layer: LayerSettings, mapModel: Maps): Point;
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.
88
- * @private
89
- */
90
- export declare function calculatePolygonPath(maps: Maps, factor: number, currentLayer: LayerSettings, markerData: Coordinate[]): string;
91
- /**
92
- * Converting tile latitude and longitude to point.
93
- *
94
- * @param {MapLocation} center Specifies the map center location
95
- * @param {number} zoomLevel Specifies the zoom level
96
- * @param {MapLocation} tileTranslatePoint Specifies the tile translate point
97
- * @param {boolean} isMapCoordinates Specifies the boolean value
98
- * @returns {MapLocation} Returns the location value
99
- * @private
100
- */
101
- export declare function convertTileLatLongToPoint(center: MapLocation, zoomLevel: number, tileTranslatePoint: MapLocation, isMapCoordinates: boolean): MapLocation;
102
- /**
103
- * Method for calculate x point.
104
- *
105
- * @param {Maps} mapObject - Specifies the maps.
106
- * @param {number} val - Specifies the value.
107
- * @returns {number} - Returns the number.
108
- * @private
109
- */
110
- export declare function xToCoordinate(mapObject: Maps, val: number): number;
111
- /**
112
- * Method for calculate y point.
113
- *
114
- * @param {Maps} mapObject - Specifies the maps.
115
- * @param {number} val - Specifies the value.
116
- * @returns {number} - Returns the number.
117
- * @private
118
- */
119
- export declare function yToCoordinate(mapObject: Maps, val: number): number;
120
- /**
121
- * Method for calculate aitoff projection.
122
- *
123
- * @param {number} x - Specifies the x value.
124
- * @param {number} y - Specifies the y value.
125
- * @returns {Point} - Returns the point value.
126
- * @private
127
- */
128
- export declare function aitoff(x: number, y: number): Point;
129
- /**
130
- * Method to round the number.
131
- *
132
- * @param {number} a - Specifies the a value
133
- * @param {number} b - Specifies the b value
134
- * @returns {number} - Returns the number
135
- * @private
136
- */
137
- export declare function roundTo(a: number, b: number): number;
138
- /**
139
- *
140
- * @param {number} x - Specifies the x value
141
- * @returns {number} - Returns the number
142
- * @private
143
- */
144
- export declare function sinci(x: number): number;
145
- /**
146
- *
147
- * @param {number} a - Specifies the a value
148
- * @returns {number} - Returns the number
149
- * @private
150
- */
151
- export declare function acos(a: number): number;
152
- /**
153
- * Method to calculate bound.
154
- *
155
- * @param {number} value Specifies the value
156
- * @param {number} min Specifies the minimum value
157
- * @param {number} max Specifies the maximum value
158
- * @returns {number} Returns the value
159
- * @private
160
- */
161
- export declare function calculateBound(value: number, min: number, max: number): number;
162
- /**
163
- * To trigger the download element.
164
- *
165
- * @param {string} fileName Specifies the file name
166
- * @param {ExportType} type Specifies the type
167
- * @param {string} url Specifies the url
168
- * @param {boolean} isDownload Specifies whether download a file.
169
- * @returns {void}
170
- * @private
171
- */
172
- export declare function triggerDownload(fileName: string, type: ExportType, url: string, isDownload: boolean): void;
173
- /**
174
- * Specifies the information of the position of the point in maps.
175
- */
176
- export declare class Point {
177
- /**
178
- * Defines the x position in pixels.
179
- */
180
- x: number;
181
- /**
182
- * Defines the y position in pixels.
183
- */
184
- y: number;
185
- constructor(x: number, y: number);
186
- }
187
- /**
188
- * Specifies the position of the legend on the map, with options to set the
189
- * position values as percentages. The legend is placed relative to the Maps,
190
- * ensuring responsiveness.
191
- */
192
- export declare class RelativePoint {
193
- /**
194
- * Defines the horizontal position of the legend as a percentage.
195
- */
196
- x: string;
197
- /**
198
- * Defines the vertical position of the legend as a percentage.
199
- */
200
- y: string;
201
- constructor(x: string, y: string);
202
- }
203
- /**
204
- * Defines the latitude and longitude values that define a map location.
205
- */
206
- export declare class Coordinate {
207
- /**
208
- * Gets or sets the latitude of a coordinate on a map.
209
- */
210
- latitude: number;
211
- /**
212
- * Gets or sets the longitude of a coordinate on a map.
213
- */
214
- longitude: number;
215
- constructor(latitude: number, longitude: number);
216
- }
217
- /**
218
- * Map internal class for min and max
219
- *
220
- */
221
- export declare class MinMax {
222
- min: number;
223
- max: number;
224
- constructor(min: number, max: number);
225
- }
226
- /**
227
- * Map internal class locations
228
- */
229
- export declare class GeoLocation {
230
- latitude: MinMax;
231
- longitude: MinMax;
232
- constructor(latitude: MinMax, longitude: MinMax);
233
- }
234
- /**
235
- * Function to measure the height and width of the text.
236
- *
237
- * @param {string} text Specifies the text
238
- * @param {FontModel} font Specifies the font
239
- * @returns {Size} Returns the size
240
- * @private
241
- */
242
- export declare function measureText(text: string, font: FontModel): Size;
243
- /**
244
- * @param {string} text - Specifies the text.
245
- * @param {FontModel} font - Specifies the font.
246
- * @returns {Size} - Returns the size of text.
247
- * @private
248
- */
249
- export declare function measureTextElement(text: string, font: FontModel): Size;
250
- /**
251
- * Internal use of text options.
252
- *
253
- * @private
254
- */
255
- export declare class TextOption {
256
- anchor: string;
257
- id: string;
258
- transform: string;
259
- x: number;
260
- y: number;
261
- text: string | string[];
262
- baseLine: string;
263
- constructor(id?: string, x?: number, y?: number, anchor?: string, text?: string | string[], transform?: string, baseLine?: string);
264
- }
265
- /**
266
- * Internal use of path options.
267
- *
268
- * @private
269
- */
270
- export declare class PathOption {
271
- id: string;
272
- fill: string;
273
- stroke: string;
274
- ['stroke-width']: number;
275
- ['stroke-dasharray']: string;
276
- ['stroke-opacity']: number;
277
- ['fill-opacity']: number;
278
- d: string;
279
- constructor(id: string, fill: string, width: number, color: string, fillOpacity?: number, strokeOpacity?: number, dashArray?: string, d?: string);
280
- }
281
- /** @private */
282
- export declare class ColorValue {
283
- r: number;
284
- g: number;
285
- b: number;
286
- constructor(r?: number, g?: number, b?: number);
287
- }
288
- /**
289
- * Internal use of rectangle options.
290
- *
291
- * @private
292
- */
293
- export declare class RectOption extends PathOption {
294
- x: number;
295
- y: number;
296
- height: number;
297
- width: number;
298
- rx: number;
299
- ry: number;
300
- transform: string;
301
- ['stroke-dasharray']: string;
302
- constructor(id: string, fill: string, border: BorderModel, fillOpacity: number, rect: Rect, rx?: number, ry?: number, transform?: string, dashArray?: string);
303
- }
304
- /**
305
- * Internal use of circle options.
306
- *
307
- * @private
308
- */
309
- export declare class CircleOption extends PathOption {
310
- cy: number;
311
- cx: number;
312
- r: number;
313
- ['stroke-dasharray']: string;
314
- constructor(id: string, fill: string, border: BorderModel, fillOpacity: number, cx: number, cy: number, r: number, dashArray: string);
315
- }
316
- /**
317
- * Internal use of polygon options.
318
- *
319
- * @private
320
- */
321
- export declare class PolygonOption extends PathOption {
322
- points: string;
323
- constructor(id: string, points: string, fill: string, width: number, color: string, fillOpacity?: number, strokeOpacity?: number, dashArray?: string);
324
- }
325
- /**
326
- * Internal use of polyline options.
327
- *
328
- * @private
329
- */
330
- export declare class PolylineOption extends PolygonOption {
331
- constructor(id: string, points: string, fill: string, width: number, color: string, fillOpacity?: number, strokeOpacity?: number, dashArray?: string);
332
- }
333
- /**
334
- * Internal use of line options.
335
- *
336
- * @private
337
- */
338
- export declare class LineOption extends PathOption {
339
- x1: number;
340
- y1: number;
341
- x2: number;
342
- y2: number;
343
- constructor(id: string, line: Line, fill: string, width: number, color: string, fillOpacity?: number, strokeOpacity?: number, dashArray?: string);
344
- }
345
- /**
346
- * Internal use of line.
347
- *
348
- * @property {number} Line - Specifies the line class
349
- * @private
350
- */
351
- export declare class Line {
352
- x1: number;
353
- y1: number;
354
- x2: number;
355
- y2: number;
356
- constructor(x1: number, y1: number, x2: number, y2: number);
357
- }
358
- /**
359
- * Internal use of map location type.
360
- *
361
- * @private
362
- */
363
- export declare class MapLocation {
364
- /**
365
- * To specify x value
366
- */
367
- x: number;
368
- /**
369
- * To specify y value
370
- */
371
- y: number;
372
- constructor(x: number, y: number);
373
- }
374
- /**
375
- * Internal use of type rect.
376
- *
377
- * @private
378
- */
379
- export declare class Rect {
380
- x: number;
381
- y: number;
382
- height: number;
383
- width: number;
384
- constructor(x: number, y: number, width: number, height: number);
385
- }
386
- /**
387
- * Defines the pattern unit types for drawing the patterns in maps.
388
- *
389
- * @private
390
- */
391
- export declare type patternUnits =
392
- /** Specifies the user space for maps. */
393
- 'userSpaceOnUse' |
394
- /** Specifies the bounding box for the object. */
395
- 'objectBoundingBox';
396
- /**
397
- * Internal use for pattern creation.
398
- *
399
- * @property {PatternOptions} PatternOptions - Specifies the pattern option class.
400
- * @private
401
- */
402
- export declare class PatternOptions {
403
- id: string;
404
- patternUnits: patternUnits;
405
- patternContentUnits: patternUnits;
406
- patternTransform: string;
407
- x: number;
408
- y: number;
409
- width: number;
410
- height: number;
411
- href: string;
412
- constructor(id: string, x: number, y: number, width: number, height: number, patternUnits?: patternUnits, patternContentUnits?: patternUnits, patternTransform?: string, href?: string);
413
- }
414
- /**
415
- * Internal rendering of text.
416
- *
417
- * @param {TextOption} option Specifies the text option
418
- * @param {FontModel} style Specifies the style
419
- * @param {string} color Specifies the color
420
- * @param {HTMLElement | Element} parent Specifies the parent element
421
- * @param {boolean} isMinus Specifies the boolean value
422
- * @returns {Element} Returns the html object
423
- * @private
424
- */
425
- export declare function renderTextElement(option: TextOption, style: FontModel, color: string, parent: HTMLElement | Element, isMinus?: boolean): Element;
426
- /**
427
- * @param {HTMLCollection} element - Specifies the html collection
428
- * @param {string} markerId - Specifies the marker id
429
- * @param {object} data - Specifies the data
430
- * @param {number} index - Specifies the index
431
- * @param {Maps} mapObj - Specifies the map object
432
- * @param {string} templateType - Specifies the template type
433
- * @returns {HTMLElement} - Returns the html element
434
- * @private
435
- */
436
- export declare function convertElement(element: HTMLCollection, markerId: string, data: object, index: number, mapObj: Maps, templateType: string): HTMLElement;
437
- /**
438
- *
439
- * @param {string} value - Specifies the value
440
- * @param {Maps} maps - Specifies the instance of the maps
441
- * @returns {string} - Returns the string value
442
- * @private
443
- */
444
- export declare function formatValue(value: string, maps: Maps): string;
445
- /**
446
- *
447
- * @param {string} stringTemplate - Specifies the template
448
- * @param {string} format - Specifies the format
449
- * @param {object} data - Specifies the data
450
- * @param {Maps} maps - Specifies the instance of the maps
451
- * @returns {string} - Returns the string value
452
- * @private
453
- */
454
- export declare function convertStringToValue(stringTemplate: string, format: string, data: object, maps: Maps): string;
455
- /**
456
- *
457
- * @param {Element} element - Specifies the element
458
- * @param {string} labelId - Specifies the label id
459
- * @param {object} data - Specifies the data
460
- * @returns {HTMLElement} - Returns the html element
461
- * @private
462
- */
463
- export declare function convertElementFromLabel(element: Element, labelId: string, data: object): HTMLElement;
464
- /**
465
- *
466
- * @param {MarkerType} shape - Specifies the shape
467
- * @param {string} imageUrl - Specifies the image url
468
- * @param {Point} location - Specifies the location
469
- * @param {string} markerID - Specifies the marker id
470
- * @param {any} shapeCustom - Specifies the shape custom
471
- * @param {Element} markerCollection - Specifies the marker collection
472
- * @param {Maps} maps - Specifies the instance of the maps
473
- * @returns {Element} - Returns the element
474
- * @private
475
- */
476
- export declare function drawSymbols(shape: MarkerType, imageUrl: string, location: Point, markerID: string, shapeCustom: any, markerCollection: Element, maps: Maps): Element;
477
- /**
478
- *
479
- * @param {object} data - Specifies the data
480
- * @param {string} value - Specifies the value
481
- * @returns {any} - Returns the data
482
- * @private
483
- */
484
- export declare function getValueFromObject(data: object, value: string): any;
485
- /**
486
- *
487
- * @param {IMarkerRenderingEventArgs} eventArgs - Specifies the event arguments
488
- * @param {object} data - Specifies the data
489
- * @returns {IMarkerRenderingEventArgs} - Returns the arguments
490
- * @private
491
- */
492
- export declare function markerColorChoose(eventArgs: IMarkerRenderingEventArgs, data: object): IMarkerRenderingEventArgs;
493
- /**
494
- *
495
- * @param {IMarkerRenderingEventArgs} eventArgs - Specifies the event arguments
496
- * @param {object} data - Specifies the data
497
- * @returns {IMarkerRenderingEventArgs} - Returns the arguments
498
- * @private
499
- */
500
- export declare function markerShapeChoose(eventArgs: IMarkerRenderingEventArgs, data: object): IMarkerRenderingEventArgs;
501
- /**
502
- *
503
- * @param {LayerSettings} currentLayer - Specifies the current layer
504
- * @param {HTMLElement | Element} markerTemplate - Specifies the marker template
505
- * @param {Maps} maps - Specifies the instance of the maps
506
- * @param {number} layerIndex - Specifies the layer index
507
- * @param {number} markerIndex - Specifies the marker index
508
- * @param {Element} markerCollection - Specifies the marker collection
509
- * @param {Element} layerElement - Specifies the layer element
510
- * @param {boolean} check - Specifies the boolean value
511
- * @param {boolean} zoomCheck - Specifies the boolean value
512
- * @param {any} translatePoint - Specifies the data
513
- * @param {boolean} allowInnerClusterSetting - Specifies the boolean value
514
- * @returns {boolean} -Returns boolean for cluster completion
515
- * @private
516
- */
517
- export declare function clusterTemplate(currentLayer: LayerSettings, markerTemplate: HTMLElement | Element, maps: Maps, layerIndex: number, markerIndex: number, markerCollection: Element, layerElement: Element, check: boolean, zoomCheck: boolean, translatePoint?: any, allowInnerClusterSetting?: boolean): boolean;
518
- /**
519
- * @param {Maps} maps - Specifies the map control.
520
- * @param {number} currentZoomFactor - Specifies the current zoom factor.
521
- * @param {number} layerIndex - Specifies the layer index.
522
- * @param {number} index - Specifies the index.
523
- * @param {number} indexCollection - Specifies the index Collection.
524
- * @returns {void}
525
- * @private
526
- */
527
- export declare function markerClusterListHandler(maps: Maps, currentZoomFactor: number, layerIndex: number, index: number, indexCollection: number[]): void;
528
- /**
529
- * @param {Element} tempElement - Specifies the temp element.
530
- * @param {ClientRect} markerBounds - Specifies the marker bounds.
531
- * @param {ClientRect} colloideBounds - Specifies the colloide Bounds.
532
- * @param {number[]} indexCollection - Specifies the index collection.
533
- * @param {number} p - Specifies the p.
534
- * @returns {void}
535
- * @private
536
- */
537
- export declare function markerBoundsComparer(tempElement: Element, markerBounds: ClientRect, colloideBounds: ClientRect[], indexCollection: number[], p: number): void;
538
- /**
539
- *
540
- * @param {MarkerClusterData[]} sameMarkerData - Specifies the marker data
541
- * @param {Maps} maps - Specifies the instance of the maps
542
- * @returns {void}
543
- * @private
544
- */
545
- export declare function mergeSeparateCluster(sameMarkerData: MarkerClusterData[], maps: Maps): void;
546
- /**
547
- *
548
- * @param {MarkerClusterData[]} sameMarkerData - Specifies the marker data
549
- * @param {Maps} maps - Specifies the instance of the maps
550
- * @param {Element | HTMLElement} markerElement - Specifies the marker element
551
- * @param {boolean} isDom - Specifies the boolean value
552
- * @returns {void}
553
- * @private
554
- */
555
- export declare function clusterSeparate(sameMarkerData: MarkerClusterData[], maps: Maps, markerElement: Element | HTMLElement, isDom?: boolean): void;
556
- /**
557
- *
558
- * @param {IMarkerRenderingEventArgs} eventArgs - Specifies the arguments
559
- * @param {MarkerSettings} markerSettings - Specifies the marker settings
560
- * @param {any[]} markerData - Specifies the marker data
561
- * @param {number} dataIndex - Specifies the data index
562
- * @param {Point} location - Specifies the location
563
- * @param {Point} transPoint - Specifies the translate point
564
- * @param {string} markerID - Specifies the marker id
565
- * @param {Point} offset - Specifies the offset value
566
- * @param {number} scale - Specifies the scale value
567
- * @param {Maps} maps - Specifies the instance of the maps
568
- * @param {Element} markerCollection - Specifies the marker collection
569
- * @returns {Element} - Returns the element
570
- * @private
571
- */
572
- export declare function marker(eventArgs: IMarkerRenderingEventArgs, markerSettings: MarkerSettings, markerData: any[], dataIndex: number, location: Point, transPoint: Point, markerID: string, offset: Point, scale: number, maps: Maps, markerCollection: Element): Element;
573
- /**
574
- *
575
- * @param {IMarkerRenderingEventArgs} eventArgs - Specifies the arguments
576
- * @param {any} templateFn - Specifies the template function
577
- * @param {string} markerID - Specifies the marker id
578
- * @param {any} data - Specifies the data
579
- * @param {number} markerIndex - Specifies the marker index
580
- * @param {HTMLElement} markerTemplate - Specifies the marker template element
581
- * @param {Point} location - Specifies the location
582
- * @param {Point} transPoint - Specifies the translate point.
583
- * @param {number} scale - Specifies the scale value
584
- * @param {Point} offset - Specifies the offset value
585
- * @param {Maps} maps - Specifies the instance of the maps
586
- * @returns {HTMLElement} - Returns the html element
587
- * @private
588
- */
589
- export declare function markerTemplate(eventArgs: IMarkerRenderingEventArgs, templateFn: any, markerID: string, data: any, markerIndex: number, markerTemplate: HTMLElement, location: Point, transPoint: Point, scale: number, offset: Point, maps: Maps): HTMLElement;
590
- /**
591
- * To maintain selection during page resize.
592
- *
593
- * @param {string[]} elementId - Specifies the element id
594
- * @param {Element} elementClass - Specifies the element class
595
- * @param {Element} element - Specifies the element
596
- * @param {string} className - Specifies the class name
597
- * @returns {void}
598
- * @private
599
- */
600
- export declare function maintainSelection(elementId: string[], elementClass: Element, element: Element, className: string): void;
601
- /**
602
- * To maintain toggle state during page resize.
603
- *
604
- * @param {string[]} toggledElements - Specifies the list of toggled elements
605
- * @param {Element} element - Specifies the element id
606
- * @param {any} styleProperty - Specifies the style properties
607
- * @returns {void}
608
- * @private
609
- */
610
- export declare function maintainToggleSelection(toggledElements: string[], element: Element, styleProperty: any): void;
611
- /**
612
- * To maintain selection style class.
613
- *
614
- * @param {string} id - Specifies the id
615
- * @param {string} idClass - Specifies the class id
616
- * @param {string} fill - Specifies the fill
617
- * @param {string} opacity - Specifies the opactiy
618
- * @param {string} borderColor - Specifies the border color
619
- * @param {string} borderWidth - Specifies the border width
620
- * @param {Maps} maps - Specifies the maps
621
- * @returns {void}
622
- * @private
623
- */
624
- export declare function maintainStyleClass(id: string, idClass: string, fill: string, opacity: string, borderColor: string, borderWidth: string, maps: Maps): void;
625
- /**
626
- * Internal use of append shape element.
627
- *
628
- * @param {Element} shape - Specifies the shape
629
- * @param {Element} element - Specifies the element
630
- * @returns {Element} - Returns the element
631
- * @private
632
- */
633
- export declare function appendShape(shape: Element, element: Element): Element;
634
- /**
635
- * Internal rendering of Circle.
636
- *
637
- * @param {Maps} maps - Specifies the instance of the maps
638
- * @param {CircleOption} options - Specifies the circle options
639
- * @param {Element} element - Specifies the element
640
- * @returns {Element} - Returns the element
641
- * @private
642
- */
643
- export declare function drawCircle(maps: Maps, options: CircleOption, element?: Element): Element;
644
- /**
645
- * Internal rendering of Rectangle.
646
- *
647
- * @param {Maps} maps - Specifies the instance of the maps
648
- * @param {RectOption} options - Specifies the rect options
649
- * @param {Element} element - Specifies the element
650
- * @returns {Element} - Returns the element
651
- * @private
652
- */
653
- export declare function drawRectangle(maps: Maps, options: RectOption, element?: Element): Element;
654
- /**
655
- * Internal rendering of Path.
656
- *
657
- * @param {Maps} maps - Specifies the instance of the maps
658
- * @param {PathOption} options - Specifies the polygon options
659
- * @param {Element} element - Specifies the element
660
- * @returns {Element} - Returns the element
661
- * @private
662
- */
663
- export declare function drawPath(maps: Maps, options: PathOption, element?: Element): Element;
664
- /**
665
- * Internal rendering of Polygon.
666
- *
667
- * @param {Maps} maps - Specifies the instance of the maps
668
- * @param {PolygonOption} options - Specifies the polygon options
669
- * @param {Element} element - Specifies the element
670
- * @returns {Element} - Returns the element
671
- * @private
672
- */
673
- export declare function drawPolygon(maps: Maps, options: PolygonOption, element?: Element): Element;
674
- /**
675
- * Internal rendering of Polyline.
676
- *
677
- * @param {Maps} maps - Specifies the instance of the maps
678
- * @param {PolylineOption} options - Specifies the poly line options
679
- * @param {Element} element - Specifies the element
680
- * @returns {Element} - Returns the element
681
- * @private
682
- */
683
- export declare function drawPolyline(maps: Maps, options: PolylineOption, element?: Element): Element;
684
- /**
685
- * Internal rendering of Line.
686
- *
687
- * @param {Maps} maps - Specifies the instance of the maps
688
- * @param {LineOption} options - Specifies the line options
689
- * @param {Element} element - Specifies the element
690
- * @returns {Element} - Returns the element
691
- * @private
692
- */
693
- export declare function drawLine(maps: Maps, options: LineOption, element?: Element): Element;
694
- /**
695
- * Calculate marker shapes.
696
- *
697
- * @param {Maps} maps - Specifies the instance of the maps
698
- * @param {MarkerType} shape - Specifies the marker type
699
- * @param {PathOption} options - Specifies the path options
700
- * @param {Size} size - Specifies the size
701
- * @param {MapLocation} location - Specifies the map location
702
- * @param {Element} markerEle - Specifies the element
703
- * @returns {Element} - Returns the element
704
- * @private
705
- */
706
- export declare function calculateShapes(maps: Maps, shape: MarkerType, options: PathOption, size: Size, location: MapLocation, markerEle: Element): Element;
707
- /**
708
- * Internal rendering of Diamond.
709
- *
710
- * @param {Maps} maps - Specifies the instance of the maps
711
- * @param {PathOption} options - Specifies the path options
712
- * @param {Size} size - Specifies the size
713
- * @param {MapLocation} location - Specifies the map location
714
- * @param {Element} element - Specifies the element
715
- * @returns {Element} - Returns the element
716
- * @private
717
- */
718
- export declare function drawDiamond(maps: Maps, options: PathOption, size: Size, location: MapLocation, element?: Element): Element;
719
- /**
720
- * Internal rendering of Triangle.
721
- *
722
- * @param {Maps} maps - Specifies the instance of the maps
723
- * @param {PathOption} options - Specifies the path options
724
- * @param {Size} size - Specifies the size
725
- * @param {MapLocation} location - Specifies the map location
726
- * @param {Element} element - Specifies the element
727
- * @returns {Element} - Returns the element
728
- * @private
729
- */
730
- export declare function drawTriangle(maps: Maps, options: PathOption, size: Size, location: MapLocation, element?: Element): Element;
731
- /**
732
- * Internal rendering of Cross.
733
- *
734
- * @param {Maps} maps - Specifies the instance of the maps
735
- * @param {PathOption} options - Specifies the path options
736
- * @param {Size} size - Specifies the size
737
- * @param {MapLocation} location - Specifies the map location
738
- * @param {Element} element - Specifies the element
739
- * @returns {Element} - Returns the element
740
- * @private
741
- */
742
- export declare function drawCross(maps: Maps, options: PathOption, size: Size, location: MapLocation, element?: Element): Element;
743
- /**
744
- * Internal rendering of HorizontalLine.
745
- *
746
- * @param {Maps} maps - Specifies the instance of the maps
747
- * @param {PathOption} options - Specifies the path options
748
- * @param {Size} size - Specifies the size
749
- * @param {MapLocation} location - Specifies the map location
750
- * @param {Element} element - Specifies the element
751
- * @returns {Element} - Returns the element
752
- * @private
753
- */
754
- export declare function drawHorizontalLine(maps: Maps, options: PathOption, size: Size, location: MapLocation, element?: Element): Element;
755
- /**
756
- * Internal rendering of VerticalLine.
757
- *
758
- * @param {Maps} maps - Specifies the instance of the maps
759
- * @param {PathOption} options - Specifies the path options
760
- * @param {Size} size - Specifies the size
761
- * @param {MapLocation} location - Specifies the map location
762
- * @param {Element} element - Specifies the element
763
- * @returns {Element} - Returns the element
764
- * @private
765
- */
766
- export declare function drawVerticalLine(maps: Maps, options: PathOption, size: Size, location: MapLocation, element?: Element): Element;
767
- /**
768
- * Internal rendering of Star.
769
- *
770
- * @param {Maps} maps - Specifies the instance of the maps
771
- * @param {PathOption} options - Specifies the path options
772
- * @param {Size} size - Specifies the size
773
- * @param {MapLocation} location - Specifies the map location
774
- * @param {Element} element - Specifies the element
775
- * @returns {Element} - Returns the element
776
- * @private
777
- */
778
- export declare function drawStar(maps: Maps, options: PathOption, size: Size, location: MapLocation, element?: Element): Element;
779
- /**
780
- * Internal rendering of Balloon.
781
- *
782
- * @param {Maps} maps - Specifies the instance of the maps
783
- * @param {PathOption} options - Specifies the path options
784
- * @param {Size} size - Specifies the size
785
- * @param {MapLocation} location - Specifies the map location
786
- * @param {string} type - Specifies the type.
787
- * @param {Element} element - Specifies the element
788
- * @returns {Element} - Returns the element
789
- * @private
790
- */
791
- export declare function drawBalloon(maps: Maps, options: PathOption, size: Size, location: MapLocation, type: string, element?: Element): Element;
792
- /**
793
- * Internal rendering of Pattern.
794
- *
795
- * @param {Maps} maps - Specifies the instance of the maps
796
- * @param {PatternOptions} options - Specifies the pattern options
797
- * @param {Element[]} elements - Specifies the elements
798
- * @param {Element} element - Specifies the element
799
- * @returns {Element} - Returns the element
800
- * @private
801
- */
802
- export declare function drawPattern(maps: Maps, options: PatternOptions, elements: Element[], element?: Element): Element;
803
- /**
804
- * Method to get specific field and vaues from data.
805
- *
806
- * @param {any[]} dataSource - Specifies the data source
807
- * @param {string[]} fields - Specifies the fields
808
- * @returns {any[]} - Returns the object
809
- * @private
810
- */
811
- export declare function getFieldData(dataSource: any[], fields: string[]): any[];
812
- /**
813
- * To find the index of dataSource from shape properties.
814
- *
815
- * @param {any[]} dataSource - Specifies the data source
816
- * @param {any} properties - Specifies the properties
817
- * @param {string} dataPath - Specifies the data path
818
- * @param {string | string[]} propertyPath - Specifies the property path
819
- * @param {LayerSettingsModel} layer - Specifies the layer settings
820
- * @returns {number} - Returns the number
821
- * @private
822
- */
823
- export declare function checkShapeDataFields(dataSource: any[], properties: any, dataPath: string, propertyPath: string | string[], layer: LayerSettingsModel): number;
824
- /**
825
- *
826
- * @param {string} shapeData - Specifies the shape data
827
- * @param {string | string[]} shapePropertyPath - Specifies the shape property path
828
- * @param {object} shape - Specifies the shape
829
- * @returns {string} - Returns the string value
830
- */
831
- export declare function checkPropertyPath(shapeData: string, shapePropertyPath: string | string[], shape: object): string;
832
- /**
833
- *
834
- * @param {MapLocation[]} points - Specifies the location
835
- * @param {number} start - Specifies the start value
836
- * @param {number} end - Specifies the end value
837
- * @returns {MapLocation[]} - Returns the location
838
- * @private
839
- */
840
- export declare function filter(points: MapLocation[], start: number, end: number): MapLocation[];
841
- /**
842
- *
843
- * @param {number} min - Specifies the min value
844
- * @param {number} max - Specifies the max value
845
- * @param {number} value - Specifies the value
846
- * @param {number} minValue - Specifies the minValue
847
- * @param {number} maxValue -Specifies the maxValue
848
- * @returns {number} - Returns the number
849
- * @private
850
- */
851
- export declare function getRatioOfBubble(min: number, max: number, value: number, minValue: number, maxValue: number): number;
852
- /**
853
- * To find the midpoint of the polygon from points.
854
- *
855
- * @param {MapLocation[]} points - Specifies the points
856
- * @param {string} type - Specifies the type
857
- * @param {string} geometryType - Specified the type of the geometry
858
- * @returns {any} - Specifies the object
859
- * @private
860
- */
861
- export declare function findMidPointOfPolygon(points: MapLocation[], type: string, geometryType?: string): any;
862
- /**
863
- * Check custom path.
864
- *
865
- * @param {any[]} layerData - Specifies the layer data
866
- * @returns {boolean} - Returns the boolean vlue
867
- * @private
868
- */
869
- export declare function isCustomPath(layerData: any[]): boolean;
870
- /**
871
- * Trim the title text.
872
- *
873
- * @param {number} maxWidth - Specifies the maximum width
874
- * @param {string} text - Specifies the text
875
- * @param {FontModel} font - Specifies the font
876
- * @param {number} width - Specifies the width of text
877
- * @param {boolean} isCanvasMeasure - checks the canvas measure
878
- * @param {number[]} widthList - Specifies the width list
879
- * @returns {string} - Returns the string
880
- * @private
881
- */
882
- export declare function textTrim(maxWidth: number, text: string, font: FontModel, width?: number, isCanvasMeasure?: boolean, widthList?: number[]): string;
883
- /**
884
- * Method to calculate x position of title.
885
- *
886
- * @param {Rect} location - Specifies the location
887
- * @param {Alignment} alignment - Specifies the alignment
888
- * @param {Size} textSize - Specifies the text size
889
- * @param {string} type - Specifies the type
890
- * @returns {Point} - Returns the point values
891
- * @private
892
- */
893
- export declare function findPosition(location: Rect, alignment: Alignment, textSize: Size, type: string): Point;
894
- /**
895
- * To remove element by id.
896
- *
897
- * @param {string} id - Specifies the id
898
- * @returns {void}
899
- * @private
900
- */
901
- export declare function removeElement(id: string): void;
902
- /**
903
- * To calculate map center position from pixel values.
904
- *
905
- * @param {Maps} mapObject - Specifies the map object
906
- * @param {LayerSettings} layer - Specifies the layer settings
907
- * @returns {Point} - Returns the x and y points
908
- * @private
909
- */
910
- export declare function calculateCenterFromPixel(mapObject: Maps, layer: LayerSettings): Point;
911
- /**
912
- * @param {Maps} mapObject - Specifies the map object
913
- * @param {LayerSettings} layer - Specifies the layer settings
914
- * @param {boolean} animate - Specifies the boolean value
915
- * @returns {any} - Returns the object
916
- * @private
917
- */
918
- export declare function getTranslate(mapObject: Maps, layer: LayerSettings, animate?: boolean): any;
919
- /**
920
- * @param {Maps} mapObject - Specifies the map object
921
- * @param {LayerSettings} layer - Specifies the layer
922
- * @param {boolean} animate - Specifies the boolean value
923
- * @returns {any} - Returns the object.
924
- * @private
925
- */
926
- export declare function getZoomTranslate(mapObject: Maps, layer: LayerSettings, animate?: boolean): any;
927
- /**
928
- * To get the html element by specified id.
929
- *
930
- * @param {Maps} map - Specifies the instance of the maps
931
- * @returns {void}
932
- * @private
933
- */
934
- export declare function fixInitialScaleForTile(map: Maps): void;
935
- /**
936
- * To get the html element by specified id.
937
- *
938
- * @param {string} id - Specifies the id
939
- * @returns {Element} - Returns the element
940
- * @private
941
- */
942
- export declare function getElementByID(id: string): Element;
943
- /**
944
- * Function to return the number value for the string value.
945
- *
946
- * @param {string | number} marginValue - Specifies the margin value.
947
- * @returns {number} - Returns the number value.
948
- * @private
949
- */
950
- export declare function getProcessedMarginValue(marginValue: string | number): number;
951
- /**
952
- * To apply internalization.
953
- *
954
- * @param {Maps} maps - Specifies the instance of the maps
955
- * @param {number} value - Specifies the value
956
- * @returns {string} - Returns the string
957
- * @private
958
- */
959
- export declare function Internalize(maps: Maps, value: number): string;
960
- /**
961
- * Function to compile the template function for maps.
962
- *
963
- * @param {string | Function} template - Specifies the template
964
- * @param {Maps} maps - Specifies the Maps instance.
965
- * @returns {any} - Returns the template function
966
- * @private
967
- */
968
- export declare function getTemplateFunction(template: string | Function, maps: Maps): any;
969
- /**
970
- * Function to get element from id.
971
- *
972
- * @param {string} id - Specifies the id
973
- * @returns {Element} - Returns the element
974
- * @private
975
- */
976
- export declare function getElement(id: string): Element;
977
- /**
978
- * Function to get shape data using target id.
979
- *
980
- * @param {string} targetId - Specifies the target id
981
- * @param {Maps} map - Specifies the instance of the maps
982
- * @returns {object} - Returns the object
983
- * @private
984
- */
985
- export declare function getShapeData(targetId: string, map: Maps): {
986
- shapeData: any;
987
- data: any;
988
- };
989
- /**
990
- * Function to trigger shapeSelected event.
991
- *
992
- * @param {string} targetId - Specifies the target id
993
- * @param {SelectionSettingsModel} selection - Specifies the selection
994
- * @param {Maps} maps - Specifies the instance of the maps
995
- * @param {string} eventName - Specifies the event name
996
- * @returns {IShapeSelectedEventArgs} - Returns the event args
997
- * @private
998
- */
999
- export declare function triggerShapeEvent(targetId: string, selection: SelectionSettingsModel, maps: Maps, eventName: string): IShapeSelectedEventArgs;
1000
- /**
1001
- * Function to get elements using class name.
1002
- *
1003
- * @param {string} className - Specifies the class name
1004
- * @returns {HTMLCollectionOf<Element>} - Returns the collection
1005
- * @private
1006
- */
1007
- export declare function getElementsByClassName(className: string): HTMLCollectionOf<Element>;
1008
- /**
1009
- * Function to get elements using querySelectorAll
1010
- */
1011
- /**
1012
- * Function to get elements using querySelector.
1013
- *
1014
- * @param {string} args - Specifies the args
1015
- * @param {string} elementSelector - Specifies the element selector
1016
- * @returns {Element} - Returns the element
1017
- * @private
1018
- */
1019
- export declare function querySelector(args: string, elementSelector: string): Element;
1020
- /**
1021
- * Function to get the element for selection and highlight using public method.
1022
- *
1023
- * @param {number} layerIndex - Specifies the layer index
1024
- * @param {string} name - Specifies the layer name
1025
- * @param {boolean} enable - Specifies the boolean value
1026
- * @param {Maps} map - Specifies the instance of the maps
1027
- * @returns {Element} - Returns the element
1028
- * @private
1029
- */
1030
- export declare function getTargetElement(layerIndex: number, name: string, enable: boolean, map: Maps): Element;
1031
- /**
1032
- * Function to create style element for highlight and selection.
1033
- *
1034
- * @param {string} id - Specifies the id
1035
- * @param {string} className - Specifies the class name
1036
- * @param {IShapeSelectedEventArgs | any} eventArgs - Specifies the event args
1037
- * @returns {Element} - Returns the element
1038
- * @private
1039
- */
1040
- export declare function createStyle(id: string, className: string, eventArgs: IShapeSelectedEventArgs | any): Element;
1041
- /**
1042
- * Function to customize the style for highlight and selection.
1043
- *
1044
- * @param {string} id - Specifies the id
1045
- * @param {string} className - Specifies the class name
1046
- * @param {IShapeSelectedEventArgs | any} eventArgs - Specifies the event args
1047
- * @returns {void}
1048
- * @private
1049
- */
1050
- export declare function customizeStyle(id: string, className: string, eventArgs: IShapeSelectedEventArgs | any): void;
1051
- /**
1052
- * Function to trigger itemSelection event for legend selection and public method.
1053
- *
1054
- * @param {SelectionSettingsModel} selectionSettings - Specifies the selection settings
1055
- * @param {Maps} map - Specifies the instance of the maps
1056
- * @param {Element} targetElement - Specifies the target element
1057
- * @param {object} shapeData - Specifies the shape data
1058
- * @param {object} data - Specifies the data
1059
- * @returns {void}
1060
- * @private
1061
- */
1062
- export declare function triggerItemSelectionEvent(selectionSettings: SelectionSettingsModel, map: Maps, targetElement: Element, shapeData: object, data: object): void;
1063
- /**
1064
- * Function to remove class from element.
1065
- *
1066
- * @param {Element} element - Specifies the element
1067
- * @returns {void}
1068
- * @private
1069
- */
1070
- export declare function removeClass(element: Element): void;
1071
- /**
1072
- * Animation Effect Calculation End
1073
- *
1074
- * @param {Element} element - Specifies the element
1075
- * @param {number} delay - Specifies the delay
1076
- * @param {number} duration - Specifies the duration
1077
- * @param {MapLocation} point - Specifies the location
1078
- * @param {Maps} maps - Specifies the instance of the maps
1079
- * @param {string} ele - Specifies the element
1080
- * @param {number} radius - Specifies the radius
1081
- * @returns {void}
1082
- * @private
1083
- */
1084
- export declare function elementAnimate(element: Element, delay: number, duration: number, point: MapLocation, maps: Maps, ele?: string, radius?: number): void;
1085
- /**
1086
- * @param {string} id - Specifies the id
1087
- * @returns {void}
1088
- * @private
1089
- */
1090
- export declare function timeout(id: string): void;
1091
- /**
1092
- * @param {string} text - Specifies the text
1093
- * @param {string} size - Specifies the size
1094
- * @param {number} x - Specifies the x value
1095
- * @param {number} y - Specifies the y value
1096
- * @param {number} areaWidth - Specifies the area width
1097
- * @param {number} areaHeight - Specifies the area height
1098
- * @param {string} id - Specifies the id
1099
- * @param {Element} element - Specifies the element
1100
- * @param {boolean} isTouch - Specifies the boolean value
1101
- * @returns {void}
1102
- * @private
1103
- */
1104
- export declare function showTooltip(text: string, size: string, x: number, y: number, areaWidth: number, areaHeight: number, id: string, element: Element, isTouch?: boolean): void;
1105
- /**
1106
- * @param {HTMLElement} tooltip - Specifies the tooltip element
1107
- * @param {string} text - Specifies the text
1108
- * @param {number} x - Specifies the x value
1109
- * @param {number} y - Specifies the y value
1110
- * @param {string[]} size1 - Specifies the size
1111
- * @param {number} width - Specifies the width
1112
- * @param {number} areaWidth - Specifies the area width
1113
- * @param {Element} element - Specifies the element
1114
- * @returns {void}
1115
- * @private
1116
- */
1117
- export declare function wordWrap(tooltip: HTMLElement, text: string, x: number, y: number, size1: string[], width: number, areaWidth: number, element: Element): void;
1118
- /**
1119
- * @param {string} id - Specifies the id
1120
- * @param {string} text - Specifies the text
1121
- * @param {number} top - Specifies the top
1122
- * @param {number} left - Specifies the left
1123
- * @param {ZoomToolbarTooltipSettingsModel} settings - Specifies the tooltip settings.
1124
- * @returns {void}
1125
- * @private
1126
- */
1127
- export declare function createTooltip(id: string, text: string, top: number, left: number, settings: ZoomToolbarTooltipSettingsModel): void;
1128
- /**
1129
- * @param {string} color - Specifies the color
1130
- * @returns {any} - Returns the color in rgb
1131
- * @private
1132
- */
1133
- export declare function getHexColor(color: string): any;
1134
- /**
1135
- * @param {Point} location - Specifies the location
1136
- * @param {string} shape - Specifies the shape
1137
- * @param {Size} size - Specifies the size
1138
- * @param {string} url - Specifies the url
1139
- * @param {PathOption} options - Specifies the options
1140
- * @returns {Element} - Returns the element
1141
- * @private
1142
- */
1143
- export declare function drawSymbol(location: Point, shape: string, size: Size, url: string, options: PathOption): Element;
1144
- /**
1145
- * @param {MapLocation} location - Specifies the location
1146
- * @param {Size} size - Specifies the size
1147
- * @param {string} shape - Specifies the shape
1148
- * @param {PathOption} options - Specifies the path options
1149
- * @param {string} url - Specifies the url
1150
- * @returns {IShapes} - Returns the shapes
1151
- * @private
1152
- */
1153
- export declare function renderLegendShape(location: MapLocation, size: Size, shape: string, options: PathOption, url: string): IShapes;
1154
- /**
1155
- * Animation Effect Calculation End
1156
- *
1157
- * @private
1158
- */
1159
- /**
1160
- * @param {HTMLElement} childElement - Specifies the child element
1161
- * @param {HTMLElement} parentElement - Specifies the parent element
1162
- * @returns {Size} - Returns the size
1163
- * @private
1164
- */
1165
- export declare function getElementOffset(childElement: HTMLElement, parentElement: HTMLElement): Size;
1166
- /**
1167
- * @param {Element} element - Specifies the element
1168
- * @param {number} index - Specifies the element
1169
- * @param {number} scale - Specifies the scale
1170
- * @param {Maps} maps - Specifies the instance of the maps
1171
- * @returns {void}
1172
- * @private
1173
- */
1174
- export declare function changeBorderWidth(element: Element, index: number, scale: number, maps: Maps): void;
1175
- /**
1176
- * @param {Element} element - Specifies the element
1177
- * @param {number} index - Specifies the element
1178
- * @param {number} scale - Specifies the scale
1179
- * @param {Maps} maps - Specifies the instance of the maps
1180
- * @returns {void}
1181
- * @private
1182
- */
1183
- export declare function changeNavaigationLineWidth(element: Element, index: number, scale: number, maps: Maps): void;
1184
- /**
1185
- * @param {PointerEvent | TouchEvent} event - Specifies the pointer or touch event
1186
- * @returns {ITouches[]} - Returns the target
1187
- * @private
1188
- */
1189
- export declare function targetTouches(event: PointerEvent | TouchEvent): ITouches[];
1190
- /**
1191
- * @param {ITouches[]} startTouches - Specifies the start touches
1192
- * @param {ITouches[]} endTouches - Specifies the end touches
1193
- * @returns {number} - Returns the number
1194
- * @private
1195
- */
1196
- export declare function calculateScale(startTouches: ITouches[], endTouches: ITouches[]): number;
1197
- /**
1198
- * @param {ITouches} a - Specifies the a value
1199
- * @param {ITouches} b - Specifies the b value
1200
- * @returns {number} - Returns the number
1201
- * @private
1202
- */
1203
- export declare function getDistance(a: ITouches, b: ITouches): number;
1204
- /**
1205
- * @param {ITouches[]} touches - Specifies the touches
1206
- * @param {Maps} maps - Specifies the instance of the maps
1207
- * @returns {any[]} - Returns the object
1208
- * @private
1209
- */
1210
- export declare function getTouches(touches: ITouches[], maps: Maps): any[];
1211
- /**
1212
- * @param {any[]} touches - Specifies the touches
1213
- * @returns {Point} - Returns the point
1214
- * @private
1215
- */
1216
- export declare function getTouchCenter(touches: any[]): Point;
1217
- /**
1218
- * @param {number} a - Specifies a value
1219
- * @param {number} b - Specifies b value
1220
- * @returns {number} - Returns the sum of a and b
1221
- * @private
1222
- */
1223
- export declare function sum(a: number, b: number): number;
1224
- /**
1225
- * Animation Effect Calculation End.
1226
- *
1227
- * @param {Element} element - Specifies the element.
1228
- * @param {number} delay - Specifies the delay.
1229
- * @param {number} duration - Specifies the duration.
1230
- * @param {MapLocation} point - Specifies the location.
1231
- * @param {number} scale - Specifies the scale value.
1232
- * @param {Size} size - Specifies the size.
1233
- * @param {Maps} maps - Specifies the maps.
1234
- * @returns {void}
1235
- * @private
1236
- */
1237
- export declare function zoomAnimate(element: Element, delay: number, duration: number, point: MapLocation, scale: number, size: Size, maps: Maps): void;
1238
- /**
1239
- * To process custom animation.
1240
- *
1241
- * @param {Element} element - Specifies the element
1242
- * @param {number} delay - Specifies the delay
1243
- * @param {number} duration - Specifies the duration
1244
- * @param {Function} process - Specifies the process
1245
- * @param {Function} end - Specifies the end
1246
- * @returns {void}
1247
- * @private
1248
- */
1249
- export declare function animate(element: Element, delay: number, duration: number, process: Function, end: Function): void;
1250
- /**
1251
- * Defines the options to get shape data file using Ajax request.
1252
- */
1253
- export declare class MapAjax {
1254
- /**
1255
- * Defines the data options for the Ajax.
1256
- */
1257
- dataOptions: string | any;
1258
- /**
1259
- * Defines type of the Ajax.
1260
- */
1261
- type: string;
1262
- /**
1263
- * Defines whether the Ajax request is asynchronous or not.
1264
- */
1265
- async: boolean;
1266
- /**
1267
- * Defines the type of the content in Ajax request.
1268
- */
1269
- contentType: string;
1270
- /**
1271
- * Defines the data sent in the Ajax request.
1272
- */
1273
- sendData: string | any;
1274
- constructor(options: string | any, type?: string, async?: boolean, contentType?: string, sendData?: string | any);
1275
- }
1276
- /**
1277
- * Animation Translate.
1278
- *
1279
- * @param {Element} element - Specifies the element
1280
- * @param {number} delay - Specifies the delay
1281
- * @param {number} duration - Specifies the duration
1282
- * @param {MapLocation} point - Specifies the location
1283
- * @returns {void}
1284
- * @private
1285
- */
1286
- export declare function smoothTranslate(element: Element, delay: number, duration: number, point: MapLocation): void;
1287
- /**
1288
- * To find compare should zoom factor with previous factor and current factor.
1289
- *
1290
- * @param {number} scaleFactor - Specifies the scale factor
1291
- * @param {Maps} maps - Specifies the instance of the maps
1292
- * @returns {void}
1293
- * @private
1294
- */
1295
- export declare function compareZoomFactor(scaleFactor: number, maps: Maps): void;
1296
- /**
1297
- * To find zoom level for the min and max latitude values.
1298
- *
1299
- * @param {number} minLat - Specifies the minimum latitude
1300
- * @param {number} maxLat - Specifies the maximum latitude
1301
- * @param {number} minLong - Specifies the minimum longitude
1302
- * @param {number} maxLong - Specifies the maximum longitude
1303
- * @param {number} mapWidth - Specifies the width of the maps
1304
- * @param {number} mapHeight - Specifies the height of the maps
1305
- * @param {Maps} maps - Specifies the instance of the maps
1306
- * @param {boolean} isZoomToCoordinates - Checks for the zoom to coordinates
1307
- * @returns {number} - Returns the scale factor
1308
- * @private
1309
- */
1310
- export declare function calculateZoomLevel(minLat: number, maxLat: number, minLong: number, maxLong: number, mapWidth: number, mapHeight: number, maps: Maps, isZoomToCoordinates: boolean): number;
1311
- /**
1312
- * Method to get the result.
1313
- *
1314
- * @param {any} e - Specifies the any type value
1315
- * @returns {any} - Returns the data value
1316
- * @private
1317
- */
1318
- export declare function processResult(e: any): any;