@progress/kendo-react-map 7.2.4-develop.3 → 7.2.4-develop.4

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 (125) hide show
  1. package/Map.js +8 -0
  2. package/Map.mjs +346 -0
  3. package/MapContext.js +8 -0
  4. package/MapContext.mjs +14 -0
  5. package/components/BubbleLayer.js +8 -0
  6. package/components/BubbleLayer.mjs +22 -0
  7. package/components/BubbleLayerTooltip.js +8 -0
  8. package/components/BubbleLayerTooltip.mjs +14 -0
  9. package/components/Layers.js +8 -0
  10. package/components/Layers.mjs +18 -0
  11. package/components/MarkerLayer.js +8 -0
  12. package/components/MarkerLayer.mjs +22 -0
  13. package/components/MarkerLayerTooltip.js +8 -0
  14. package/components/MarkerLayerTooltip.mjs +14 -0
  15. package/components/ShapeLayer.js +8 -0
  16. package/components/ShapeLayer.mjs +22 -0
  17. package/components/ShapeLayerTooltip.js +8 -0
  18. package/components/ShapeLayerTooltip.mjs +14 -0
  19. package/components/TileLayer.js +8 -0
  20. package/components/TileLayer.mjs +15 -0
  21. package/components/base/CollectionConfigurationComponent.js +8 -0
  22. package/components/base/CollectionConfigurationComponent.mjs +35 -0
  23. package/components/base/ConfigurationComponent.js +8 -0
  24. package/components/base/ConfigurationComponent.mjs +47 -0
  25. package/dist/cdn/js/kendo-react-map.js +8 -5
  26. package/events/base-event.js +8 -0
  27. package/events/base-event.mjs +19 -0
  28. package/events/before-reset-event.js +8 -0
  29. package/events/before-reset-event.mjs +20 -0
  30. package/events/dom-event.js +8 -0
  31. package/events/dom-event.mjs +23 -0
  32. package/events/map-click-event.js +8 -0
  33. package/events/map-click-event.mjs +20 -0
  34. package/events/map-event-builder.js +8 -0
  35. package/events/map-event-builder.mjs +47 -0
  36. package/events/marker-activate-event.js +8 -0
  37. package/events/marker-activate-event.mjs +20 -0
  38. package/events/marker-click-event.js +8 -0
  39. package/events/marker-click-event.mjs +20 -0
  40. package/events/marker-created-event.js +8 -0
  41. package/events/marker-created-event.mjs +20 -0
  42. package/events/pan-end-event.js +8 -0
  43. package/events/pan-end-event.mjs +20 -0
  44. package/events/pan-event.js +8 -0
  45. package/events/pan-event.mjs +20 -0
  46. package/events/preventable-event.js +8 -0
  47. package/events/preventable-event.mjs +33 -0
  48. package/events/reset-event.js +8 -0
  49. package/events/reset-event.mjs +20 -0
  50. package/events/shape-click-event.js +8 -0
  51. package/events/shape-click-event.mjs +20 -0
  52. package/events/shape-created-event.js +8 -0
  53. package/events/shape-created-event.mjs +20 -0
  54. package/events/shape-feature-created-event.js +8 -0
  55. package/events/shape-feature-created-event.mjs +20 -0
  56. package/events/shape-mouse-enter-event.js +8 -0
  57. package/events/shape-mouse-enter-event.mjs +20 -0
  58. package/events/shape-mouse-leave-event.js +8 -0
  59. package/events/shape-mouse-leave-event.mjs +20 -0
  60. package/events/zoom-end-event.js +8 -0
  61. package/events/zoom-end-event.mjs +20 -0
  62. package/events/zoom-start-event.js +8 -0
  63. package/events/zoom-start-event.mjs +20 -0
  64. package/index.d.mts +951 -5
  65. package/index.d.ts +951 -13
  66. package/index.js +8 -5
  67. package/index.mjs +64 -801
  68. package/package-metadata.js +8 -0
  69. package/package-metadata.mjs +19 -0
  70. package/package.json +3 -3
  71. package/store/reducer.js +8 -0
  72. package/store/reducer.mjs +46 -0
  73. package/store/store.js +8 -0
  74. package/store/store.mjs +19 -0
  75. package/tooltip/MapTooltip.js +8 -0
  76. package/tooltip/MapTooltip.mjs +82 -0
  77. package/tooltip/Popup.js +8 -0
  78. package/tooltip/Popup.mjs +60 -0
  79. package/utils/index.js +8 -0
  80. package/utils/index.mjs +29 -0
  81. package/Map.d.ts +0 -192
  82. package/MapContext.d.ts +0 -19
  83. package/MapProps.d.ts +0 -104
  84. package/common/events.d.ts +0 -19
  85. package/common/map-types.d.ts +0 -5
  86. package/components/BubbleLayer.d.ts +0 -14
  87. package/components/BubbleLayerTooltip.d.ts +0 -19
  88. package/components/Layers.d.ts +0 -13
  89. package/components/MarkerLayer.d.ts +0 -14
  90. package/components/MarkerLayerTooltip.d.ts +0 -19
  91. package/components/ShapeLayer.d.ts +0 -14
  92. package/components/ShapeLayerTooltip.d.ts +0 -19
  93. package/components/TileLayer.d.ts +0 -13
  94. package/components/base/CollectionConfigurationComponent.d.ts +0 -23
  95. package/components/base/ConfigurationComponent.d.ts +0 -28
  96. package/components/index.d.ts +0 -13
  97. package/events/base-event.d.ts +0 -18
  98. package/events/before-reset-event.d.ts +0 -16
  99. package/events/dom-event.d.ts +0 -26
  100. package/events/map-click-event.d.ts +0 -24
  101. package/events/map-event-builder.d.ts +0 -10
  102. package/events/marker-activate-event.d.ts +0 -24
  103. package/events/marker-click-event.d.ts +0 -24
  104. package/events/marker-created-event.d.ts +0 -26
  105. package/events/pan-end-event.d.ts +0 -28
  106. package/events/pan-event.d.ts +0 -28
  107. package/events/preventable-event.d.ts +0 -22
  108. package/events/reset-event.d.ts +0 -18
  109. package/events/shape-click-event.d.ts +0 -29
  110. package/events/shape-created-event.d.ts +0 -33
  111. package/events/shape-feature-created-event.d.ts +0 -33
  112. package/events/shape-mouse-enter-event.d.ts +0 -32
  113. package/events/shape-mouse-leave-event.d.ts +0 -32
  114. package/events/zoom-end-event.d.ts +0 -20
  115. package/events/zoom-start-event.d.ts +0 -22
  116. package/package-metadata.d.ts +0 -9
  117. package/store/reducer.d.ts +0 -14
  118. package/store/store.d.ts +0 -26
  119. package/tooltip/BubbleTooltipContext.d.ts +0 -26
  120. package/tooltip/MapTooltip.d.ts +0 -41
  121. package/tooltip/MarkerTooltipContext.d.ts +0 -26
  122. package/tooltip/Popup.d.ts +0 -33
  123. package/tooltip/ShapeTooltipContext.d.ts +0 -22
  124. package/tooltip/index.d.ts +0 -9
  125. package/utils/index.d.ts +0 -13
package/index.d.ts CHANGED
@@ -1,13 +1,951 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import CollectionConfigurationComponent from './components/base/CollectionConfigurationComponent';
6
- import ConfigurationComponent from './components/base/ConfigurationComponent';
7
- export { CollectionConfigurationComponent, ConfigurationComponent };
8
- export { Map } from './Map';
9
- export type { MapProps } from './MapProps';
10
- export * from './components';
11
- export * from './common/map-types';
12
- export * from './common/events';
13
- export * from './tooltip';
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { Align } from '@progress/kendo-react-popup';
9
+ import { BubbleLayerOptions } from '@progress/kendo-charts';
10
+ import { BubbleLayerSymbol } from '@progress/kendo-charts';
11
+ import { BubbleLayerSymbolArgs } from '@progress/kendo-charts';
12
+ import { Element as Element_2 } from '@progress/kendo-drawing';
13
+ import { Extent } from '@progress/kendo-charts';
14
+ import { geometry } from '@progress/kendo-drawing';
15
+ import { Group } from '@progress/kendo-drawing';
16
+ import { InstanceObserver } from '@progress/kendo-charts';
17
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
18
+ import { Location as Location_2 } from '@progress/kendo-charts';
19
+ import { Map as Map_3 } from '@progress/kendo-charts';
20
+ import { MapBeforeResetEvent } from '@progress/kendo-charts';
21
+ import { MapClickEvent as MapClickEvent_2 } from '@progress/kendo-charts';
22
+ import { MapControls } from '@progress/kendo-charts';
23
+ import { MapControlsPosition } from '@progress/kendo-charts';
24
+ import { MapLayer } from '@progress/kendo-charts';
25
+ import { MapLayerOptions } from '@progress/kendo-charts';
26
+ import { MapMarker } from '@progress/kendo-charts';
27
+ import { MapMarkerActivateEvent } from '@progress/kendo-charts';
28
+ import { MapMarkerClickEvent } from '@progress/kendo-charts';
29
+ import { MapMarkerCreatedEvent } from '@progress/kendo-charts';
30
+ import { MapOptions } from '@progress/kendo-charts';
31
+ import { MapPanEndEvent } from '@progress/kendo-charts';
32
+ import { MapPanEvent } from '@progress/kendo-charts';
33
+ import { MapResetEvent } from '@progress/kendo-charts';
34
+ import { MapShapeClickEvent } from '@progress/kendo-charts';
35
+ import { MapShapeCreatedEvent } from '@progress/kendo-charts';
36
+ import { MapShapeFeatureCreatedEvent } from '@progress/kendo-charts';
37
+ import { MapShapeMouseEnterEvent } from '@progress/kendo-charts';
38
+ import { MapShapeMouseLeaveEvent } from '@progress/kendo-charts';
39
+ import { MapZoomEndEvent } from '@progress/kendo-charts';
40
+ import { MapZoomStartEvent } from '@progress/kendo-charts';
41
+ import { MarkerLayerOptions } from '@progress/kendo-charts';
42
+ import { Offset } from '@progress/kendo-react-popup';
43
+ import PropTypes from 'prop-types';
44
+ import * as React_2 from 'react';
45
+ import { ShapeLayerOptions } from '@progress/kendo-charts';
46
+ import { TileLayerOptions } from '@progress/kendo-charts';
47
+ import { TileUrlTemplateArgs } from '@progress/kendo-charts';
48
+
49
+ /**
50
+ * @hidden
51
+ */
52
+ declare abstract class BaseEvent {
53
+ /**
54
+ * The `Map` component that triggered the event.
55
+ */
56
+ target: Map_2;
57
+ /**
58
+ * @hidden
59
+ */
60
+ constructor(target: Map_2);
61
+ }
62
+
63
+ /**
64
+ * Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers.
65
+ */
66
+ export declare class BeforeResetEvent extends BaseEvent implements MapBeforeResetEvent {
67
+ /**
68
+ * @hidden
69
+ */
70
+ constructor(_: any, target: Map_2);
71
+ }
72
+
73
+ export { BubbleLayerSymbol }
74
+
75
+ export { BubbleLayerSymbolArgs }
76
+
77
+ /**
78
+ * Context object for bubble layer tooltips.
79
+ */
80
+ export declare interface BubbleTooltipContext {
81
+ /**
82
+ * The original data item used to create the bubble.
83
+ */
84
+ dataItem: any;
85
+ /**
86
+ * The index of the bubble layer in the map.
87
+ */
88
+ layerIndex: number;
89
+ /**
90
+ * The location of the bubble.
91
+ */
92
+ location: Location_2;
93
+ /**
94
+ * The numerical value of the bubble
95
+ */
96
+ value: number;
97
+ }
98
+
99
+ /**
100
+ * @hidden
101
+ */
102
+ export declare class CollectionConfigurationComponent extends React_2.Component<CollectionConfigurationProps> {
103
+ static contextType: React_2.Context<MapContextType | null>;
104
+ optionsStore: any;
105
+ constructor(props: any, context: any);
106
+ renderChildren(child: any, index: number): React_2.DetailedReactHTMLElement<any, HTMLElement>;
107
+ render(): any;
108
+ }
109
+
110
+ /**
111
+ * @hidden
112
+ */
113
+ declare interface CollectionConfigurationProps {
114
+ _mapKey: string;
115
+ _parentStore?: any;
116
+ [x: string]: any;
117
+ }
118
+
119
+ /**
120
+ * @hidden
121
+ */
122
+ export declare class ConfigurationComponent extends React_2.Component<ConfigurationComponentProps> {
123
+ static contextType: React_2.Context<MapContextType | null>;
124
+ optionsStore: any;
125
+ childStore: any;
126
+ constructor(props: any, context: any);
127
+ render(): any;
128
+ componentDidMount(): void;
129
+ componentDidUpdate(): void;
130
+ private dispatch;
131
+ private renderChildren;
132
+ }
133
+
134
+ /**
135
+ * @hidden
136
+ */
137
+ declare interface ConfigurationComponentProps {
138
+ _mapKey?: string;
139
+ _mapCollectionIdxKey?: string;
140
+ _parentStore?: any;
141
+ [x: string]: any;
142
+ }
143
+
144
+ /**
145
+ * @hidden
146
+ */
147
+ declare class DomEvent<T> {
148
+ /**
149
+ * The `Map` component that triggered the event.
150
+ */
151
+ sender: React.Component;
152
+ /**
153
+ * The syntheticEvent
154
+ */
155
+ syntheticEvent: T;
156
+ /**
157
+ * @hidden
158
+ */
159
+ constructor(sender: React.Component, e: T);
160
+ }
161
+
162
+ export { Extent }
163
+
164
+ export { Location_2 as Location }
165
+
166
+ /**
167
+ * Represents the [KendoReact Map component]({% slug overview_map %}).
168
+ */
169
+ declare class Map_2 extends React_2.Component<MapProps, {}> {
170
+ /**
171
+ * @hidden
172
+ */
173
+ static propTypes: {
174
+ dir: PropTypes.Requireable<string>;
175
+ };
176
+ /**
177
+ * @hidden
178
+ */
179
+ static defaultProps: {};
180
+ /**
181
+ * @hidden
182
+ */
183
+ mapInstance: Map_3 | null;
184
+ /**
185
+ * @hidden
186
+ */
187
+ get element(): HTMLDivElement;
188
+ protected _element: HTMLDivElement | null;
189
+ protected optionsStore: any;
190
+ protected optionsUnsubscriber: Function;
191
+ protected observersStore: any;
192
+ protected mapObserver: InstanceObserver;
193
+ protected childrenObserver: InstanceObserver;
194
+ protected contextValue: MapContextType;
195
+ constructor(props: MapProps);
196
+ private iconsType;
197
+ private svgIcons;
198
+ /**
199
+ * @hidden
200
+ */
201
+ componentDidMount(): void;
202
+ /**
203
+ * @hidden
204
+ */
205
+ componentWillUnmount(): void;
206
+ /**
207
+ * @hidden
208
+ */
209
+ componentDidUpdate(prevProps: MapProps): void;
210
+ /**
211
+ * @hidden
212
+ */
213
+ render(): any;
214
+ /**
215
+ * @hidden
216
+ */
217
+ getMapOptions(): any;
218
+ /**
219
+ * The marker layers instances.
220
+ */
221
+ get layers(): MapLayer[];
222
+ /**
223
+ * Gets the extent (visible area) of the map.
224
+ */
225
+ get extent(): Extent | undefined;
226
+ /**
227
+ * Sets the extent (visible area) of the map.
228
+ */
229
+ set extent(extent: Extent | undefined);
230
+ /**
231
+ * Detects the size of the container and redraws the Map.
232
+ * Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
233
+ */
234
+ resize(): void;
235
+ /**
236
+ * Retrieves the size of the visible portion of the map.
237
+ *
238
+ * @returns The size (width and height) of the visible portion of the map.
239
+ */
240
+ viewSize(): {
241
+ width: number;
242
+ height: number;
243
+ };
244
+ /**
245
+ * Returns the event coordinates relative to the map element. Offset coordinates are not synchronized to a particular location on the map.
246
+ *
247
+ * @param e The mouse event.
248
+ * @returns The event coordinates relative to the map element.
249
+ */
250
+ eventOffset(e: any): geometry.Point | undefined;
251
+ /**
252
+ * Retrieves projected (layer) coordinates that correspond to this mouse event.
253
+ * Layer coordinates are absolute and change only when the zoom level is changed.
254
+ *
255
+ * @param e The mouse event.
256
+ * @returns The projected (layer) coordinates that correspond to this event.
257
+ */
258
+ eventToLayer(e: any): geometry.Point | undefined;
259
+ /**
260
+ * Retrieves the geographic location that correspond to this mouse event.
261
+ *
262
+ * @param e The mouse event.
263
+ * @returns The geographic location that correspond to this mouse event.
264
+ */
265
+ eventToLocation(e: any): geometry.Point | undefined;
266
+ /**
267
+ * Retrieves relative (view) coordinates that correspond to this mouse event.
268
+ * Layer elements positioned on these coordinates will appear under the mouse cursor.
269
+ * View coordinates are no longer valid after a map reset.
270
+ *
271
+ * @param e The mouse event.
272
+ * @returns The relative (view) coordinates that correspond to this mouse event.
273
+ */
274
+ eventToView(e: any): geometry.Point | undefined;
275
+ /**
276
+ * Transforms layer (projected) coordinates to geographical location.
277
+ *
278
+ * @param point The layer (projected) coordinates. An array argument is assumed to be in x, y order.
279
+ * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
280
+ * @returns The geographic location that corresponds to the layer coordinates.
281
+ */
282
+ layerToLocation(point: geometry.Point | number[], zoom?: number): Location_2 | undefined;
283
+ /**
284
+ * Returns the layer (projected) coordinates that correspond to a geographical location.
285
+ *
286
+ * @param location The geographic location. An array argument is assumed to be in [Latitude, Longitude] order.
287
+ * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
288
+ * @returns The layer (projected) coordinates.
289
+ */
290
+ locationToLayer(location: Location_2 | number[], zoom?: number): geometry.Point | undefined;
291
+ /**
292
+ * Returns the view (relative) coordinates that correspond to a geographical location.
293
+ *
294
+ * @param location The geographic location. An array argument is assumed to be in [Latitude, Longitude] order.
295
+ * @returns The view coordinates that correspond to a geographical location.
296
+ */
297
+ locationToView(location: Location_2 | number[]): geometry.Point | undefined;
298
+ /**
299
+ * Returns the geographical location that correspond to the view (relative) coordinates.
300
+ *
301
+ * @param point The view coordinates. An array argument is assumed to be in x, y order.
302
+ * @param zoom Optional. Assumed zoom level. Defaults to the current zoom level.
303
+ * @returns The geographic location that corresponds to the view coordinates.
304
+ */
305
+ viewToLocation(point: geometry.Point | number[], zoom?: number): Location_2 | undefined;
306
+ /**
307
+ * Load markers in the Map. This method will clear the current markers and show the new ones.
308
+ *
309
+ * @param newMarkers An array of markers.
310
+ */
311
+ loadMarkers(newMarkers: any[]): void;
312
+ /**
313
+ * @hidden
314
+ */
315
+ refresh(): void;
316
+ /**
317
+ * @hidden
318
+ */
319
+ instantiateCoreMap(): void;
320
+ /**
321
+ * @hidden
322
+ */
323
+ trigger(name: string, e: any): boolean;
324
+ /**
325
+ * @hidden
326
+ */
327
+ requiresHandlers(names: string[]): boolean;
328
+ /**
329
+ * @hidden
330
+ */
331
+ triggerDomEvent<T>(name: string, e: DomEvent<T>): boolean;
332
+ /**
333
+ * @hidden
334
+ */
335
+ onInit: (e: any) => void;
336
+ /**
337
+ * @hidden
338
+ */
339
+ onRender: (e: any) => void;
340
+ /**
341
+ * @hidden
342
+ */
343
+ onMapMouseLeave: (e: React_2.MouseEvent<HTMLDivElement>) => void;
344
+ private setIcons;
345
+ }
346
+ export { Map_2 as Map }
347
+
348
+ export declare const MapBubbleLayer: React_2.FunctionComponent<MapBubbleLayerProps>;
349
+
350
+ /**
351
+ * Represents the props of the KendoReact MapBubbleLayer component.
352
+ */
353
+ export declare interface MapBubbleLayerProps extends BubbleLayerOptions {
354
+ children?: React_2.ReactNode;
355
+ }
356
+
357
+ export declare const MapBubbleLayerTooltip: React_2.FunctionComponent<MapBubbleLayerTooltipProps>;
358
+
359
+ /**
360
+ * Represents the props of the KendoReact BubbleTooltip component.
361
+ */
362
+ export declare interface MapBubbleLayerTooltipProps {
363
+ /**
364
+ * The renderer for the bubble layer tooltip.
365
+ *
366
+ * @return the content of the tooltip.
367
+ */
368
+ render?: (props: BubbleTooltipContext) => React_2.ReactNode;
369
+ }
370
+
371
+ /**
372
+ * Fired when the user clicks on the map.
373
+ */
374
+ export declare class MapClickEvent extends BaseEvent implements MapClickEvent_2 {
375
+ /**
376
+ * The location of the clicked point.
377
+ */
378
+ location: Location_2;
379
+ /**
380
+ * The source DOM event instance
381
+ */
382
+ originalEvent: any;
383
+ /**
384
+ * @hidden
385
+ */
386
+ constructor(e: MapClickEvent_2, target: Map_2);
387
+ }
388
+
389
+ /**
390
+ * @hidden
391
+ */
392
+ declare const MapContext: React_2.Context<MapContextType | null>;
393
+
394
+ /**
395
+ * @hidden
396
+ */
397
+ declare interface MapContextType {
398
+ optionsStore: Store;
399
+ observersStore: Store;
400
+ childrenObserver: InstanceObserver;
401
+ }
402
+
403
+ export { MapControls }
404
+
405
+ export { MapControlsPosition }
406
+
407
+ export { MapLayer }
408
+
409
+ export { MapLayerOptions }
410
+
411
+ export declare const MapLayers: React_2.FunctionComponent<MapLayersProps>;
412
+
413
+ /**
414
+ * Represents the props of the KendoReact MapLayers component.
415
+ */
416
+ export declare interface MapLayersProps {
417
+ children?: React_2.ReactNode;
418
+ }
419
+
420
+ export { MapMarker }
421
+
422
+ export declare const MapMarkerLayer: React_2.FunctionComponent<MapMarkerLayerProps>;
423
+
424
+ /**
425
+ * Represents the props of the KendoReact MapMarkerLayer component.
426
+ */
427
+ export declare interface MapMarkerLayerProps extends MarkerLayerOptions {
428
+ children?: React_2.ReactNode;
429
+ }
430
+
431
+ export declare const MapMarkerLayerTooltip: React_2.FunctionComponent<MapMarkerLayerTooltipProps>;
432
+
433
+ /**
434
+ * Represents the props of the KendoReact MapMarkerLayerTooltip component.
435
+ */
436
+ export declare interface MapMarkerLayerTooltipProps {
437
+ /**
438
+ * The renderer for the marker layer tooltip.
439
+ *
440
+ * @return the content of the tooltip.
441
+ */
442
+ render?: (props: MarkerTooltipContext) => React_2.ReactNode;
443
+ }
444
+
445
+ /**
446
+ * Represents the props of the KendoReact Map component.
447
+ */
448
+ export declare interface MapProps extends MapOptions {
449
+ /**
450
+ * Represents the `dir` HTML attribute.
451
+ */
452
+ dir?: string;
453
+ /**
454
+ * The styles that are applied to the component.
455
+ */
456
+ style?: React_2.CSSProperties;
457
+ /**
458
+ * Sets additional CSS classes to the component.
459
+ */
460
+ className?: string;
461
+ /**
462
+ * @hidden
463
+ */
464
+ children?: any;
465
+ /**
466
+ * Fires when the Map is about to refresh. The event can be used to prevent the refresh of the Map in specific cases.
467
+ */
468
+ onRefresh?: (mapOptions: any, mapInstance: any) => void;
469
+ /**
470
+ * Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers.
471
+ */
472
+ onBeforeReset?: (event: BeforeResetEvent) => void;
473
+ /**
474
+ * Fired when the user clicks on the map.
475
+ */
476
+ onMapClick?: (event: MapClickEvent) => void;
477
+ /**
478
+ * Fired when a marker has been displayed and has a DOM element assigned.
479
+ */
480
+ onMarkerActivate?: (event: MarkerActivateEvent) => void;
481
+ /**
482
+ * Fired when a marker has been clicked or tapped.
483
+ */
484
+ onMarkerClick?: (event: MarkerClickEvent) => void;
485
+ /**
486
+ * Fired when a marker has been created and is about to be displayed.
487
+ *
488
+ * Cancelling the event will prevent the marker from being shown.
489
+ */
490
+ onMarkerCreated?: (event: MarkerCreatedEvent) => void;
491
+ /**
492
+ * Fires after the map viewport has been moved.
493
+ */
494
+ onPanEnd?: (event: PanEndEvent) => void;
495
+ /**
496
+ * Fired while the map viewport is being moved.
497
+ */
498
+ onPan?: (event: PanEvent) => void;
499
+ /**
500
+ * Fired when the map is reset.
501
+ *
502
+ * This typically occurs on initial load and after a zoom/center change.
503
+ */
504
+ onReset?: (event: ResetEvent) => void;
505
+ /**
506
+ * Fired when a shape is clicked or tapped.
507
+ */
508
+ onShapeClick?: (event: ShapeClickEvent) => void;
509
+ /**
510
+ * Fired when a shape is created, but is not rendered yet.
511
+ */
512
+ onShapeCreated?: (event: ShapeCreatedEvent) => void;
513
+ /**
514
+ * Fired when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
515
+ */
516
+ onShapeFeatureCreated?: (event: ShapeFeatureCreatedEvent) => void;
517
+ /**
518
+ * Fired when the mouse enters a shape.
519
+ *
520
+ * > This event will fire reliably only for shapes that have set fill color.
521
+ * > The opacity can still be set to 0 so the shapes appear to have no fill.
522
+ */
523
+ onShapeMouseEnter?: (event: ShapeMouseEnterEvent) => void;
524
+ /**
525
+ * Fired when the mouse leaves a shape.
526
+ *
527
+ * > This event will fire reliably only for shapes that have set fill color.
528
+ * > The opacity can still be set to 0 so the shapes appear to have no fill.
529
+ */
530
+ onShapeMouseLeave?: (event: ShapeMouseLeaveEvent) => void;
531
+ /**
532
+ * Fired when the map zoom level is about to change.
533
+ *
534
+ * Cancelling the event will prevent the user action.
535
+ */
536
+ onZoomStart?: (event: ZoomStartEvent) => void;
537
+ /**
538
+ * Fired when the map zoom level has changed.
539
+ */
540
+ onZoomEnd?: (event: ZoomEndEvent) => void;
541
+ }
542
+
543
+ export declare const MapShapeLayer: React_2.FunctionComponent<MapShapeLayerProps>;
544
+
545
+ /**
546
+ * Represents the props of the KendoReact MapShapeLayer component.
547
+ */
548
+ export declare interface MapShapeLayerProps extends ShapeLayerOptions {
549
+ children?: React_2.ReactNode;
550
+ }
551
+
552
+ export declare const MapShapeLayerTooltip: React_2.FunctionComponent<MapShapeLayerTooltipProps>;
553
+
554
+ /**
555
+ * Represents the props of the KendoReact ShapeTooltip component.
556
+ */
557
+ export declare interface MapShapeLayerTooltipProps {
558
+ /**
559
+ * The renderer for the shape layer tooltip.
560
+ *
561
+ * @return the content of the tooltip.
562
+ */
563
+ render?: (props: ShapeTooltipContext) => React_2.ReactNode;
564
+ }
565
+
566
+ export declare const MapTileLayer: React_2.FunctionComponent<MapTileLayerProps>;
567
+
568
+ /**
569
+ * Represents the props of the KendoReact MapTileLayer component.
570
+ */
571
+ export declare interface MapTileLayerProps extends TileLayerOptions {
572
+ }
573
+
574
+ /**
575
+ * @hidden
576
+ */
577
+ export declare class MapTooltip extends React_2.Component<{}, MapTooltipState> {
578
+ static contextType: React_2.Context<MapContextType | null>;
579
+ context: React_2.ContextType<typeof MapContext>;
580
+ readonly state: MapTooltipState;
581
+ mapObserver?: InstanceObserver;
582
+ componentDidMount(): void;
583
+ render(): JSX_2.Element | null;
584
+ componentWillUnmount(): void;
585
+ onShowTooltip(e: any): void;
586
+ onHideTooltip(): void;
587
+ createTooltipContext(e: any): TooltipContext;
588
+ findRenderFunctionByLayer(layerIndex: number): any;
589
+ }
590
+
591
+ /**
592
+ * @hidden
593
+ */
594
+ declare interface MapTooltipState {
595
+ className?: string | undefined;
596
+ popupShown: boolean;
597
+ popupAlign?: Align;
598
+ popupOffset?: Offset;
599
+ popupStyles?: any;
600
+ popupContext?: TooltipContext;
601
+ shared?: boolean;
602
+ }
603
+
604
+ /**
605
+ * Fired when a marker has been displayed and has a DOM element assigned.
606
+ */
607
+ export declare class MarkerActivateEvent extends BaseEvent implements MapMarkerActivateEvent {
608
+ /**
609
+ * The marker instance.
610
+ */
611
+ marker: MapMarker;
612
+ /**
613
+ * The marker layer instance.
614
+ */
615
+ layer: MapLayer;
616
+ /**
617
+ * @hidden
618
+ */
619
+ constructor(e: MapMarkerActivateEvent, target: Map_2);
620
+ }
621
+
622
+ /**
623
+ * Fired when a marker has been clicked or tapped.
624
+ */
625
+ export declare class MarkerClickEvent extends BaseEvent implements MapMarkerClickEvent {
626
+ /**
627
+ * The marker instance.
628
+ */
629
+ marker: MapMarker;
630
+ /**
631
+ * The marker layer instance.
632
+ */
633
+ layer: MapLayer;
634
+ /**
635
+ * @hidden
636
+ */
637
+ constructor(e: MapMarkerClickEvent, target: Map_2);
638
+ }
639
+
640
+ /**
641
+ * Fired when a marker has been created and is about to be displayed.
642
+ *
643
+ * Cancelling the event will prevent the marker from being shown.
644
+ */
645
+ export declare class MarkerCreatedEvent extends PreventableEvent implements MapMarkerCreatedEvent {
646
+ /**
647
+ * The marker instance.
648
+ */
649
+ marker: MapMarker;
650
+ /**
651
+ * The marker layer instance.
652
+ */
653
+ layer: MapLayer;
654
+ /**
655
+ * @hidden
656
+ */
657
+ constructor(e: MapMarkerCreatedEvent, target: Map_2);
658
+ }
659
+
660
+ /**
661
+ * Context object for marker tooltips.
662
+ */
663
+ export declare interface MarkerTooltipContext {
664
+ /**
665
+ * The original data item used to create the marker.
666
+ */
667
+ dataItem: any;
668
+ /**
669
+ * The index of the marker layer in the map.
670
+ */
671
+ layerIndex: number;
672
+ /**
673
+ * The location of the marker.
674
+ */
675
+ location: Location_2;
676
+ /**
677
+ * The title of the marker.
678
+ */
679
+ title: string;
680
+ }
681
+
682
+ /**
683
+ * Fires after the map viewport has been moved.
684
+ */
685
+ export declare class PanEndEvent extends BaseEvent implements MapPanEndEvent {
686
+ /**
687
+ * The map origin (top left or NW corner).
688
+ */
689
+ origin: Location_2;
690
+ /**
691
+ * The current map center.
692
+ */
693
+ center: Location_2;
694
+ /**
695
+ * The source DOM event instance
696
+ */
697
+ originalEvent: any;
698
+ /**
699
+ * @hidden
700
+ */
701
+ constructor(e: MapPanEndEvent, target: Map_2);
702
+ }
703
+
704
+ /**
705
+ * Fired while the map viewport is being moved.
706
+ */
707
+ export declare class PanEvent extends BaseEvent implements MapPanEvent {
708
+ /**
709
+ * The map origin (top left or NW corner).
710
+ */
711
+ origin: Location_2;
712
+ /**
713
+ * The current map center.
714
+ */
715
+ center: Location_2;
716
+ /**
717
+ * The source DOM event instance
718
+ */
719
+ originalEvent: any;
720
+ /**
721
+ * @hidden
722
+ */
723
+ constructor(e: MapPanEvent, target: Map_2);
724
+ }
725
+
726
+ /**
727
+ * @hidden
728
+ */
729
+ declare abstract class PreventableEvent extends BaseEvent {
730
+ private prevented;
731
+ /**
732
+ * Prevents the default action for a specified event. In this way, the source component suppresses the built-in behavior that follows the event.
733
+ */
734
+ preventDefault(): void;
735
+ /**
736
+ * Returns `true` if the event was prevented by any of its subscribers.
737
+ *
738
+ * @returns `true` if the default action was prevented.
739
+ * Otherwise, returns `false`.
740
+ */
741
+ isDefaultPrevented(): boolean;
742
+ }
743
+
744
+ /**
745
+ * Fired when the map is reset.
746
+ *
747
+ * This typically occurs on initial load and after a zoom/center change.
748
+ */
749
+ export declare class ResetEvent extends BaseEvent implements MapResetEvent {
750
+ /**
751
+ * @hidden
752
+ */
753
+ constructor(_: any, target: Map_2);
754
+ }
755
+
756
+ /**
757
+ * Fired when a shape is clicked or tapped.
758
+ */
759
+ export declare class ShapeClickEvent extends BaseEvent implements MapShapeClickEvent {
760
+ /**
761
+ * The shape layer instance.
762
+ */
763
+ layer: MapLayer;
764
+ /**
765
+ * The shape instance.
766
+ */
767
+ shape: Element_2;
768
+ /**
769
+ * The source DOM event instance
770
+ */
771
+ originalEvent: any;
772
+ /**
773
+ * @hidden
774
+ */
775
+ constructor(e: MapShapeClickEvent, target: Map_2);
776
+ }
777
+
778
+ /**
779
+ * Fired when a shape is created, but is not rendered yet.
780
+ */
781
+ export declare class ShapeCreatedEvent extends BaseEvent implements MapShapeCreatedEvent {
782
+ /**
783
+ * The shape layer instance.
784
+ */
785
+ layer: MapLayer;
786
+ /**
787
+ * The shape instance.
788
+ */
789
+ shape: Element_2;
790
+ /**
791
+ * The original data item for this Shape.
792
+ */
793
+ dataItem: any;
794
+ /**
795
+ * The shape location
796
+ */
797
+ location: Location_2;
798
+ /**
799
+ * @hidden
800
+ */
801
+ constructor(e: any, target: Map_2);
802
+ }
803
+
804
+ /**
805
+ * Fired when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
806
+ */
807
+ export declare class ShapeFeatureCreatedEvent extends BaseEvent implements MapShapeFeatureCreatedEvent {
808
+ /**
809
+ * The original data item for this Feature. Members include `geometries` and `properties`.
810
+ */
811
+ dataItem: any;
812
+ /**
813
+ * The shape layer instance.
814
+ */
815
+ layer: MapLayer;
816
+ /**
817
+ * The group containing feature shape instances.
818
+ */
819
+ group: Group;
820
+ /**
821
+ * A reference to the `dataItem.properties` object.
822
+ */
823
+ properties: any;
824
+ /**
825
+ * @hidden
826
+ */
827
+ constructor(e: MapShapeFeatureCreatedEvent, target: Map_2);
828
+ }
829
+
830
+ /**
831
+ * Fired when the mouse enters a shape.
832
+ *
833
+ * > This event will fire reliably only for shapes that have set fill color.
834
+ * > The opacity can still be set to 0 so the shapes appear to have no fill.
835
+ */
836
+ export declare class ShapeMouseEnterEvent extends BaseEvent implements MapShapeMouseEnterEvent {
837
+ /**
838
+ * The shape layer instance.
839
+ */
840
+ layer: MapLayer;
841
+ /**
842
+ * The shape instance.
843
+ */
844
+ shape: Element_2;
845
+ /**
846
+ * The source DOM event instance
847
+ */
848
+ originalEvent: any;
849
+ /**
850
+ * @hidden
851
+ */
852
+ constructor(e: MapShapeMouseEnterEvent, target: Map_2);
853
+ }
854
+
855
+ /**
856
+ * Fired when the mouse leaves a shape.
857
+ *
858
+ * > This event will fire reliably only for shapes that have set fill color.
859
+ * > The opacity can still be set to 0 so the shapes appear to have no fill.
860
+ */
861
+ export declare class ShapeMouseLeaveEvent extends BaseEvent implements MapShapeMouseLeaveEvent {
862
+ /**
863
+ * The shape layer instance.
864
+ */
865
+ layer: MapLayer;
866
+ /**
867
+ * The shape instance.
868
+ */
869
+ shape: Element_2;
870
+ /**
871
+ * The source DOM event instance
872
+ */
873
+ originalEvent: any;
874
+ /**
875
+ * @hidden
876
+ */
877
+ constructor(e: MapShapeMouseLeaveEvent, target: Map_2);
878
+ }
879
+
880
+ /**
881
+ * Context object for shape layer tooltips.
882
+ */
883
+ export declare interface ShapeTooltipContext {
884
+ /**
885
+ * The original GeoJSON data item used to create the shape.
886
+ */
887
+ dataItem: any;
888
+ /**
889
+ * The index of the shape layer in the map.
890
+ */
891
+ layerIndex: number;
892
+ /**
893
+ * The location (center point) of the shape.
894
+ */
895
+ location: Location_2;
896
+ }
897
+
898
+ /**
899
+ * @hidden
900
+ */
901
+ declare interface Store {
902
+ getState(): any;
903
+ dispatch(action: StoreAction | object): void;
904
+ subscribe(f: Function): Function;
905
+ }
906
+
907
+ /**
908
+ * @hidden
909
+ */
910
+ declare interface StoreAction {
911
+ mapKey?: string;
912
+ mapCollectionIdxKey?: string;
913
+ type?: string;
914
+ payload: any;
915
+ }
916
+
917
+ export { TileUrlTemplateArgs }
918
+
919
+ declare type TooltipContext = MarkerTooltipContext | ShapeTooltipContext | BubbleTooltipContext;
920
+
921
+ /**
922
+ * Fired when the map zoom level has changed.
923
+ */
924
+ export declare class ZoomEndEvent extends BaseEvent implements MapZoomEndEvent {
925
+ /**
926
+ * The source DOM event instance
927
+ */
928
+ originalEvent: any;
929
+ /**
930
+ * @hidden
931
+ */
932
+ constructor(e: MapZoomEndEvent, target: Map_2);
933
+ }
934
+
935
+ /**
936
+ * Fired when the map zoom level is about to change.
937
+ *
938
+ * Cancelling the event will prevent the user action.
939
+ */
940
+ export declare class ZoomStartEvent extends PreventableEvent implements MapZoomStartEvent {
941
+ /**
942
+ * The source DOM event instance
943
+ */
944
+ originalEvent: any;
945
+ /**
946
+ * @hidden
947
+ */
948
+ constructor(e: MapZoomStartEvent, target: Map_2);
949
+ }
950
+
951
+ export { }