@syncfusion/ej2-maps 20.4.49 → 21.1.35

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 (55) hide show
  1. package/CHANGELOG.md +4 -20
  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 +993 -236
  6. package/dist/es6/ej2-maps.es2015.js.map +1 -1
  7. package/dist/es6/ej2-maps.es5.js +1008 -236
  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 +13 -13
  13. package/src/maps/layers/bubble.d.ts +2 -0
  14. package/src/maps/layers/bubble.js +2 -1
  15. package/src/maps/layers/color-mapping.d.ts +1 -0
  16. package/src/maps/layers/color-mapping.js +1 -0
  17. package/src/maps/layers/data-label.d.ts +1 -0
  18. package/src/maps/layers/data-label.js +9 -4
  19. package/src/maps/layers/layer-panel.js +1 -0
  20. package/src/maps/layers/legend.d.ts +2 -0
  21. package/src/maps/layers/legend.js +2 -0
  22. package/src/maps/layers/marker.d.ts +5 -0
  23. package/src/maps/layers/marker.js +42 -3
  24. package/src/maps/layers/navigation-selected-line.d.ts +1 -0
  25. package/src/maps/layers/navigation-selected-line.js +1 -0
  26. package/src/maps/maps-model.d.ts +47 -33
  27. package/src/maps/maps.d.ts +144 -88
  28. package/src/maps/maps.js +217 -61
  29. package/src/maps/model/base-model.d.ts +535 -230
  30. package/src/maps/model/base.d.ts +540 -263
  31. package/src/maps/model/base.js +168 -28
  32. package/src/maps/model/constants.d.ts +12 -0
  33. package/src/maps/model/constants.js +12 -0
  34. package/src/maps/model/export-image.d.ts +1 -1
  35. package/src/maps/model/export-image.js +1 -1
  36. package/src/maps/model/export-pdf.d.ts +2 -2
  37. package/src/maps/model/export-pdf.js +2 -2
  38. package/src/maps/model/interface.d.ts +137 -108
  39. package/src/maps/model/theme.d.ts +1 -0
  40. package/src/maps/model/theme.js +1 -0
  41. package/src/maps/user-interaction/annotation.d.ts +2 -0
  42. package/src/maps/user-interaction/annotation.js +2 -0
  43. package/src/maps/user-interaction/highlight.d.ts +1 -0
  44. package/src/maps/user-interaction/highlight.js +1 -0
  45. package/src/maps/user-interaction/selection.d.ts +1 -0
  46. package/src/maps/user-interaction/selection.js +1 -0
  47. package/src/maps/user-interaction/tooltip.d.ts +16 -0
  48. package/src/maps/user-interaction/tooltip.js +23 -6
  49. package/src/maps/user-interaction/zoom.d.ts +99 -3
  50. package/src/maps/user-interaction/zoom.js +405 -100
  51. package/src/maps/utils/enum.d.ts +105 -91
  52. package/src/maps/utils/helper.d.ts +76 -16
  53. package/src/maps/utils/helper.js +122 -37
  54. package/.eslintrc.json +0 -259
  55. package/tslint.json +0 -111
@@ -1,4 +1,4 @@
1
- import { Component, NotifyPropertyChanges, INotifyPropertyChanged, Property, Ajax } from '@syncfusion/ej2-base';import { EventHandler, Browser, EmitType, isNullOrUndefined, createElement, setValue, extend } from '@syncfusion/ej2-base';import { Event, remove, L10n, Collection, Internationalization, Complex } from '@syncfusion/ej2-base';import { ModuleDeclaration } from '@syncfusion/ej2-base';import { SvgRenderer } from '@syncfusion/ej2-svg-base';import { Size, createSvg, Point, removeElement, triggerShapeEvent, showTooltip, checkShapeDataFields, MapLocation, getMousePosition, calculateSize } from './utils/helper';import { getElement, removeClass, getTranslate, triggerItemSelectionEvent, mergeSeparateCluster, customizeStyle, querySelector } from './utils/helper';import { createStyle } from './utils/helper';import { ZoomSettings, LegendSettings } from './model/base';import { LayerSettings, TitleSettings, Border, Margin, MapsAreaSettings, Annotation, CenterPosition } from './model/base';import { ZoomSettingsModel, LegendSettingsModel, LayerSettingsModel, BubbleSettingsModel } from './model/base-model';import { MarkerSettingsModel, SelectionSettingsModel, InitialMarkerSelectionSettingsModel } from './model/base-model';import { TitleSettingsModel, BorderModel, MarginModel, CenterPositionModel, InitialShapeSelectionSettingsModel } from './model/base-model';import { MapsAreaSettingsModel, AnnotationModel } from './model/base-model';import { Bubble } from './layers/bubble';import { Legend } from './layers/legend';import { Marker } from './layers/marker';import { Highlight } from './user-interaction/highlight';import { Selection } from './user-interaction/selection';import { MapsTooltip } from './user-interaction/tooltip';import { Zoom } from './user-interaction/zoom';import { load, click, onclick, rightClick, loaded, doubleClick, resize, shapeSelected, itemSelection, zoomIn } from './model/constants';import { ProjectionType, MapsTheme, PanDirection, TooltipGesture } from './utils/enum';import { getThemeStyle, Theme } from './model/theme';import { ILoadEventArgs, ILoadedEventArgs, IMouseEventArgs, IResizeEventArgs, ITooltipRenderEventArgs } from './model/interface';import { GeoPosition, ITooltipRenderCompleteEventArgs, ILegendRenderingEventArgs } from './model/interface';import { ILayerRenderingEventArgs, IShapeRenderingEventArgs, IMarkerRenderingEventArgs, IMarkerClickEventArgs } from './model/interface';import { IMarkerMoveEventArgs, ILabelRenderingEventArgs, IBubbleMoveEventArgs, IBubbleClickEventArgs } from './model/interface';import { IMarkerClusterClickEventArgs, IMarkerClusterMoveEventArgs, IMarkerClusterRenderingEventArgs } from './model/interface';import { ISelectionEventArgs, IShapeSelectedEventArgs, IMapPanEventArgs, IMapZoomEventArgs } from './model/interface';import { IBubbleRenderingEventArgs, IAnimationCompleteEventArgs, IPrintEventArgs, IThemeStyle } from './model/interface';import { LayerPanel } from './layers/layer-panel';import { GeoLocation, Rect, RectOption, measureText, getElementByID, MapAjax, processResult, getElementsByClassName } from '../maps/utils/helper';import { findPosition, textTrim, TextOption, renderTextElement, calculateZoomLevel } from '../maps/utils/helper';import { Annotations } from '../maps/user-interaction/annotation';import { FontModel, DataLabel, MarkerSettings, IAnnotationRenderingEventArgs } from './index';import { NavigationLineSettingsModel, changeBorderWidth } from './index';import { NavigationLine } from './layers/navigation-selected-line';import { DataManager, Query } from '@syncfusion/ej2-data';import { ExportType } from '../maps/utils/enum';import { PdfPageOrientation } from '@syncfusion/ej2-pdf-export';import { Print } from './model/print';import { PdfExport } from './model/export-pdf';import { ImageExport } from './model/export-image';
1
+ import { Component, NotifyPropertyChanges, INotifyPropertyChanged, Property, Ajax } from '@syncfusion/ej2-base';import { EventHandler, Browser, EmitType, isNullOrUndefined, createElement, setValue, extend } from '@syncfusion/ej2-base';import { Event, remove, L10n, Collection, Internationalization, Complex } from '@syncfusion/ej2-base';import { ModuleDeclaration } from '@syncfusion/ej2-base';import { SvgRenderer } from '@syncfusion/ej2-svg-base';import { Size, createSvg, Point, removeElement, triggerShapeEvent, showTooltip, checkShapeDataFields, MapLocation, getMousePosition, calculateSize } from './utils/helper';import { getElement, removeClass, getTranslate, triggerItemSelectionEvent, mergeSeparateCluster, customizeStyle, querySelector } from './utils/helper';import { createStyle } from './utils/helper';import { ZoomSettings, LegendSettings } from './model/base';import { LayerSettings, TitleSettings, Border, Margin, MapsAreaSettings, Annotation, CenterPosition } from './model/base';import { ZoomSettingsModel, LegendSettingsModel, LayerSettingsModel, BubbleSettingsModel } from './model/base-model';import { MarkerSettingsModel, SelectionSettingsModel, InitialMarkerSelectionSettingsModel } from './model/base-model';import { TitleSettingsModel, BorderModel, MarginModel, CenterPositionModel, InitialShapeSelectionSettingsModel } from './model/base-model';import { MapsAreaSettingsModel, AnnotationModel } from './model/base-model';import { Bubble } from './layers/bubble';import { Legend } from './layers/legend';import { Marker } from './layers/marker';import { Highlight } from './user-interaction/highlight';import { Selection } from './user-interaction/selection';import { MapsTooltip } from './user-interaction/tooltip';import { Zoom } from './user-interaction/zoom';import { load, click, onclick, rightClick, loaded, doubleClick, resize, shapeSelected, itemSelection, zoomIn } from './model/constants';import { ProjectionType, MapsTheme, PanDirection, TooltipGesture } from './utils/enum';import { getThemeStyle, Theme } from './model/theme';import { ILoadEventArgs, ILoadedEventArgs, IMouseEventArgs, IResizeEventArgs, ITooltipRenderEventArgs } from './model/interface';import { GeoPosition, ITooltipRenderCompleteEventArgs, ILegendRenderingEventArgs } from './model/interface';import { ILayerRenderingEventArgs, IShapeRenderingEventArgs, IMarkerRenderingEventArgs, IMarkerClickEventArgs } from './model/interface';import { IMarkerMoveEventArgs, ILabelRenderingEventArgs, IBubbleMoveEventArgs, IBubbleClickEventArgs } from './model/interface';import { IMarkerClusterClickEventArgs, IMarkerClusterMoveEventArgs, IMarkerClusterRenderingEventArgs } from './model/interface';import { ISelectionEventArgs, IShapeSelectedEventArgs, IMapPanEventArgs, IMapZoomEventArgs } from './model/interface';import { IBubbleRenderingEventArgs, IAnimationCompleteEventArgs, IPrintEventArgs, IThemeStyle } from './model/interface';import { LayerPanel } from './layers/layer-panel';import { GeoLocation, Rect, RectOption, measureText, getElementByID, MapAjax, processResult, getElementsByClassName } from '../maps/utils/helper';import { findPosition, textTrim, TextOption, renderTextElement, calculateZoomLevel, convertTileLatLongToPoint, convertGeoToPoint} from '../maps/utils/helper';import { Annotations } from '../maps/user-interaction/annotation';import { FontModel, DataLabel, MarkerSettings, IAnnotationRenderingEventArgs, IMarkerDragEventArgs } from './index';import { NavigationLineSettingsModel, changeBorderWidth } from './index';import { NavigationLine } from './layers/navigation-selected-line';import { DataManager, Query } from '@syncfusion/ej2-data';import { ExportType } from '../maps/utils/enum';import { PdfPageOrientation } from '@syncfusion/ej2-pdf-export';import { Print } from './model/print';import { PdfExport } from './model/export-pdf';import { ImageExport } from './model/export-image';
2
2
  import {ComponentModel} from '@syncfusion/ej2-base';
3
3
 
4
4
  /**
@@ -7,7 +7,7 @@ import {ComponentModel} from '@syncfusion/ej2-base';
7
7
  export interface MapsModel extends ComponentModel{
8
8
 
9
9
  /**
10
- * Sets and gets the background color of the maps container.
10
+ * Gets or sets the background color of the maps container.
11
11
  *
12
12
  * @default null
13
13
  */
@@ -21,28 +21,28 @@ export interface MapsModel extends ComponentModel{
21
21
  useGroupingSeparator?: boolean;
22
22
 
23
23
  /**
24
- * Sets and gets the format in which the text in the maps are to be rendered.
24
+ * Gets or sets the format to apply internationalization for the text in the maps.
25
25
  *
26
26
  * @default null
27
27
  */
28
28
  format?: string;
29
29
 
30
30
  /**
31
- * Sets and gets the width in which the maps is to be rendered.
31
+ * Gets or sets the width in which the maps is to be rendered.
32
32
  *
33
33
  * @default null
34
34
  */
35
35
  width?: string;
36
36
 
37
37
  /**
38
- * Sets and gets the height in which the maps is to be rendered.
38
+ * Gets or sets the height in which the maps is to be rendered.
39
39
  *
40
40
  * @default null
41
41
  */
42
42
  height?: string;
43
43
 
44
44
  /**
45
- * Sets and gets the mode in which the tooltip is to be displayed.
45
+ * Gets or sets the mode in which the tooltip is to be displayed.
46
46
  * The tooltip can be rendered on mouse move, click or double clicking on the
47
47
  * element on the map.
48
48
  *
@@ -51,108 +51,108 @@ export interface MapsModel extends ComponentModel{
51
51
  tooltipDisplayMode?: TooltipGesture;
52
52
 
53
53
  /**
54
- * Enables or disables the print functionality in map.
54
+ * Enables or disables the print functionality in maps.
55
55
  *
56
56
  * @default false
57
57
  */
58
58
  allowPrint?: boolean;
59
59
 
60
60
  /**
61
- * Enables or disables the export to image functionality in map.
61
+ * Enables or disables the export to image functionality in maps.
62
62
  *
63
63
  * @default false
64
64
  */
65
65
  allowImageExport?: boolean;
66
66
 
67
67
  /**
68
- * Enables or disables the export to PDF functionality in map.
68
+ * Enables or disables the export to PDF functionality in maps.
69
69
  *
70
70
  * @default false
71
71
  */
72
72
  allowPdfExport?: boolean;
73
73
 
74
74
  /**
75
- * Sets and gets the title to be displayed for maps.
75
+ * Gets or sets the options to customize the title of the maps.
76
76
  */
77
77
  titleSettings?: TitleSettingsModel;
78
78
 
79
79
  /**
80
- * Sets and gets the options to customize the zooming operations in maps.
80
+ * Gets or sets the options to customize the zooming operations in maps.
81
81
  */
82
82
  zoomSettings?: ZoomSettingsModel;
83
83
 
84
84
  /**
85
- * Sets and gets the options to customize the legend of the maps.
85
+ * Gets or sets the options to customize the legend of the maps.
86
86
  */
87
87
  legendSettings?: LegendSettingsModel;
88
88
 
89
89
  /**
90
- * Sets and gets the options to customize the layers of the maps.
90
+ * Gets or sets the options to customize the layers of the maps.
91
91
  */
92
92
  layers?: LayerSettingsModel[];
93
93
 
94
94
  /**
95
- * Sets and gets the options for customizing the annotation of maps.
95
+ * Gets or sets the options for customizing the annotations in the maps.
96
96
  */
97
97
  annotations?: AnnotationModel[];
98
98
 
99
99
  /**
100
- * Sets and gets the options to customize the margins of the maps.
100
+ * Gets or sets the options to customize the margin of the maps.
101
101
  */
102
102
  margin?: MarginModel;
103
103
 
104
104
  /**
105
- * Sets and gets the options for customizing the color and width of the maps border.
105
+ * Gets or sets the options for customizing the style properties of the maps border.
106
106
  */
107
107
  border?: BorderModel;
108
108
 
109
109
  /**
110
- * Set and gets the theme supported for the maps.
110
+ * 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.
111
111
  *
112
112
  * @default Material
113
113
  */
114
114
  theme?: MapsTheme;
115
115
 
116
116
  /**
117
- * Sets and gets the projection type for the maps.
117
+ * 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.
118
118
  *
119
119
  * @default Mercator
120
120
  */
121
121
  projectionType?: ProjectionType;
122
122
 
123
123
  /**
124
- * Sets and gets the base map index of maps. It provides the option to select which layer to be visible in the maps.
124
+ * 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.
125
125
  *
126
126
  * @default 0
127
127
  */
128
128
  baseLayerIndex?: number;
129
129
 
130
130
  /**
131
- * Sets and gets the description for maps.
131
+ * Gets or sets the description of the maps for assistive technology.
132
132
  *
133
133
  * @default null
134
134
  */
135
135
  description?: string;
136
136
 
137
137
  /**
138
- * Sets and gets the tab index value for the maps.
138
+ * Gets or sets the tab index value for the maps.
139
139
  *
140
140
  * @default 1
141
141
  */
142
142
  tabIndex?: number;
143
143
 
144
144
  /**
145
- * Sets and gets the center position of the maps.
145
+ * Gets or sets the center position of the maps.
146
146
  */
147
147
  centerPosition?: CenterPositionModel;
148
148
 
149
149
  /**
150
- * Sets and gets the options to customize the area around the map.
150
+ * Gets or sets the options to customize the area around the map.
151
151
  */
152
152
  mapsArea?: MapsAreaSettingsModel;
153
153
 
154
154
  /**
155
- * Triggers when the map is on load.
155
+ * Triggers before the maps gets rendered.
156
156
  *
157
157
  * @event load
158
158
  */
@@ -202,7 +202,7 @@ export interface MapsModel extends ComponentModel{
202
202
  rightClick?: EmitType<IMouseEventArgs>;
203
203
 
204
204
  /**
205
- * Triggers when resizing the maps.
205
+ * Triggers to notify the resize of the maps when the window is resized.
206
206
  *
207
207
  * @event resize
208
208
  */
@@ -232,28 +232,28 @@ export interface MapsModel extends ComponentModel{
232
232
  tooltipRenderComplete?: EmitType<ITooltipRenderCompleteEventArgs>;
233
233
 
234
234
  /**
235
- * Triggers when clicking a shape in maps.
235
+ * Triggers when a shape is selected in the maps.
236
236
  *
237
237
  * @event shapeSelected
238
238
  */
239
239
  shapeSelected?: EmitType<IShapeSelectedEventArgs>;
240
240
 
241
241
  /**
242
- * Triggers when clicking the shape on maps and before the selection is applied.
242
+ * Triggers before the shape, bubble or marker gets selected.
243
243
  *
244
244
  * @event itemSelection
245
245
  */
246
246
  itemSelection?: EmitType<ISelectionEventArgs>;
247
247
 
248
248
  /**
249
- * Trigger when mouse move on the shape in maps and before the shape gets highlighted.
249
+ * Trigger before the shape, bubble or marker gets highlighted.
250
250
  *
251
251
  * @event itemHighlight
252
252
  */
253
253
  itemHighlight?: EmitType<ISelectionEventArgs>;
254
254
 
255
255
  /**
256
- * Triggers when mouse move on the shape in maps and before the shape gets highlighted.
256
+ * Triggers before the shape gets highlighted.
257
257
  *
258
258
  * @event shapeHighlight
259
259
  */
@@ -288,12 +288,26 @@ export interface MapsModel extends ComponentModel{
288
288
  markerClusterRendering?: EmitType<IMarkerClusterRenderingEventArgs>;
289
289
 
290
290
  /**
291
- * Triggers when clicking on the maps marker element.
291
+ * Triggers when clicking on a marker element.
292
292
  *
293
293
  * @event markerClick
294
294
  */
295
295
  markerClick?: EmitType<IMarkerClickEventArgs>;
296
296
 
297
+ /**
298
+ * When the marker begins to drag on the map, this event is triggered.
299
+ *
300
+ * @event markerDragStart
301
+ */
302
+ markerDragStart?: EmitType<IMarkerDragEventArgs>;
303
+
304
+ /**
305
+ * When the marker has stopped dragging on the map, this event is triggered.
306
+ *
307
+ * @event markerDragEnd
308
+ */
309
+ markerDragEnd?: EmitType<IMarkerDragEventArgs>;
310
+
297
311
  /**
298
312
  * Triggers when clicking the marker cluster in maps.
299
313
  *
@@ -344,21 +358,21 @@ export interface MapsModel extends ComponentModel{
344
358
  bubbleMouseMove?: EmitType<IBubbleMoveEventArgs>;
345
359
 
346
360
  /**
347
- * Triggers after the animation completed in the maps component.
361
+ * Triggers after the animation is completed in the maps.
348
362
  *
349
363
  * @event animationComplete
350
364
  */
351
365
  animationComplete?: EmitType<IAnimationCompleteEventArgs>;
352
366
 
353
367
  /**
354
- * Triggers before rendering the annotation in maps.
368
+ * Triggers before rendering an annotation in the maps.
355
369
  *
356
370
  * @event annotationRendering
357
371
  */
358
372
  annotationRendering?: EmitType<IAnnotationRenderingEventArgs>;
359
373
 
360
374
  /**
361
- * Triggers before the zoom operations in the maps such as zoom in and zoom out.
375
+ * Triggers before the zoom operations such as zoom in and zoom out in the maps.
362
376
  *
363
377
  * @event zoom
364
378
  */