@syncfusion/ej2-maps 30.2.4 → 31.2.2
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.
- package/.eslintrc.json +263 -0
- package/dist/ej2-maps.min.js +2 -2
- package/dist/ej2-maps.umd.min.js +2 -2
- package/dist/global/ej2-maps.min.js +2 -2
- package/dist/global/index.d.ts +2 -2
- package/dist/ts/index.d.ts +4 -0
- package/dist/ts/index.ts +4 -0
- package/dist/ts/maps/index.d.ts +28 -0
- package/dist/ts/maps/index.ts +28 -0
- package/dist/ts/maps/layers/bing-map.d.ts +21 -0
- package/dist/ts/maps/layers/bing-map.ts +51 -0
- package/dist/ts/maps/layers/bubble.d.ts +77 -0
- package/dist/ts/maps/layers/bubble.ts +304 -0
- package/dist/ts/maps/layers/color-mapping.d.ts +36 -0
- package/dist/ts/maps/layers/color-mapping.ts +230 -0
- package/dist/ts/maps/layers/data-label.d.ts +45 -0
- package/dist/ts/maps/layers/data-label.ts +457 -0
- package/dist/ts/maps/layers/layer-panel.d.ts +144 -0
- package/dist/ts/maps/layers/layer-panel.ts +1455 -0
- package/dist/ts/maps/layers/legend.d.ts +173 -0
- package/dist/ts/maps/layers/legend.ts +2465 -0
- package/dist/ts/maps/layers/marker.d.ts +105 -0
- package/dist/ts/maps/layers/marker.ts +632 -0
- package/dist/ts/maps/layers/navigation-selected-line.d.ts +33 -0
- package/dist/ts/maps/layers/navigation-selected-line.ts +171 -0
- package/dist/ts/maps/layers/polygon.d.ts +30 -0
- package/dist/ts/maps/layers/polygon.ts +68 -0
- package/dist/ts/maps/maps-model.d.ts +409 -0
- package/dist/ts/maps/maps.d.ts +1247 -0
- package/dist/ts/maps/maps.ts +3416 -0
- package/dist/ts/maps/model/base-model.d.ts +2107 -0
- package/dist/ts/maps/model/base.d.ts +1840 -0
- package/dist/ts/maps/model/base.ts +2257 -0
- package/dist/ts/maps/model/constants.d.ts +225 -0
- package/dist/ts/maps/model/constants.ts +226 -0
- package/dist/ts/maps/model/export-image.d.ts +39 -0
- package/dist/ts/maps/model/export-image.ts +194 -0
- package/dist/ts/maps/model/export-pdf.d.ts +40 -0
- package/dist/ts/maps/model/export-pdf.ts +183 -0
- package/dist/ts/maps/model/interface.d.ts +892 -0
- package/dist/ts/maps/model/interface.ts +929 -0
- package/dist/ts/maps/model/print.d.ts +45 -0
- package/dist/ts/maps/model/print.ts +125 -0
- package/dist/ts/maps/model/theme.d.ts +98 -0
- package/dist/ts/maps/model/theme.ts +919 -0
- package/dist/ts/maps/user-interaction/annotation.d.ts +27 -0
- package/dist/ts/maps/user-interaction/annotation.ts +133 -0
- package/dist/ts/maps/user-interaction/highlight.d.ts +63 -0
- package/dist/ts/maps/user-interaction/highlight.ts +272 -0
- package/dist/ts/maps/user-interaction/selection.d.ts +85 -0
- package/dist/ts/maps/user-interaction/selection.ts +342 -0
- package/dist/ts/maps/user-interaction/tooltip.d.ts +78 -0
- package/dist/ts/maps/user-interaction/tooltip.ts +500 -0
- package/dist/ts/maps/user-interaction/zoom.d.ts +334 -0
- package/dist/ts/maps/user-interaction/zoom.ts +2523 -0
- package/dist/ts/maps/utils/enum.d.ts +328 -0
- package/dist/ts/maps/utils/enum.ts +343 -0
- package/dist/ts/maps/utils/helper.d.ts +1318 -0
- package/dist/ts/maps/utils/helper.ts +3811 -0
- package/package.json +53 -18
- package/tslint.json +111 -0
|
@@ -0,0 +1,1247 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maps Component file
|
|
3
|
+
*/
|
|
4
|
+
import { Component, INotifyPropertyChanged } from '@syncfusion/ej2-base';
|
|
5
|
+
import { EmitType } from '@syncfusion/ej2-base';
|
|
6
|
+
import { L10n, Internationalization } from '@syncfusion/ej2-base';
|
|
7
|
+
import { ModuleDeclaration } from '@syncfusion/ej2-base';
|
|
8
|
+
import { SvgRenderer } from '@syncfusion/ej2-svg-base';
|
|
9
|
+
import { Size, Point } from './utils/helper';
|
|
10
|
+
import { LayerSettings } from './model/base';
|
|
11
|
+
import { ZoomSettingsModel, LegendSettingsModel, LayerSettingsModel } from './model/base-model';
|
|
12
|
+
import { MarkerSettingsModel, SelectionSettingsModel } from './model/base-model';
|
|
13
|
+
import { TitleSettingsModel, BorderModel, MarginModel, CenterPositionModel } from './model/base-model';
|
|
14
|
+
import { MapsAreaSettingsModel, AnnotationModel } from './model/base-model';
|
|
15
|
+
import { Bubble } from './layers/bubble';
|
|
16
|
+
import { Legend } from './layers/legend';
|
|
17
|
+
import { Marker } from './layers/marker';
|
|
18
|
+
import { Highlight } from './user-interaction/highlight';
|
|
19
|
+
import { Selection } from './user-interaction/selection';
|
|
20
|
+
import { MapsTooltip } from './user-interaction/tooltip';
|
|
21
|
+
import { Zoom } from './user-interaction/zoom';
|
|
22
|
+
import { ProjectionType, MapsTheme, PanDirection, TooltipGesture } from './utils/enum';
|
|
23
|
+
import { MapsModel } from './maps-model';
|
|
24
|
+
import { ILoadEventArgs, ILoadedEventArgs, IMinMaxLatitudeLongitude, IMouseEventArgs, IMouseMoveEventArgs, IResizeEventArgs, ITooltipRenderEventArgs } from './model/interface';
|
|
25
|
+
import { GeoPosition, ITooltipRenderCompleteEventArgs, ILegendRenderingEventArgs } from './model/interface';
|
|
26
|
+
import { ILayerRenderingEventArgs, IShapeRenderingEventArgs, IMarkerRenderingEventArgs, IMarkerClickEventArgs } from './model/interface';
|
|
27
|
+
import { IMarkerMoveEventArgs, ILabelRenderingEventArgs, IBubbleMoveEventArgs, IBubbleClickEventArgs } from './model/interface';
|
|
28
|
+
import { IMarkerClusterClickEventArgs, IMarkerClusterMoveEventArgs, IMarkerClusterRenderingEventArgs } from './model/interface';
|
|
29
|
+
import { ISelectionEventArgs, IShapeSelectedEventArgs, IMapPanEventArgs, IMapZoomEventArgs } from './model/interface';
|
|
30
|
+
import { IBubbleRenderingEventArgs, IAnimationCompleteEventArgs, IPrintEventArgs, IThemeStyle } from './model/interface';
|
|
31
|
+
import { LayerPanel } from './layers/layer-panel';
|
|
32
|
+
import { GeoLocation, Rect } from '../maps/utils/helper';
|
|
33
|
+
import { Annotations } from '../maps/user-interaction/annotation';
|
|
34
|
+
import { DataLabel, IAnnotationRenderingEventArgs, IMarkerDragEventArgs, BingMap } from './index';
|
|
35
|
+
import { NavigationLine } from './layers/navigation-selected-line';
|
|
36
|
+
import { Polygon } from './layers/polygon';
|
|
37
|
+
import { ExportType } from '../maps/utils/enum';
|
|
38
|
+
import { PdfPageOrientation } from '@syncfusion/ej2-pdf-export';
|
|
39
|
+
import { Print } from './model/print';
|
|
40
|
+
import { PdfExport } from './model/export-pdf';
|
|
41
|
+
import { ImageExport } from './model/export-image';
|
|
42
|
+
/**
|
|
43
|
+
* Represents the maps control. It is ideal for rendering maps from GeoJSON data or other map providers like OpenStreetMap, Google Maps, Bing Maps, etc that
|
|
44
|
+
* has rich feature set that includes markers, labels, bubbles and much more.
|
|
45
|
+
* ```html
|
|
46
|
+
* <div id="maps"/>
|
|
47
|
+
* <script>
|
|
48
|
+
* var maps = new Maps();
|
|
49
|
+
* maps.appendTo("#maps");
|
|
50
|
+
* </script>
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
export declare class Maps extends Component<HTMLElement> implements INotifyPropertyChanged {
|
|
54
|
+
/**
|
|
55
|
+
* Gets or sets the module to add bubbles in the maps.
|
|
56
|
+
*
|
|
57
|
+
* @private
|
|
58
|
+
*/
|
|
59
|
+
bubbleModule: Bubble;
|
|
60
|
+
/**
|
|
61
|
+
* Sets and get the module to add the marker in the maps.
|
|
62
|
+
*
|
|
63
|
+
* @private
|
|
64
|
+
*/
|
|
65
|
+
markerModule: Marker;
|
|
66
|
+
/**
|
|
67
|
+
* Gets or sets the module to add the data-label in the maps.
|
|
68
|
+
*
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
dataLabelModule: DataLabel;
|
|
72
|
+
/**
|
|
73
|
+
* Gets or sets the module to highlight the element when mouse has hovered on it in maps.
|
|
74
|
+
*
|
|
75
|
+
* @private
|
|
76
|
+
*/
|
|
77
|
+
highlightModule: Highlight;
|
|
78
|
+
/**
|
|
79
|
+
* Gets or sets the module to add the navigation lines in the maps.
|
|
80
|
+
*
|
|
81
|
+
* @private
|
|
82
|
+
*/
|
|
83
|
+
navigationLineModule: NavigationLine;
|
|
84
|
+
/**
|
|
85
|
+
* Gets or sets the module to add the polygon shapes over the maps.
|
|
86
|
+
*
|
|
87
|
+
* @private
|
|
88
|
+
*/
|
|
89
|
+
polygonModule: Polygon;
|
|
90
|
+
/**
|
|
91
|
+
* Gets or sets the module to add the legend in maps.
|
|
92
|
+
*
|
|
93
|
+
* @private
|
|
94
|
+
*/
|
|
95
|
+
legendModule: Legend;
|
|
96
|
+
/**
|
|
97
|
+
* Gets or sets the module to select the geometric shapes when clicking in maps.
|
|
98
|
+
*
|
|
99
|
+
* @private
|
|
100
|
+
*/
|
|
101
|
+
selectionModule: Selection;
|
|
102
|
+
/**
|
|
103
|
+
* Gets or sets the module to add the tooltip when mouse has hovered on an element in maps.
|
|
104
|
+
*
|
|
105
|
+
* @private
|
|
106
|
+
*/
|
|
107
|
+
mapsTooltipModule: MapsTooltip;
|
|
108
|
+
/**
|
|
109
|
+
* Gets or sets the module to add the zooming operations in maps.
|
|
110
|
+
*
|
|
111
|
+
* @private
|
|
112
|
+
*/
|
|
113
|
+
zoomModule: Zoom;
|
|
114
|
+
/**
|
|
115
|
+
* Gets or sets the module to add annotation elements in maps.
|
|
116
|
+
*
|
|
117
|
+
* @private
|
|
118
|
+
*/
|
|
119
|
+
annotationsModule: Annotations;
|
|
120
|
+
/**
|
|
121
|
+
* This module enables the print functionality in maps.
|
|
122
|
+
*
|
|
123
|
+
* @private
|
|
124
|
+
*/
|
|
125
|
+
printModule: Print;
|
|
126
|
+
/**
|
|
127
|
+
* This module enables the export to PDF functionality in maps.
|
|
128
|
+
*
|
|
129
|
+
* @private
|
|
130
|
+
*/
|
|
131
|
+
pdfExportModule: PdfExport;
|
|
132
|
+
/**
|
|
133
|
+
* This module enables the export to image functionality in maps.
|
|
134
|
+
*
|
|
135
|
+
* @private
|
|
136
|
+
*/
|
|
137
|
+
imageExportModule: ImageExport;
|
|
138
|
+
/**
|
|
139
|
+
* This module enables the bing map functionality in maps.
|
|
140
|
+
*
|
|
141
|
+
* @private
|
|
142
|
+
*/
|
|
143
|
+
bingMap: BingMap;
|
|
144
|
+
/**
|
|
145
|
+
* Gets or sets the background color of the maps container.
|
|
146
|
+
*
|
|
147
|
+
* @default null
|
|
148
|
+
*/
|
|
149
|
+
background: string;
|
|
150
|
+
/**
|
|
151
|
+
* Enables or disables the visibility state of the separator for grouping.
|
|
152
|
+
*
|
|
153
|
+
* @default false
|
|
154
|
+
*/
|
|
155
|
+
useGroupingSeparator: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Gets or sets the format to apply internationalization for the text in the maps.
|
|
158
|
+
*
|
|
159
|
+
* @default null
|
|
160
|
+
*/
|
|
161
|
+
format: string;
|
|
162
|
+
/**
|
|
163
|
+
* Gets or sets the width in which the maps is to be rendered.
|
|
164
|
+
*
|
|
165
|
+
* @default null
|
|
166
|
+
*/
|
|
167
|
+
width: string;
|
|
168
|
+
/**
|
|
169
|
+
* Gets or sets the height in which the maps is to be rendered.
|
|
170
|
+
*
|
|
171
|
+
* @default null
|
|
172
|
+
*/
|
|
173
|
+
height: string;
|
|
174
|
+
/**
|
|
175
|
+
* Gets or sets the mode in which the tooltip is to be displayed.
|
|
176
|
+
* The tooltip can be rendered on mouse move, click or double clicking on the
|
|
177
|
+
* element on the map.
|
|
178
|
+
*
|
|
179
|
+
* @default 'MouseMove'
|
|
180
|
+
*/
|
|
181
|
+
tooltipDisplayMode: TooltipGesture;
|
|
182
|
+
/**
|
|
183
|
+
* Enables or disables the print functionality in maps.
|
|
184
|
+
*
|
|
185
|
+
* @default false
|
|
186
|
+
*/
|
|
187
|
+
allowPrint: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Enables or disables the export to image functionality in maps.
|
|
190
|
+
*
|
|
191
|
+
* @default false
|
|
192
|
+
*/
|
|
193
|
+
allowImageExport: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* Enables or disables the export to PDF functionality in maps.
|
|
196
|
+
*
|
|
197
|
+
* @default false
|
|
198
|
+
*/
|
|
199
|
+
allowPdfExport: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Gets or sets the options to customize the title of the maps.
|
|
202
|
+
*/
|
|
203
|
+
titleSettings: TitleSettingsModel;
|
|
204
|
+
/**
|
|
205
|
+
* Gets or sets the options to customize the zooming operations in maps.
|
|
206
|
+
*/
|
|
207
|
+
zoomSettings: ZoomSettingsModel;
|
|
208
|
+
/**
|
|
209
|
+
* Gets or sets the options to customize the legend of the maps.
|
|
210
|
+
*/
|
|
211
|
+
legendSettings: LegendSettingsModel;
|
|
212
|
+
/**
|
|
213
|
+
* Gets or sets the options to customize the layers of the maps.
|
|
214
|
+
*/
|
|
215
|
+
layers: LayerSettingsModel[];
|
|
216
|
+
/**
|
|
217
|
+
* Gets or sets the options for customizing the annotations in the maps.
|
|
218
|
+
*/
|
|
219
|
+
annotations: AnnotationModel[];
|
|
220
|
+
/**
|
|
221
|
+
* Gets or sets the options to customize the margin of the maps.
|
|
222
|
+
*/
|
|
223
|
+
margin: MarginModel;
|
|
224
|
+
/**
|
|
225
|
+
* Gets or sets the options for customizing the style properties of the maps border.
|
|
226
|
+
*/
|
|
227
|
+
border: BorderModel;
|
|
228
|
+
/**
|
|
229
|
+
* Gets or sets the theme styles supported for maps. When the theme is set, the styles associated with the theme will be set in the maps.
|
|
230
|
+
*
|
|
231
|
+
* @default Material
|
|
232
|
+
*/
|
|
233
|
+
theme: MapsTheme;
|
|
234
|
+
/**
|
|
235
|
+
* Gets or sets the projection with which the maps will be rendered to show the two-dimensional curved surface of a globe on a plane.
|
|
236
|
+
*
|
|
237
|
+
* @default Mercator
|
|
238
|
+
*/
|
|
239
|
+
projectionType: ProjectionType;
|
|
240
|
+
/**
|
|
241
|
+
* Gets or sets the index of the layer of maps which will be the base layer. It provides the option to select which layer to be visible in the maps.
|
|
242
|
+
*
|
|
243
|
+
* @default 0
|
|
244
|
+
*/
|
|
245
|
+
baseLayerIndex: number;
|
|
246
|
+
/**
|
|
247
|
+
* Gets or sets the description of the maps for assistive technology.
|
|
248
|
+
*
|
|
249
|
+
* @default null
|
|
250
|
+
*/
|
|
251
|
+
description: string;
|
|
252
|
+
/**
|
|
253
|
+
* Gets or sets the tab index value for the maps.
|
|
254
|
+
*
|
|
255
|
+
* @default 0
|
|
256
|
+
*/
|
|
257
|
+
tabIndex: number;
|
|
258
|
+
/**
|
|
259
|
+
* Gets or sets the center position of the maps.
|
|
260
|
+
*/
|
|
261
|
+
centerPosition: CenterPositionModel;
|
|
262
|
+
/**
|
|
263
|
+
* Gets or sets the options to customize the area around the map.
|
|
264
|
+
*/
|
|
265
|
+
mapsArea: MapsAreaSettingsModel;
|
|
266
|
+
/**
|
|
267
|
+
* Triggers before the maps gets rendered.
|
|
268
|
+
*
|
|
269
|
+
* @event load
|
|
270
|
+
*/
|
|
271
|
+
load: EmitType<ILoadEventArgs>;
|
|
272
|
+
/**
|
|
273
|
+
* Triggers before the print gets started.
|
|
274
|
+
*
|
|
275
|
+
* @event beforePrint
|
|
276
|
+
*/
|
|
277
|
+
beforePrint: EmitType<IPrintEventArgs>;
|
|
278
|
+
/**
|
|
279
|
+
* Triggers after the maps gets rendered.
|
|
280
|
+
*
|
|
281
|
+
* @event loaded
|
|
282
|
+
*/
|
|
283
|
+
loaded: EmitType<ILoadedEventArgs>;
|
|
284
|
+
/**
|
|
285
|
+
* Triggers when a user clicks on an element in Maps.
|
|
286
|
+
*
|
|
287
|
+
* @event click
|
|
288
|
+
* @deprecated
|
|
289
|
+
*/
|
|
290
|
+
click: EmitType<IMouseEventArgs>;
|
|
291
|
+
/**
|
|
292
|
+
* Triggers when a user clicks on an element in Maps.
|
|
293
|
+
*
|
|
294
|
+
* @event onclick
|
|
295
|
+
*/
|
|
296
|
+
onclick: EmitType<IMouseEventArgs>;
|
|
297
|
+
/**
|
|
298
|
+
* Triggers when performing the double click operation on an element in maps.
|
|
299
|
+
*
|
|
300
|
+
* @event doubleClick
|
|
301
|
+
*/
|
|
302
|
+
doubleClick: EmitType<IMouseEventArgs>;
|
|
303
|
+
/**
|
|
304
|
+
* Triggers when performing the right click operation on an element in maps.
|
|
305
|
+
*
|
|
306
|
+
* @event rightClick
|
|
307
|
+
*/
|
|
308
|
+
rightClick: EmitType<IMouseEventArgs>;
|
|
309
|
+
/**
|
|
310
|
+
* Triggers to notify the resize of the maps when the window is resized.
|
|
311
|
+
*
|
|
312
|
+
* @event resize
|
|
313
|
+
*/
|
|
314
|
+
resize: EmitType<IResizeEventArgs>;
|
|
315
|
+
/**
|
|
316
|
+
* Triggers before the maps tooltip gets rendered.
|
|
317
|
+
*
|
|
318
|
+
* @event tooltipRender
|
|
319
|
+
*/
|
|
320
|
+
tooltipRender: EmitType<ITooltipRenderEventArgs>;
|
|
321
|
+
/**
|
|
322
|
+
* Triggers before the legend gets rendered.
|
|
323
|
+
*
|
|
324
|
+
* @event legendRendering
|
|
325
|
+
* @deprecated
|
|
326
|
+
*/
|
|
327
|
+
legendRendering: EmitType<ILegendRenderingEventArgs>;
|
|
328
|
+
/**
|
|
329
|
+
* Triggers after the maps tooltip gets rendered.
|
|
330
|
+
*
|
|
331
|
+
* @deprecated
|
|
332
|
+
* @event tooltipRenderComplete
|
|
333
|
+
*/
|
|
334
|
+
tooltipRenderComplete: EmitType<ITooltipRenderCompleteEventArgs>;
|
|
335
|
+
/**
|
|
336
|
+
* Triggers when a shape is selected in the maps.
|
|
337
|
+
*
|
|
338
|
+
* @event shapeSelected
|
|
339
|
+
*/
|
|
340
|
+
shapeSelected: EmitType<IShapeSelectedEventArgs>;
|
|
341
|
+
/**
|
|
342
|
+
* Triggers before the shape, bubble or marker gets selected.
|
|
343
|
+
*
|
|
344
|
+
* @event itemSelection
|
|
345
|
+
*/
|
|
346
|
+
itemSelection: EmitType<ISelectionEventArgs>;
|
|
347
|
+
/**
|
|
348
|
+
* Trigger before the shape, bubble or marker gets highlighted.
|
|
349
|
+
*
|
|
350
|
+
* @event itemHighlight
|
|
351
|
+
*/
|
|
352
|
+
itemHighlight: EmitType<ISelectionEventArgs>;
|
|
353
|
+
/**
|
|
354
|
+
* Triggers before the shape gets highlighted.
|
|
355
|
+
*
|
|
356
|
+
* @event shapeHighlight
|
|
357
|
+
*/
|
|
358
|
+
shapeHighlight: EmitType<IShapeSelectedEventArgs>;
|
|
359
|
+
/**
|
|
360
|
+
* Triggers before the maps layer gets rendered.
|
|
361
|
+
*
|
|
362
|
+
* @event layerRendering
|
|
363
|
+
*/
|
|
364
|
+
layerRendering: EmitType<ILayerRenderingEventArgs>;
|
|
365
|
+
/**
|
|
366
|
+
* Triggers before the maps shape gets rendered.
|
|
367
|
+
*
|
|
368
|
+
* @event shapeRendering
|
|
369
|
+
*/
|
|
370
|
+
shapeRendering: EmitType<IShapeRenderingEventArgs>;
|
|
371
|
+
/**
|
|
372
|
+
* Triggers before the maps marker gets rendered.
|
|
373
|
+
*
|
|
374
|
+
* @event markerRendering
|
|
375
|
+
*/
|
|
376
|
+
markerRendering: EmitType<IMarkerRenderingEventArgs>;
|
|
377
|
+
/**
|
|
378
|
+
* Triggers before the maps marker cluster gets rendered.
|
|
379
|
+
*
|
|
380
|
+
* @event markerClusterRendering
|
|
381
|
+
*/
|
|
382
|
+
markerClusterRendering: EmitType<IMarkerClusterRenderingEventArgs>;
|
|
383
|
+
/**
|
|
384
|
+
* Triggers when clicking on a marker element.
|
|
385
|
+
*
|
|
386
|
+
* @event markerClick
|
|
387
|
+
*/
|
|
388
|
+
markerClick: EmitType<IMarkerClickEventArgs>;
|
|
389
|
+
/**
|
|
390
|
+
* When the marker begins to drag on the map, this event is triggered.
|
|
391
|
+
*
|
|
392
|
+
* @event markerDragStart
|
|
393
|
+
*/
|
|
394
|
+
markerDragStart: EmitType<IMarkerDragEventArgs>;
|
|
395
|
+
/**
|
|
396
|
+
* When the marker has stopped dragging on the map, this event is triggered.
|
|
397
|
+
*
|
|
398
|
+
* @event markerDragEnd
|
|
399
|
+
*/
|
|
400
|
+
markerDragEnd: EmitType<IMarkerDragEventArgs>;
|
|
401
|
+
/**
|
|
402
|
+
* Triggers when clicking the marker cluster in maps.
|
|
403
|
+
*
|
|
404
|
+
* @event markerClusterClick
|
|
405
|
+
*/
|
|
406
|
+
markerClusterClick: EmitType<IMarkerClusterClickEventArgs>;
|
|
407
|
+
/**
|
|
408
|
+
* Triggers when moving the mouse over the marker cluster element in maps.
|
|
409
|
+
*
|
|
410
|
+
* @event markerClusterMouseMove
|
|
411
|
+
*/
|
|
412
|
+
markerClusterMouseMove: EmitType<IMarkerClusterMoveEventArgs>;
|
|
413
|
+
/**
|
|
414
|
+
* Triggers when moving the mouse over the marker element in maps.
|
|
415
|
+
*
|
|
416
|
+
* @event markerMouseMove
|
|
417
|
+
*/
|
|
418
|
+
markerMouseMove: EmitType<IMarkerMoveEventArgs>;
|
|
419
|
+
/**
|
|
420
|
+
* This event is triggered when the mouse pointer moves over the map.
|
|
421
|
+
*
|
|
422
|
+
* @event mouseMove
|
|
423
|
+
*/
|
|
424
|
+
mouseMove: EmitType<IMouseMoveEventArgs>;
|
|
425
|
+
/**
|
|
426
|
+
* Triggers before the data-label gets rendered.
|
|
427
|
+
*
|
|
428
|
+
* @event dataLabelRendering
|
|
429
|
+
*/
|
|
430
|
+
dataLabelRendering: EmitType<ILabelRenderingEventArgs>;
|
|
431
|
+
/**
|
|
432
|
+
* Triggers before the bubble element gets rendered on the map.
|
|
433
|
+
*
|
|
434
|
+
* @event bubbleRendering
|
|
435
|
+
*/
|
|
436
|
+
bubbleRendering: EmitType<IBubbleRenderingEventArgs>;
|
|
437
|
+
/**
|
|
438
|
+
* Triggers when performing the click operation on the bubble element in maps.
|
|
439
|
+
*
|
|
440
|
+
* @event bubbleClick
|
|
441
|
+
*/
|
|
442
|
+
bubbleClick: EmitType<IBubbleClickEventArgs>;
|
|
443
|
+
/**
|
|
444
|
+
* Triggers when hovering the mouse on the bubble element in maps.
|
|
445
|
+
*
|
|
446
|
+
* @event bubbleMouseMove
|
|
447
|
+
*/
|
|
448
|
+
bubbleMouseMove: EmitType<IBubbleMoveEventArgs>;
|
|
449
|
+
/**
|
|
450
|
+
* Triggers after the animation is completed in the maps.
|
|
451
|
+
*
|
|
452
|
+
* @event animationComplete
|
|
453
|
+
*/
|
|
454
|
+
animationComplete: EmitType<IAnimationCompleteEventArgs>;
|
|
455
|
+
/**
|
|
456
|
+
* Triggers before rendering an annotation in the maps.
|
|
457
|
+
*
|
|
458
|
+
* @event annotationRendering
|
|
459
|
+
*/
|
|
460
|
+
annotationRendering: EmitType<IAnnotationRenderingEventArgs>;
|
|
461
|
+
/**
|
|
462
|
+
* Triggers before the zoom operations such as zoom in and zoom out in the maps.
|
|
463
|
+
*
|
|
464
|
+
* @event zoom
|
|
465
|
+
*/
|
|
466
|
+
zoom: EmitType<IMapZoomEventArgs>;
|
|
467
|
+
/**
|
|
468
|
+
* Triggers before performing the panning operation.
|
|
469
|
+
*
|
|
470
|
+
* @event pan
|
|
471
|
+
*/
|
|
472
|
+
pan: EmitType<IMapPanEventArgs>;
|
|
473
|
+
/**
|
|
474
|
+
* This event is triggered after performing the panning action.
|
|
475
|
+
*
|
|
476
|
+
* @event panComplete
|
|
477
|
+
*/
|
|
478
|
+
panComplete: EmitType<IMapPanEventArgs>;
|
|
479
|
+
/**
|
|
480
|
+
* This event is triggered after the zooming operation is completed.
|
|
481
|
+
*
|
|
482
|
+
* @event zoomComplete
|
|
483
|
+
*/
|
|
484
|
+
zoomComplete: EmitType<IMapPanEventArgs>;
|
|
485
|
+
/**
|
|
486
|
+
* Specifies the function to format the text contents in the maps.
|
|
487
|
+
*
|
|
488
|
+
* @private
|
|
489
|
+
*/
|
|
490
|
+
formatFunction: any;
|
|
491
|
+
/**
|
|
492
|
+
* Specifies the svg renderer object.
|
|
493
|
+
*
|
|
494
|
+
* @private
|
|
495
|
+
*/
|
|
496
|
+
renderer: SvgRenderer;
|
|
497
|
+
/**
|
|
498
|
+
* Specifies the svg element's object of maps.
|
|
499
|
+
*
|
|
500
|
+
* @private
|
|
501
|
+
*/
|
|
502
|
+
svgObject: Element;
|
|
503
|
+
/** @public */
|
|
504
|
+
mapScaleValue: number;
|
|
505
|
+
/**
|
|
506
|
+
* Specifies the available height and width of maps.
|
|
507
|
+
*
|
|
508
|
+
* @private
|
|
509
|
+
*/
|
|
510
|
+
availableSize: Size;
|
|
511
|
+
/**
|
|
512
|
+
* whether it is layer add or not.
|
|
513
|
+
*
|
|
514
|
+
* @private
|
|
515
|
+
*/
|
|
516
|
+
isAddLayer: boolean;
|
|
517
|
+
/**
|
|
518
|
+
* Specifies the localization object.
|
|
519
|
+
*
|
|
520
|
+
* @private
|
|
521
|
+
*/
|
|
522
|
+
localeObject: L10n;
|
|
523
|
+
/**
|
|
524
|
+
* Specifies the default values of localization values.
|
|
525
|
+
*/
|
|
526
|
+
private defaultLocalConstants;
|
|
527
|
+
/**
|
|
528
|
+
* Internal use of internationalization instance.
|
|
529
|
+
*
|
|
530
|
+
* @private
|
|
531
|
+
*/
|
|
532
|
+
intl: Internationalization;
|
|
533
|
+
/**
|
|
534
|
+
* Check layer whether is geometry or tile.
|
|
535
|
+
*
|
|
536
|
+
* @private
|
|
537
|
+
*/
|
|
538
|
+
isTileMap: boolean;
|
|
539
|
+
/**
|
|
540
|
+
* Resize the map
|
|
541
|
+
*/
|
|
542
|
+
private resizeTo;
|
|
543
|
+
/**
|
|
544
|
+
* Resize the map
|
|
545
|
+
*
|
|
546
|
+
* @private
|
|
547
|
+
*/
|
|
548
|
+
isResize: boolean;
|
|
549
|
+
/**
|
|
550
|
+
* @private
|
|
551
|
+
*/
|
|
552
|
+
mapAreaRect: Rect;
|
|
553
|
+
/**
|
|
554
|
+
* @private
|
|
555
|
+
*/
|
|
556
|
+
layersCollection: LayerSettings[];
|
|
557
|
+
/**
|
|
558
|
+
* @private
|
|
559
|
+
*/
|
|
560
|
+
isExportInitialTileMap: boolean;
|
|
561
|
+
/**
|
|
562
|
+
* @private
|
|
563
|
+
* @hidden
|
|
564
|
+
*/
|
|
565
|
+
mapLayerPanel: LayerPanel;
|
|
566
|
+
/**
|
|
567
|
+
* @private
|
|
568
|
+
* @hidden
|
|
569
|
+
*/
|
|
570
|
+
/**
|
|
571
|
+
* @private
|
|
572
|
+
*/
|
|
573
|
+
themeStyle: IThemeStyle;
|
|
574
|
+
/**
|
|
575
|
+
* @private
|
|
576
|
+
*/
|
|
577
|
+
isReset: boolean;
|
|
578
|
+
/**
|
|
579
|
+
* @private
|
|
580
|
+
*/
|
|
581
|
+
totalRect: Rect;
|
|
582
|
+
/**
|
|
583
|
+
*
|
|
584
|
+
* Specifies whether the shape is selected in the maps or not.
|
|
585
|
+
*
|
|
586
|
+
* @returns {boolean} - Returns a boolean value to specify whether the shape is selected in the maps or not.
|
|
587
|
+
*/
|
|
588
|
+
readonly isShapeSelected: boolean;
|
|
589
|
+
dataLabel: DataLabel;
|
|
590
|
+
/** @private */
|
|
591
|
+
isTouch: boolean;
|
|
592
|
+
/** @private */
|
|
593
|
+
baseSize: Size;
|
|
594
|
+
/** @private */
|
|
595
|
+
scale: number;
|
|
596
|
+
/** @private */
|
|
597
|
+
baseScale: number;
|
|
598
|
+
/** @private */
|
|
599
|
+
mapSelect: boolean;
|
|
600
|
+
/** @private */
|
|
601
|
+
baseMapBounds: GeoLocation;
|
|
602
|
+
/** @private */
|
|
603
|
+
baseMapRectBounds: any;
|
|
604
|
+
private resizeEvent;
|
|
605
|
+
/** @public */
|
|
606
|
+
translatePoint: Point;
|
|
607
|
+
/** @private */
|
|
608
|
+
baseTranslatePoint: Point;
|
|
609
|
+
/** @public */
|
|
610
|
+
zoomTranslatePoint: Point;
|
|
611
|
+
/** @private */
|
|
612
|
+
markerZoomFactor: number;
|
|
613
|
+
/** @private */
|
|
614
|
+
markerZoomCenterPoint: CenterPositionModel;
|
|
615
|
+
/** @private */
|
|
616
|
+
markerZoomedState: boolean;
|
|
617
|
+
/** @private */
|
|
618
|
+
zoomPersistence: boolean;
|
|
619
|
+
/** @private */
|
|
620
|
+
defaultState: boolean;
|
|
621
|
+
/** @private */
|
|
622
|
+
currentTiles: HTMLElement;
|
|
623
|
+
/** @private */
|
|
624
|
+
markerCenterLatitude: number;
|
|
625
|
+
/** @private */
|
|
626
|
+
markerCenterLongitude: number;
|
|
627
|
+
/** @private */
|
|
628
|
+
previousCenterLatitude: number;
|
|
629
|
+
/** @private */
|
|
630
|
+
previousCenterLongitude: number;
|
|
631
|
+
/** @private */
|
|
632
|
+
centerPositionChanged: boolean;
|
|
633
|
+
/** @private */
|
|
634
|
+
previousZoomFactor: number;
|
|
635
|
+
/** @private */
|
|
636
|
+
shouldZoomCurrentFactor: number;
|
|
637
|
+
/** @private */
|
|
638
|
+
shouldZoomPreviousFactor: number;
|
|
639
|
+
/** @private */
|
|
640
|
+
markerNullCount: number;
|
|
641
|
+
/** @private */
|
|
642
|
+
translateType: string;
|
|
643
|
+
/** @public */
|
|
644
|
+
previousProjection: String;
|
|
645
|
+
/** @private */
|
|
646
|
+
currentShapeDataLength: number;
|
|
647
|
+
/** @private */
|
|
648
|
+
tileTranslatePoint: Point;
|
|
649
|
+
/** @private */
|
|
650
|
+
baseTileTranslatePoint: Point;
|
|
651
|
+
/** @private */
|
|
652
|
+
isDevice: Boolean;
|
|
653
|
+
/** @private */
|
|
654
|
+
tileZoomLevel: number;
|
|
655
|
+
/** @private */
|
|
656
|
+
isZoomByPosition: boolean;
|
|
657
|
+
/** @private */
|
|
658
|
+
tileZoomScale: number;
|
|
659
|
+
/** @private */
|
|
660
|
+
staticMapZoom: number;
|
|
661
|
+
/** @private */
|
|
662
|
+
serverProcess: any;
|
|
663
|
+
/** @private */
|
|
664
|
+
toolbarProperties: any;
|
|
665
|
+
/** @private */
|
|
666
|
+
previousScale: number;
|
|
667
|
+
/** @private */
|
|
668
|
+
previousPoint: Point;
|
|
669
|
+
/** @private */
|
|
670
|
+
centerLatOfGivenLocation: number;
|
|
671
|
+
/** @private */
|
|
672
|
+
centerLongOfGivenLocation: number;
|
|
673
|
+
/** @private */
|
|
674
|
+
minLatOfGivenLocation: number;
|
|
675
|
+
/** @private */
|
|
676
|
+
minLongOfGivenLocation: number;
|
|
677
|
+
/** @private */
|
|
678
|
+
maxLatOfGivenLocation: number;
|
|
679
|
+
/** @private */
|
|
680
|
+
maxLongOfGivenLocation: number;
|
|
681
|
+
/** @private */
|
|
682
|
+
scaleOfGivenLocation: number;
|
|
683
|
+
/** @private */
|
|
684
|
+
zoomNotApplied: boolean;
|
|
685
|
+
/** @public */
|
|
686
|
+
dataLabelShape: number[];
|
|
687
|
+
zoomShapeCollection: string[];
|
|
688
|
+
zoomLabelPositions: object[];
|
|
689
|
+
mouseDownEvent: Object;
|
|
690
|
+
mouseClickEvent: Object;
|
|
691
|
+
/** @private */
|
|
692
|
+
shapeSelectionClass: Element;
|
|
693
|
+
/** @private */
|
|
694
|
+
selectedElementId: string[];
|
|
695
|
+
/** @private */
|
|
696
|
+
markerSelectionClass: Element;
|
|
697
|
+
/** @private */
|
|
698
|
+
selectedMarkerElementId: string[];
|
|
699
|
+
/** @private */
|
|
700
|
+
bubbleSelectionClass: Element;
|
|
701
|
+
/** @private */
|
|
702
|
+
selectedBubbleElementId: string[];
|
|
703
|
+
/** @private */
|
|
704
|
+
navigationSelectionClass: Element;
|
|
705
|
+
/** @private */
|
|
706
|
+
selectedNavigationElementId: string[];
|
|
707
|
+
/** @private */
|
|
708
|
+
polygonSelectionClass: Element;
|
|
709
|
+
/** @private */
|
|
710
|
+
selectedPolygonElementId: string[];
|
|
711
|
+
/** @private */
|
|
712
|
+
legendSelectionClass: SelectionSettingsModel;
|
|
713
|
+
/** @private */
|
|
714
|
+
selectedLegendElementId: number[];
|
|
715
|
+
/** @private */
|
|
716
|
+
legendSelectionCollection: any[];
|
|
717
|
+
/** @private */
|
|
718
|
+
shapeSelections: boolean;
|
|
719
|
+
/** @private */
|
|
720
|
+
legendSelection: boolean;
|
|
721
|
+
/** @private */
|
|
722
|
+
toggledLegendId: number[];
|
|
723
|
+
/** @private */
|
|
724
|
+
toggledElementId: string[];
|
|
725
|
+
/** @private */
|
|
726
|
+
checkInitialRender: boolean;
|
|
727
|
+
/** @private */
|
|
728
|
+
widthBeforeRefresh: number;
|
|
729
|
+
/** @private */
|
|
730
|
+
heightBeforeRefresh: number;
|
|
731
|
+
/** @private */
|
|
732
|
+
previousTranslate: Point;
|
|
733
|
+
/** @private */
|
|
734
|
+
initialTileTranslate: Point;
|
|
735
|
+
/** @private */
|
|
736
|
+
previousTileWidth: number;
|
|
737
|
+
/** @private */
|
|
738
|
+
isMarkerZoomCompleted: boolean;
|
|
739
|
+
/** @private */
|
|
740
|
+
markerDragId: string;
|
|
741
|
+
/** @private */
|
|
742
|
+
previousTileHeight: number;
|
|
743
|
+
/** @private */
|
|
744
|
+
initialZoomLevel: number;
|
|
745
|
+
/** @private */
|
|
746
|
+
initialCheck: boolean;
|
|
747
|
+
/** @private */
|
|
748
|
+
applyZoomReset: boolean;
|
|
749
|
+
/** @private */
|
|
750
|
+
markerClusterExpandCheck: boolean;
|
|
751
|
+
/** @private */
|
|
752
|
+
markerClusterExpand: boolean;
|
|
753
|
+
/** @private */
|
|
754
|
+
mouseMoveId: string;
|
|
755
|
+
/** @private */
|
|
756
|
+
shapeSelectionItem: any[];
|
|
757
|
+
/** @private */
|
|
758
|
+
markerDragArgument: any;
|
|
759
|
+
/**
|
|
760
|
+
* Constructor for creating the widget.
|
|
761
|
+
*
|
|
762
|
+
* @param {MapsModel} options Specifies the options
|
|
763
|
+
* @param {string | HTMLElement} element Specifies the element
|
|
764
|
+
*/
|
|
765
|
+
constructor(options?: MapsModel, element?: string | HTMLElement);
|
|
766
|
+
/**
|
|
767
|
+
* To manage persist maps data.
|
|
768
|
+
*
|
|
769
|
+
* @returns {void}
|
|
770
|
+
*/
|
|
771
|
+
private mergePersistMapsData;
|
|
772
|
+
/**
|
|
773
|
+
* Gets the localized label by locale keyword.
|
|
774
|
+
*
|
|
775
|
+
* @param {string} key - Specifies the key
|
|
776
|
+
* @returns {string} - Returns the string value
|
|
777
|
+
* @private
|
|
778
|
+
*/
|
|
779
|
+
getLocalizedLabel(key: string): string;
|
|
780
|
+
/**
|
|
781
|
+
* Initializing pre-required values.
|
|
782
|
+
*
|
|
783
|
+
* @returns {void}
|
|
784
|
+
*/
|
|
785
|
+
protected preRender(): void;
|
|
786
|
+
private renderElements;
|
|
787
|
+
/**
|
|
788
|
+
* To Initialize the control rendering.
|
|
789
|
+
*
|
|
790
|
+
* @returns {void}
|
|
791
|
+
*/
|
|
792
|
+
protected render(): void;
|
|
793
|
+
protected processRequestJsonData(): void;
|
|
794
|
+
private processAjaxRequest;
|
|
795
|
+
/**
|
|
796
|
+
* This method is used to process the JSON data to render the maps.
|
|
797
|
+
*
|
|
798
|
+
* @param {string} processType - Specifies the process type in maps.
|
|
799
|
+
* @param {any | string} data - Specifies the data for maps.
|
|
800
|
+
* @param {LayerSettings} layer - Specifies the layer for the maps.
|
|
801
|
+
* @param {string} dataType - Specifies the data type for maps.
|
|
802
|
+
* @returns {void}
|
|
803
|
+
* @private
|
|
804
|
+
*/
|
|
805
|
+
processResponseJsonData(processType: string, data?: any | string, layer?: LayerSettings, dataType?: string): void;
|
|
806
|
+
private renderMap;
|
|
807
|
+
private triggerZoomEvent;
|
|
808
|
+
/**
|
|
809
|
+
* To apply color to the initial selected marker.
|
|
810
|
+
*
|
|
811
|
+
* @param {SelectionSettingsModel} selectionSettings - Specifies the selection settings
|
|
812
|
+
* @param {Maps} map - Specifies the instance of the maps
|
|
813
|
+
* @param {Element} targetElement - Specifies the target element
|
|
814
|
+
* @param {object} data - Specifies the data
|
|
815
|
+
* @returns {void}
|
|
816
|
+
* @private
|
|
817
|
+
*/
|
|
818
|
+
markerSelection(selectionSettings: SelectionSettingsModel, map: Maps, targetElement: Element, data: object): void;
|
|
819
|
+
/**
|
|
820
|
+
* initial selection of marker.
|
|
821
|
+
*
|
|
822
|
+
* @param {number} layerIndex - Specifies the layer index
|
|
823
|
+
* @param {number} markerIndex - Specifies the marker index
|
|
824
|
+
* @param {MarkerSettingsModel} markerSettings - Specifies the marker settings
|
|
825
|
+
* @param {number} latitude - Specifies hte latitude
|
|
826
|
+
* @param {number} longitude - Specifies the longitude
|
|
827
|
+
* @returns {void}
|
|
828
|
+
* @private
|
|
829
|
+
*/
|
|
830
|
+
markerInitialSelection(layerIndex: number, markerIndex: number, markerSettings: MarkerSettingsModel, latitude: number, longitude: number): void;
|
|
831
|
+
/**
|
|
832
|
+
* Render the map area border.
|
|
833
|
+
*
|
|
834
|
+
* @returns {void}
|
|
835
|
+
*/
|
|
836
|
+
private renderArea;
|
|
837
|
+
/**
|
|
838
|
+
* To add tab index for map element.
|
|
839
|
+
*
|
|
840
|
+
* @returns {void}
|
|
841
|
+
*/
|
|
842
|
+
private addTabIndex;
|
|
843
|
+
private setSecondaryElementPosition;
|
|
844
|
+
private zoomingChange;
|
|
845
|
+
private createSecondaryElement;
|
|
846
|
+
/**
|
|
847
|
+
* @returns {void}
|
|
848
|
+
*/
|
|
849
|
+
getMinMaxLatitudeLongitude(): IMinMaxLatitudeLongitude;
|
|
850
|
+
/**
|
|
851
|
+
* @returns {void}
|
|
852
|
+
* @private
|
|
853
|
+
*/
|
|
854
|
+
arrangeTemplate(): void;
|
|
855
|
+
private createTile;
|
|
856
|
+
/**
|
|
857
|
+
* To initilize the private varibales of maps.
|
|
858
|
+
*
|
|
859
|
+
* @returns {void}
|
|
860
|
+
*/
|
|
861
|
+
private initPrivateVariable;
|
|
862
|
+
private findBaseAndSubLayers;
|
|
863
|
+
/**
|
|
864
|
+
* Render the map border.
|
|
865
|
+
*
|
|
866
|
+
* @private
|
|
867
|
+
* @returns {void}
|
|
868
|
+
*/
|
|
869
|
+
private renderBorder;
|
|
870
|
+
/**
|
|
871
|
+
* Render the title and subtitle.
|
|
872
|
+
*
|
|
873
|
+
* @param {TitleSettingsModel} title - Specifies the title
|
|
874
|
+
* @param {string} type - Specifies the type
|
|
875
|
+
* @param {Rect} bounds - Specifies the bounds
|
|
876
|
+
* @param {Element} groupEle - Specifies the group element
|
|
877
|
+
* @returns {void}
|
|
878
|
+
* @private
|
|
879
|
+
*/
|
|
880
|
+
private renderTitle;
|
|
881
|
+
/**
|
|
882
|
+
* To create svg element for maps.
|
|
883
|
+
*
|
|
884
|
+
* @returns {void}
|
|
885
|
+
*/
|
|
886
|
+
private createSVG;
|
|
887
|
+
/**
|
|
888
|
+
* To Remove the SVG.
|
|
889
|
+
*
|
|
890
|
+
* @returns {void}
|
|
891
|
+
*/
|
|
892
|
+
private removeSvg;
|
|
893
|
+
/**
|
|
894
|
+
* To bind event handlers for maps.
|
|
895
|
+
*
|
|
896
|
+
* @returns {void}
|
|
897
|
+
*/
|
|
898
|
+
private wireEVents;
|
|
899
|
+
/**
|
|
900
|
+
* To unbind event handlers from maps.
|
|
901
|
+
*
|
|
902
|
+
* @returns {void}
|
|
903
|
+
*/
|
|
904
|
+
private unWireEVents;
|
|
905
|
+
/**
|
|
906
|
+
* This method is used to perform operations when mouse pointer leave from maps.
|
|
907
|
+
*
|
|
908
|
+
* @param {PointerEvent} e - Specifies the pointer event on maps.
|
|
909
|
+
* @returns {void}
|
|
910
|
+
* @private
|
|
911
|
+
*/
|
|
912
|
+
mouseLeaveOnMap(e: PointerEvent): void;
|
|
913
|
+
/**
|
|
914
|
+
* This method is used to perform operations when keyboard key from maps.
|
|
915
|
+
*
|
|
916
|
+
* @param {KeyboardEvent} event - Specifies the keyboard event on maps.
|
|
917
|
+
* @returns {void}
|
|
918
|
+
* @private
|
|
919
|
+
*/
|
|
920
|
+
keyUpHandler(event: KeyboardEvent): void;
|
|
921
|
+
private keyboardHighlightSelection;
|
|
922
|
+
/**
|
|
923
|
+
* This method is used to perform operations when keyboard down from maps.
|
|
924
|
+
*
|
|
925
|
+
* @param {KeyboardEvent} event - Specifies the keyboard event on maps.
|
|
926
|
+
* @returns {void}
|
|
927
|
+
* @private
|
|
928
|
+
*/
|
|
929
|
+
keyDownHandler(event: KeyboardEvent): void;
|
|
930
|
+
/**
|
|
931
|
+
* Gets the selected element to be maintained or not.
|
|
932
|
+
*
|
|
933
|
+
* @param {Element} targetEle - Specifies the target element
|
|
934
|
+
* @returns {boolean} - Returns the boolean value
|
|
935
|
+
* @private
|
|
936
|
+
*/
|
|
937
|
+
SelectedElement(targetEle: Element): boolean;
|
|
938
|
+
/**
|
|
939
|
+
* This method is used to perform the operations when a click operation is performed on maps.
|
|
940
|
+
*
|
|
941
|
+
* @param {PointerEvent} e - Specifies the pointer event on maps.
|
|
942
|
+
* @returns {void}
|
|
943
|
+
* @private
|
|
944
|
+
*/
|
|
945
|
+
mapsOnClick(e: PointerEvent): void;
|
|
946
|
+
private clickHandler;
|
|
947
|
+
private triggerShapeSelection;
|
|
948
|
+
private getMarkerClickLocation;
|
|
949
|
+
/**
|
|
950
|
+
* Gets the location of the mouse click.
|
|
951
|
+
*
|
|
952
|
+
* @param {string} targetId - Specifies the ID for the target.
|
|
953
|
+
* @param {number} pageX - Defines the page X position.
|
|
954
|
+
* @param {number} pageY - Defines the page Y position.
|
|
955
|
+
* @param {HTMLElement} targetElement - Specifies the target element on the event.
|
|
956
|
+
* @param {number} x - Defines the x position in pixel.
|
|
957
|
+
* @param {number} y - Defines the y position in pixel.
|
|
958
|
+
* @param {string} type - Specifies the type.
|
|
959
|
+
* @returns {GeoPosition} - Returns the position of the event.
|
|
960
|
+
* @private
|
|
961
|
+
*/
|
|
962
|
+
getClickLocation(targetId: string, pageX: number, pageY: number, targetElement: HTMLElement, x: number, y: number, type?: string): GeoPosition;
|
|
963
|
+
private removeTileMap;
|
|
964
|
+
/**
|
|
965
|
+
* This method is used to perform operations when mouse click on maps.
|
|
966
|
+
*
|
|
967
|
+
* @param {PointerEvent} e - Specifies the pointer event on maps.
|
|
968
|
+
* @returns {boolean} - Returns the boolean value
|
|
969
|
+
* @private
|
|
970
|
+
*/
|
|
971
|
+
mouseEndOnMap(e: PointerEvent): boolean;
|
|
972
|
+
/**
|
|
973
|
+
* This method is used to perform operations when mouse is clicked down on maps.
|
|
974
|
+
*
|
|
975
|
+
* @param {PointerEvent} e - Specifies the pointer event on maps
|
|
976
|
+
* @returns {void}
|
|
977
|
+
* @private
|
|
978
|
+
*/
|
|
979
|
+
mouseDownOnMap(e: PointerEvent): void;
|
|
980
|
+
/**
|
|
981
|
+
* Merges the marker clusters.
|
|
982
|
+
*
|
|
983
|
+
* @returns {void}
|
|
984
|
+
* @private
|
|
985
|
+
*/
|
|
986
|
+
mergeCluster(): void;
|
|
987
|
+
/**
|
|
988
|
+
* @param {PointerEvent} e - Specifies the pointer event.
|
|
989
|
+
* @returns {void}
|
|
990
|
+
* @private
|
|
991
|
+
*/
|
|
992
|
+
mapsOnRightClick(e: PointerEvent): void;
|
|
993
|
+
/**
|
|
994
|
+
* This method is used to perform operations when performing the double click operation on maps.
|
|
995
|
+
*
|
|
996
|
+
* @param {PointerEvent} e - Specifies the pointer event.
|
|
997
|
+
* @returns {void}
|
|
998
|
+
* @private
|
|
999
|
+
*/
|
|
1000
|
+
mapsOnDoubleClick(e: PointerEvent): void;
|
|
1001
|
+
/**
|
|
1002
|
+
* This method is used to perform operations while performing mouse over on maps.
|
|
1003
|
+
*
|
|
1004
|
+
* @param {PointerEvent} e - Specifies the pointer event on maps.
|
|
1005
|
+
* @returns {void}
|
|
1006
|
+
* @private
|
|
1007
|
+
*/
|
|
1008
|
+
mouseMoveOnMap(e: PointerEvent): void;
|
|
1009
|
+
/**
|
|
1010
|
+
* To check and trigger mouse move event on maps.
|
|
1011
|
+
*
|
|
1012
|
+
* @param {PointerEvent} e - Specifies the pointer event on maps.
|
|
1013
|
+
* @returns {void}
|
|
1014
|
+
* @private
|
|
1015
|
+
*/
|
|
1016
|
+
private mouseMoveEvent;
|
|
1017
|
+
/**
|
|
1018
|
+
* This method is used to perform operations when mouse move event is performed on maps.
|
|
1019
|
+
*
|
|
1020
|
+
* @param {PointerEvent} e - Specifies the pointer event on maps.
|
|
1021
|
+
* @returns {void}
|
|
1022
|
+
* @private
|
|
1023
|
+
*/
|
|
1024
|
+
onMouseMove(e: PointerEvent): boolean;
|
|
1025
|
+
private legendTooltip;
|
|
1026
|
+
private titleTooltip;
|
|
1027
|
+
mapsOnResize(e: Event): boolean;
|
|
1028
|
+
/**
|
|
1029
|
+
* This method is used to zoom the map by specifying the center position.
|
|
1030
|
+
*
|
|
1031
|
+
* @param {number} centerPosition - Specifies the location of the maps to be zoomed as geographical coordinates.
|
|
1032
|
+
* @param {number} centerPosition.longitude - Specifies the longitude of the location to be zoomed.
|
|
1033
|
+
* @param {number} centerPosition.latitude - Specifies the latitude of the location to be zoomed.
|
|
1034
|
+
* @param {number} zoomFactor - Specifies the zoom factor for the maps.
|
|
1035
|
+
* @returns {void}
|
|
1036
|
+
*/
|
|
1037
|
+
zoomByPosition(centerPosition: {
|
|
1038
|
+
latitude: number;
|
|
1039
|
+
longitude: number;
|
|
1040
|
+
}, zoomFactor: number): void;
|
|
1041
|
+
/**
|
|
1042
|
+
* This method is used to perform panning by specifying the direction.
|
|
1043
|
+
*
|
|
1044
|
+
* @param {PanDirection} direction - Specifies the direction in which the panning must be performed.
|
|
1045
|
+
* @param {PointerEvent | TouchEvent} mouseLocation - Specifies the location of the mouse pointer in maps in pixels.
|
|
1046
|
+
* @returns {void}
|
|
1047
|
+
*/
|
|
1048
|
+
panByDirection(direction: PanDirection, mouseLocation?: PointerEvent | TouchEvent): void;
|
|
1049
|
+
/**
|
|
1050
|
+
* This method is used to add the layers dynamically to the maps.
|
|
1051
|
+
*
|
|
1052
|
+
* @param {object} layer - Specifies the layer to be added in the maps.
|
|
1053
|
+
* @returns {void}
|
|
1054
|
+
*/
|
|
1055
|
+
addLayer(layer: Object): void;
|
|
1056
|
+
/**
|
|
1057
|
+
* This method is used to remove a layer from the maps.
|
|
1058
|
+
*
|
|
1059
|
+
* @param {number} index - Specifies the index number of the layer to be removed.
|
|
1060
|
+
* @returns {void}
|
|
1061
|
+
*/
|
|
1062
|
+
removeLayer(index: number): void;
|
|
1063
|
+
/**
|
|
1064
|
+
* This method is used to add markers dynamically in the maps.
|
|
1065
|
+
* If we provide the index value of the layer in which the marker to be added and the settings
|
|
1066
|
+
* of the marker as parameters, the marker will be added in the location.
|
|
1067
|
+
*
|
|
1068
|
+
* @param {number} layerIndex - Specifies the index number of the layer.
|
|
1069
|
+
* @param {MarkerSettingsModel[]} markerCollection - Specifies the settings of the marker to be added.
|
|
1070
|
+
* @returns {void}
|
|
1071
|
+
*/
|
|
1072
|
+
addMarker(layerIndex?: number, markerCollection?: MarkerSettingsModel[]): void;
|
|
1073
|
+
/**
|
|
1074
|
+
* This method is used to select the geometric shape element in the maps.
|
|
1075
|
+
*
|
|
1076
|
+
* @param {number} layerIndex - Specifies the index of the layer in maps.
|
|
1077
|
+
* @param {string | string[]} propertyName - Specifies the property name from the data source.
|
|
1078
|
+
* @param {string} name - Specifies the name of the shape, which is mapped from the data source, that is selected.
|
|
1079
|
+
* @param {boolean} enable - Specifies whether the shape should be selected or the selection should be removed.
|
|
1080
|
+
* @returns {void}
|
|
1081
|
+
*/
|
|
1082
|
+
shapeSelection(layerIndex: number, propertyName: string | string[], name: string, enable?: boolean): void;
|
|
1083
|
+
/**
|
|
1084
|
+
* This method is used to zoom the maps based on the provided coordinates.
|
|
1085
|
+
*
|
|
1086
|
+
* @param {number} minLatitude - Specifies the minimum latitude of the location to be zoomed.
|
|
1087
|
+
* @param {number} minLongitude - Specifies the minimum latitude of the location to be zoomed.
|
|
1088
|
+
* @param {number} maxLatitude - Specifies the maximum latitude of the location to be zoomed.
|
|
1089
|
+
* @param {number} maxLongitude - Specifies the maximum longitude of the location to be zoomed.
|
|
1090
|
+
* @returns {void}
|
|
1091
|
+
*/
|
|
1092
|
+
zoomToCoordinates(minLatitude: number, minLongitude: number, maxLatitude: number, maxLongitude: number): void;
|
|
1093
|
+
/**
|
|
1094
|
+
* This method is used to remove multiple selected shapes in the maps.
|
|
1095
|
+
*
|
|
1096
|
+
* @returns {void}
|
|
1097
|
+
*/
|
|
1098
|
+
private removeShapeSelection;
|
|
1099
|
+
/**
|
|
1100
|
+
* This method is used to set culture for maps.
|
|
1101
|
+
*
|
|
1102
|
+
* @returns {void}
|
|
1103
|
+
*/
|
|
1104
|
+
private setCulture;
|
|
1105
|
+
/**
|
|
1106
|
+
* This method to set locale constants to the maps.
|
|
1107
|
+
*
|
|
1108
|
+
* @returns {void}
|
|
1109
|
+
*/
|
|
1110
|
+
private setLocaleConstants;
|
|
1111
|
+
/**
|
|
1112
|
+
* This method destroys the maps. This method removes the events associated with the maps and disposes the objects created for rendering and updating the maps.
|
|
1113
|
+
*
|
|
1114
|
+
* @returns {void}
|
|
1115
|
+
*/
|
|
1116
|
+
destroy(): void;
|
|
1117
|
+
/**
|
|
1118
|
+
* Gets component name.
|
|
1119
|
+
*
|
|
1120
|
+
* @returns {string} - Returns the string value
|
|
1121
|
+
* @private
|
|
1122
|
+
*/
|
|
1123
|
+
getModuleName(): string;
|
|
1124
|
+
/**
|
|
1125
|
+
* Gets the properties to be maintained in the persisted state.
|
|
1126
|
+
*
|
|
1127
|
+
* @returns {string} - Returns the string value
|
|
1128
|
+
* @private
|
|
1129
|
+
*/
|
|
1130
|
+
getPersistData(): string;
|
|
1131
|
+
/**
|
|
1132
|
+
* Called internally if any of the property value changed.
|
|
1133
|
+
*
|
|
1134
|
+
* @param {MapsModel} newProp - Specifies the new property
|
|
1135
|
+
* @param {MapsModel} oldProp - Specifies the old property
|
|
1136
|
+
* @returns {void}
|
|
1137
|
+
* @private
|
|
1138
|
+
*/
|
|
1139
|
+
onPropertyChanged(newProp: MapsModel, oldProp: MapsModel): void;
|
|
1140
|
+
/**
|
|
1141
|
+
* To provide the array of modules needed for maps rendering.
|
|
1142
|
+
*
|
|
1143
|
+
* @returns {ModuleDeclaration[]} - Returns the modules
|
|
1144
|
+
* @private
|
|
1145
|
+
*/
|
|
1146
|
+
requiredModules(): ModuleDeclaration[];
|
|
1147
|
+
/**
|
|
1148
|
+
* To find marker visibility.
|
|
1149
|
+
*
|
|
1150
|
+
* @returns {boolean} - Returns whether the markers are visible or not.
|
|
1151
|
+
*/
|
|
1152
|
+
private isMarkersVisible;
|
|
1153
|
+
/**
|
|
1154
|
+
* To find DataLabel visibility.
|
|
1155
|
+
*
|
|
1156
|
+
* @returns {boolean} - Returns whether the data labels are visible or not.
|
|
1157
|
+
*/
|
|
1158
|
+
private isDataLabelVisible;
|
|
1159
|
+
/**
|
|
1160
|
+
* To find navigation line visibility.
|
|
1161
|
+
*
|
|
1162
|
+
* @returns {boolean} - Returns whether the navigation lines are visible or not.
|
|
1163
|
+
*/
|
|
1164
|
+
private isNavigationVisible;
|
|
1165
|
+
/**
|
|
1166
|
+
* To find navigation line visibility.
|
|
1167
|
+
*
|
|
1168
|
+
* @returns {boolean} - Returns whether the navigation lines are visible or not.
|
|
1169
|
+
*/
|
|
1170
|
+
private isPolygonVisible;
|
|
1171
|
+
/**
|
|
1172
|
+
* To find marker visibility.
|
|
1173
|
+
*
|
|
1174
|
+
* @returns {boolean} - Returns whether the bubble is visible or not.
|
|
1175
|
+
*/
|
|
1176
|
+
private isBubbleVisible;
|
|
1177
|
+
/**
|
|
1178
|
+
* To find the bubble visibility from layer.
|
|
1179
|
+
*
|
|
1180
|
+
* @param {LayerSettingsModel} layer - Spcifies the layer settings model
|
|
1181
|
+
* @returns {boolean} - Returns the boolean value
|
|
1182
|
+
* @private
|
|
1183
|
+
*/
|
|
1184
|
+
getBubbleVisible(layer: LayerSettingsModel): boolean;
|
|
1185
|
+
/**
|
|
1186
|
+
* This method handles the printing functionality for the maps.
|
|
1187
|
+
*
|
|
1188
|
+
* @param {string[] | string | Element} id - Specifies the element to be printed.
|
|
1189
|
+
* @returns {void}
|
|
1190
|
+
*/
|
|
1191
|
+
print(id?: string[] | string | Element): void;
|
|
1192
|
+
/**
|
|
1193
|
+
* This method handles the export functionality for the maps.
|
|
1194
|
+
*
|
|
1195
|
+
* @param {ExportType} type - Specifies the type of the exported file.
|
|
1196
|
+
* @param {string} fileName - Specifies the name of the file with which the rendered maps need to be exported.
|
|
1197
|
+
* @param {PdfPageOrientation} orientation - Specifies the orientation of the PDF document while exporting.
|
|
1198
|
+
* @param {boolean} allowDownload - Specifies whether to download as a file or get as base64 string for the file.
|
|
1199
|
+
* @returns {Promise<string>} - Specifies the base64 string of the exported image which is returned when the `allowDownload` is set to false.
|
|
1200
|
+
*/
|
|
1201
|
+
export(type: ExportType, fileName: string, orientation?: PdfPageOrientation, allowDownload?: boolean): Promise<string>;
|
|
1202
|
+
/**
|
|
1203
|
+
* This method is used to get the Bing maps URL.
|
|
1204
|
+
*
|
|
1205
|
+
* @param {string} url - Specifies the URL of the Bing maps along with the API key.
|
|
1206
|
+
* @returns {Promise<string>} - Returns the processed Bing URL as `Promise`.
|
|
1207
|
+
*/
|
|
1208
|
+
getBingUrlTemplate(url: string): Promise<string>;
|
|
1209
|
+
/**
|
|
1210
|
+
* To find visibility of layers and markers for required modules load.
|
|
1211
|
+
*
|
|
1212
|
+
* @param {LayerSettingsModel[]} layers - Specifies the layers.
|
|
1213
|
+
* @param {boolean} isLayerVisible - Specifies whether the layer is visible or not.
|
|
1214
|
+
* @param {boolean} isBubblevisible - Specifies whether the bubble is visible or not.
|
|
1215
|
+
* @param {boolean} istooltipVisible - Specifies whether the tooltip is visible or not.
|
|
1216
|
+
* @param {boolean} isSelection - Specifies whether the shape is selectd or not.
|
|
1217
|
+
* @param {boolean} isHighlight - Specfies whether the shape is highlighted or not.
|
|
1218
|
+
* @returns {object} - Returns the boolean values in object.
|
|
1219
|
+
*/
|
|
1220
|
+
private findVisibleLayers;
|
|
1221
|
+
/**
|
|
1222
|
+
* This method is used to get the geographical coordinates for location points in pixels when shape maps are rendered in the maps.
|
|
1223
|
+
*
|
|
1224
|
+
* @param {number} layerIndex - Specifies the index number of the layer of the maps.
|
|
1225
|
+
* @param {number} x - Specifies the x value in pixel.
|
|
1226
|
+
* @param {number} y - Specifies the y value in pixel.
|
|
1227
|
+
* @returns {GeoPosition}- Returns the geographical coordinates.
|
|
1228
|
+
*/
|
|
1229
|
+
getGeoLocation(layerIndex: number, x: number, y: number): GeoPosition;
|
|
1230
|
+
private clip;
|
|
1231
|
+
/**
|
|
1232
|
+
* This method is used to get the geographical coordinates for location points in pixels when an online map provider is rendered in the maps.
|
|
1233
|
+
*
|
|
1234
|
+
* @param {number} x - Specifies the x value in pixel.
|
|
1235
|
+
* @param {number} y - Specifies the y value in pixel.
|
|
1236
|
+
* @returns {GeoPosition} - Returns the geographical coordinates.
|
|
1237
|
+
*/
|
|
1238
|
+
getTileGeoLocation(x: number, y: number): GeoPosition;
|
|
1239
|
+
/**
|
|
1240
|
+
* This method is used to convert the point in pixels to latitude and longitude in maps.
|
|
1241
|
+
*
|
|
1242
|
+
* @param {number} pageX - Specifies the x position value in pixels.
|
|
1243
|
+
* @param {number} pageY - Specifies the y position value in pixels.
|
|
1244
|
+
* @returns {object} - Returns the latitude and longitude values.
|
|
1245
|
+
*/
|
|
1246
|
+
pointToLatLong(pageX: number, pageY: number): Object;
|
|
1247
|
+
}
|