@progress/kendo-angular-map 0.1.0

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 (90) hide show
  1. package/LICENSE.md +11 -0
  2. package/NOTICE.txt +654 -0
  3. package/README.md +31 -0
  4. package/bundles/kendo-angular-map.umd.js +5 -0
  5. package/common/collection-item.component.d.ts +39 -0
  6. package/common/collection.component.d.ts +27 -0
  7. package/common/collection.service.d.ts +31 -0
  8. package/common/configuration.service.d.ts +32 -0
  9. package/common/copy-changes.d.ts +11 -0
  10. package/common/map-instance-observer.d.ts +12 -0
  11. package/common/settings.component.d.ts +37 -0
  12. package/common/to-simple-changes.d.ts +11 -0
  13. package/esm2015/common/collection-item.component.js +59 -0
  14. package/esm2015/common/collection.component.js +51 -0
  15. package/esm2015/common/collection.service.js +33 -0
  16. package/esm2015/common/configuration.service.js +58 -0
  17. package/esm2015/common/copy-changes.js +21 -0
  18. package/esm2015/common/map-instance-observer.js +19 -0
  19. package/esm2015/common/settings.component.js +58 -0
  20. package/esm2015/common/to-simple-changes.js +18 -0
  21. package/esm2015/events/base-event.js +22 -0
  22. package/esm2015/events/before-reset-event.js +16 -0
  23. package/esm2015/events/instance-event.service.js +32 -0
  24. package/esm2015/events/map-click-event.js +18 -0
  25. package/esm2015/events/marker-activate-event.js +18 -0
  26. package/esm2015/events/marker-click-event.js +18 -0
  27. package/esm2015/events/marker-created-event.js +20 -0
  28. package/esm2015/events/pan-end-event.js +19 -0
  29. package/esm2015/events/pan-event.js +19 -0
  30. package/esm2015/events/preventable-event.js +39 -0
  31. package/esm2015/events/reset-event.js +18 -0
  32. package/esm2015/events/shape-click-event.js +19 -0
  33. package/esm2015/events/shape-created-event.js +18 -0
  34. package/esm2015/events/shape-feature-created-event.js +20 -0
  35. package/esm2015/events/shape-mouse-enter-event.js +22 -0
  36. package/esm2015/events/shape-mouse-leave-event.js +22 -0
  37. package/esm2015/events/zoom-end-event.js +17 -0
  38. package/esm2015/events/zoom-start-event.js +19 -0
  39. package/esm2015/events.js +19 -0
  40. package/esm2015/kendo-angular-map.js +8 -0
  41. package/esm2015/main.js +14 -0
  42. package/esm2015/map/bubble-layer.component.js +59 -0
  43. package/esm2015/map/layer/tooltip.component.js +35 -0
  44. package/esm2015/map/layer.component.js +57 -0
  45. package/esm2015/map/layers.component.js +36 -0
  46. package/esm2015/map/marker-layer.component.js +53 -0
  47. package/esm2015/map/shape-layer.component.js +49 -0
  48. package/esm2015/map/tile-layer.component.js +51 -0
  49. package/esm2015/map.component.js +353 -0
  50. package/esm2015/map.directives.js +25 -0
  51. package/esm2015/map.module.js +32 -0
  52. package/esm2015/package-metadata.js +15 -0
  53. package/events/base-event.d.ts +21 -0
  54. package/events/before-reset-event.d.ts +16 -0
  55. package/events/instance-event.service.d.ts +11 -0
  56. package/events/map-click-event.d.ts +24 -0
  57. package/events/marker-activate-event.d.ts +24 -0
  58. package/events/marker-click-event.d.ts +24 -0
  59. package/events/marker-created-event.d.ts +26 -0
  60. package/events/pan-end-event.d.ts +28 -0
  61. package/events/pan-event.d.ts +28 -0
  62. package/events/preventable-event.d.ts +28 -0
  63. package/events/reset-event.d.ts +18 -0
  64. package/events/shape-click-event.d.ts +29 -0
  65. package/events/shape-created-event.d.ts +25 -0
  66. package/events/shape-feature-created-event.d.ts +33 -0
  67. package/events/shape-mouse-enter-event.d.ts +32 -0
  68. package/events/shape-mouse-leave-event.d.ts +32 -0
  69. package/events/zoom-end-event.d.ts +20 -0
  70. package/events/zoom-start-event.d.ts +22 -0
  71. package/events.d.ts +19 -0
  72. package/fesm2015/kendo-angular-map.js +1240 -0
  73. package/kendo-angular-map.d.ts +9 -0
  74. package/main.d.ts +14 -0
  75. package/map/bubble-layer.component.d.ts +29 -0
  76. package/map/layer/tooltip.component.d.ts +21 -0
  77. package/map/layer.component.d.ts +35 -0
  78. package/map/layers.component.d.ts +20 -0
  79. package/map/marker-layer.component.d.ts +25 -0
  80. package/map/shape-layer.component.d.ts +24 -0
  81. package/map/tile-layer.component.d.ts +24 -0
  82. package/map.component.d.ts +214 -0
  83. package/map.directives.d.ts +16 -0
  84. package/map.module.d.ts +22 -0
  85. package/package-metadata.d.ts +9 -0
  86. package/package.json +86 -0
  87. package/schematics/collection.json +12 -0
  88. package/schematics/ngAdd/index.js +21 -0
  89. package/schematics/ngAdd/index.js.map +1 -0
  90. package/schematics/ngAdd/schema.json +28 -0
@@ -0,0 +1,53 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ChangeDetectionStrategy, Component, forwardRef, Input } from '@angular/core';
6
+ import { ConfigurationService } from '../common/configuration.service';
7
+ import { LayerComponent } from './layer.component';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "../common/configuration.service";
10
+ import * as i2 from "../common/collection.service";
11
+ import * as i3 from "@angular/platform-browser";
12
+ /**
13
+ * A vector shape layer for bubble maps.
14
+ */
15
+ export class MarkerLayerComponent extends LayerComponent {
16
+ constructor(configurationService, collectionService, sanitizer) {
17
+ super('marker', configurationService, collectionService, sanitizer);
18
+ this.configurationService = configurationService;
19
+ this.collectionService = collectionService;
20
+ this.sanitizer = sanitizer;
21
+ }
22
+ }
23
+ MarkerLayerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MarkerLayerComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.CollectionService }, { token: i3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
24
+ MarkerLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MarkerLayerComponent, selector: "kendo-map-marker-layer", inputs: { data: "data", locationField: "locationField", titleField: "titleField", shape: "shape" }, providers: [
25
+ ConfigurationService,
26
+ {
27
+ provide: LayerComponent,
28
+ useExisting: forwardRef(() => MarkerLayerComponent)
29
+ }
30
+ ], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MarkerLayerComponent, decorators: [{
32
+ type: Component,
33
+ args: [{
34
+ changeDetection: ChangeDetectionStrategy.OnPush,
35
+ providers: [
36
+ ConfigurationService,
37
+ {
38
+ provide: LayerComponent,
39
+ useExisting: forwardRef(() => MarkerLayerComponent)
40
+ }
41
+ ],
42
+ selector: 'kendo-map-marker-layer',
43
+ template: ''
44
+ }]
45
+ }], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.CollectionService }, { type: i3.DomSanitizer }]; }, propDecorators: { data: [{
46
+ type: Input
47
+ }], locationField: [{
48
+ type: Input
49
+ }], titleField: [{
50
+ type: Input
51
+ }], shape: [{
52
+ type: Input
53
+ }] } });
@@ -0,0 +1,49 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ChangeDetectionStrategy, Component, forwardRef, Input } from '@angular/core';
6
+ import { ConfigurationService } from '../common/configuration.service';
7
+ import { LayerComponent } from './layer.component';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "../common/configuration.service";
10
+ import * as i2 from "../common/collection.service";
11
+ import * as i3 from "@angular/platform-browser";
12
+ /**
13
+ * Defines a vector shape layer bound to GeoJSON data.
14
+ */
15
+ export class ShapeLayerComponent extends LayerComponent {
16
+ constructor(configurationService, collectionService, sanitizer) {
17
+ super('shape', configurationService, collectionService, sanitizer);
18
+ this.configurationService = configurationService;
19
+ this.collectionService = collectionService;
20
+ this.sanitizer = sanitizer;
21
+ }
22
+ }
23
+ ShapeLayerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShapeLayerComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.CollectionService }, { token: i3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
24
+ ShapeLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ShapeLayerComponent, selector: "kendo-map-shape-layer", inputs: { data: "data", style: "style" }, providers: [
25
+ ConfigurationService,
26
+ {
27
+ provide: LayerComponent,
28
+ useExisting: forwardRef(() => ShapeLayerComponent)
29
+ }
30
+ ], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShapeLayerComponent, decorators: [{
32
+ type: Component,
33
+ args: [{
34
+ changeDetection: ChangeDetectionStrategy.OnPush,
35
+ providers: [
36
+ ConfigurationService,
37
+ {
38
+ provide: LayerComponent,
39
+ useExisting: forwardRef(() => ShapeLayerComponent)
40
+ }
41
+ ],
42
+ selector: 'kendo-map-shape-layer',
43
+ template: ''
44
+ }]
45
+ }], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.CollectionService }, { type: i3.DomSanitizer }]; }, propDecorators: { data: [{
46
+ type: Input
47
+ }], style: [{
48
+ type: Input
49
+ }] } });
@@ -0,0 +1,51 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ChangeDetectionStrategy, Component, forwardRef, Input } from '@angular/core';
6
+ import { ConfigurationService } from '../common/configuration.service';
7
+ import { LayerComponent } from './layer.component';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "../common/configuration.service";
10
+ import * as i2 from "../common/collection.service";
11
+ import * as i3 from "@angular/platform-browser";
12
+ /**
13
+ * Defines a vector shape layer bound to GeoJSON data.
14
+ */
15
+ export class TileLayerComponent extends LayerComponent {
16
+ constructor(configurationService, collectionService, sanitizer) {
17
+ super('tile', configurationService, collectionService, sanitizer);
18
+ this.configurationService = configurationService;
19
+ this.collectionService = collectionService;
20
+ this.sanitizer = sanitizer;
21
+ }
22
+ }
23
+ TileLayerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TileLayerComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.CollectionService }, { token: i3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
24
+ TileLayerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TileLayerComponent, selector: "kendo-map-tile-layer", inputs: { tileSize: "tileSize", subdomains: "subdomains", urlTemplate: "urlTemplate" }, providers: [
25
+ ConfigurationService,
26
+ {
27
+ provide: LayerComponent,
28
+ useExisting: forwardRef(() => TileLayerComponent)
29
+ }
30
+ ], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: TileLayerComponent, decorators: [{
32
+ type: Component,
33
+ args: [{
34
+ changeDetection: ChangeDetectionStrategy.OnPush,
35
+ providers: [
36
+ ConfigurationService,
37
+ {
38
+ provide: LayerComponent,
39
+ useExisting: forwardRef(() => TileLayerComponent)
40
+ }
41
+ ],
42
+ selector: 'kendo-map-tile-layer',
43
+ template: ''
44
+ }]
45
+ }], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.CollectionService }, { type: i3.DomSanitizer }]; }, propDecorators: { tileSize: [{
46
+ type: Input
47
+ }], subdomains: [{
48
+ type: Input
49
+ }], urlTemplate: [{
50
+ type: Input
51
+ }] } });
@@ -0,0 +1,353 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
6
+ import { hasObservers, isDocumentAvailable } from '@progress/kendo-angular-common';
7
+ import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
8
+ import { Map } from '@progress/kendo-charts';
9
+ import { validatePackage } from '@progress/kendo-licensing';
10
+ import { tap } from 'rxjs/operators';
11
+ import { ConfigurationService } from './common/configuration.service';
12
+ import { copyChanges } from './common/copy-changes';
13
+ import { MapInstanceObserver } from './common/map-instance-observer';
14
+ import { InstanceEventService } from './events/instance-event.service';
15
+ import { packageMetadata } from './package-metadata';
16
+ import * as i0 from "@angular/core";
17
+ import * as i1 from "./common/configuration.service";
18
+ import * as i2 from "./events/instance-event.service";
19
+ import * as i3 from "@progress/kendo-angular-l10n";
20
+ import * as i4 from "@progress/kendo-angular-common";
21
+ /**
22
+ * A sample component
23
+ */
24
+ export class MapComponent {
25
+ constructor(configurationService, instanceEventService, element, localizationService, changeDetector, ngZone, renderer) {
26
+ this.configurationService = configurationService;
27
+ this.instanceEventService = instanceEventService;
28
+ this.element = element;
29
+ this.localizationService = localizationService;
30
+ this.changeDetector = changeDetector;
31
+ this.ngZone = ngZone;
32
+ this.renderer = renderer;
33
+ /**
34
+ * Limits the automatic resizing of the Map. Sets the maximum number of times per second
35
+ * that the component redraws its content when the size of its container changes.
36
+ * Defaults to `10`. To disable the automatic resizing, set it to `0`.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * _@Component({
41
+ * selector: 'my-app',
42
+ * template: `
43
+ * <kendo-map [resizeRateLimit]="2">
44
+ * <!-- ^^^^^^^^^^^^^^^^^^^^^^
45
+ * Will update the size of the Map up to two times a second.
46
+ * Resize the example pane or window to try it out.
47
+ * -->
48
+ * </kendo-map>
49
+ * `
50
+ * })
51
+ * export class AppComponent {
52
+ * }
53
+ * ```
54
+ */
55
+ this.resizeRateLimit = 10;
56
+ /**
57
+ * The initial zoom level.
58
+ *
59
+ * Typical web maps use zoom levels from 0 (whole world) to 19 (sub-meter features).
60
+ *
61
+ * The map size is derived from the zoom level and minScale options: `size = (2 ^ zoom) * minSize`
62
+ *
63
+ * > Map zoom rounds floating point numbers. This is done so as the majority of web maps use the whole [`zoom levels`](https://wiki.openstreetmap.org/wiki/Zoom_levels) 0 through to 19.
64
+ *
65
+ * @default 3
66
+ */
67
+ this.zoom = 3;
68
+ /**
69
+ * Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers.
70
+ */
71
+ this.beforeReset = new EventEmitter();
72
+ /**
73
+ * Fired when the user clicks on the map.
74
+ */
75
+ this.mapClick = new EventEmitter();
76
+ /**
77
+ * Fired when a marker has been displayed and has a DOM element assigned.
78
+ */
79
+ this.markerActivate = new EventEmitter();
80
+ /**
81
+ * Fired when a marker has been clicked or tapped.
82
+ */
83
+ this.markerClick = new EventEmitter();
84
+ /**
85
+ * Fired when a marker has been created and is about to be displayed.
86
+ *
87
+ * Cancelling the event will prevent the marker from being shown.
88
+ */
89
+ this.markerCreated = new EventEmitter();
90
+ /**
91
+ * Fires after the map viewport has been moved.
92
+ */
93
+ this.panEnd = new EventEmitter();
94
+ /**
95
+ * Fired while the map viewport is being moved.
96
+ */
97
+ this.pan = new EventEmitter();
98
+ /**
99
+ * Fired when the map is reset.
100
+ *
101
+ * This typically occurs on initial load and after a zoom/center change.
102
+ */
103
+ this.reset = new EventEmitter();
104
+ /**
105
+ * Fired when a shape is clicked or tapped.
106
+ */
107
+ this.shapeClick = new EventEmitter();
108
+ /**
109
+ * Fired when a shape is created, but is not rendered yet.
110
+ */
111
+ this.shapeCreated = new EventEmitter();
112
+ /**
113
+ * Fired when a [GeoJSON Feature](https://geojson.org/geojson-spec.html#feature-objects) is created on a shape layer.
114
+ */
115
+ this.shapeFeatureCreated = new EventEmitter();
116
+ /**
117
+ * Fired when the mouse enters a shape.
118
+ *
119
+ * > This event will fire reliably only for shapes that have set fill color.
120
+ * > The opacity can still be set to 0 so the shapes appear to have no fill.
121
+ */
122
+ this.shapeMouseEnter = new EventEmitter();
123
+ /**
124
+ * Fired when the mouse leaves a shape.
125
+ *
126
+ * > This event will fire reliably only for shapes that have set fill color.
127
+ * > The opacity can still be set to 0 so the shapes appear to have no fill.
128
+ */
129
+ this.shapeMouseLeave = new EventEmitter();
130
+ /**
131
+ * Fired when the map zoom level is about to change.
132
+ *
133
+ * Cancelling the event will prevent the user action.
134
+ */
135
+ this.zoomStart = new EventEmitter();
136
+ /**
137
+ * Fired when the map zoom level has changed.
138
+ */
139
+ this.zoomEnd = new EventEmitter();
140
+ this.theme = null;
141
+ this.rtl = false;
142
+ validatePackage(packageMetadata);
143
+ }
144
+ ngAfterViewInit() {
145
+ this.setDirection();
146
+ this.initConfig();
147
+ this.subscriptions = this.localizationService.changes.subscribe(() => this.setDirection());
148
+ }
149
+ ngAfterViewChecked() {
150
+ if (this.instance && this.autoResize) {
151
+ this.ngZone.runOutsideAngular(() => {
152
+ clearTimeout(this.resizeTimeout);
153
+ this.resizeTimeout = setTimeout(() => {
154
+ this.resize();
155
+ }, 0);
156
+ });
157
+ }
158
+ }
159
+ ngOnChanges(changes) {
160
+ const store = this.configurationService.store;
161
+ copyChanges(changes, store);
162
+ store.popupSettings = null;
163
+ this.configurationService.push(store);
164
+ }
165
+ /**
166
+ * Detects the size of the container and redraws the Map.
167
+ * Resizing is automatic unless you set the `resizeRateLimit` option to `0`.
168
+ */
169
+ resize() {
170
+ if (this.instance) {
171
+ //this.instance.resize();
172
+ }
173
+ }
174
+ /**
175
+ * @hidden
176
+ */
177
+ onResize() {
178
+ if (this.autoResize) {
179
+ this.resize();
180
+ }
181
+ }
182
+ get canRender() {
183
+ return isDocumentAvailable() && Boolean(this.surfaceElement);
184
+ }
185
+ get autoResize() {
186
+ return this.resizeRateLimit > 0;
187
+ }
188
+ init() {
189
+ if (!this.canRender) {
190
+ return;
191
+ }
192
+ const element = this.surfaceElement.nativeElement;
193
+ const instanceObserver = new MapInstanceObserver(this);
194
+ this.createInstance(element, instanceObserver);
195
+ }
196
+ initConfig() {
197
+ if (!isDocumentAvailable()) {
198
+ return;
199
+ }
200
+ this.ngZone.runOutsideAngular(() => {
201
+ this.optionsChange = this.configurationService.changes
202
+ .pipe(tap((result) => {
203
+ this.options = result;
204
+ }))
205
+ .subscribe(() => {
206
+ if (!this.instance) {
207
+ this.init();
208
+ return;
209
+ }
210
+ this.instance.setOptions(this.options);
211
+ });
212
+ });
213
+ }
214
+ createInstance(element, observer) {
215
+ this.instance = new Map(element, this.options, this.theme, {
216
+ observer: observer,
217
+ rtl: this.rtl,
218
+ sender: this
219
+ });
220
+ }
221
+ activeEmitter(name) {
222
+ const alias = name === 'click' ? 'mapClick' : name;
223
+ const emitter = this[alias];
224
+ if (emitter && emitter.emit && hasObservers(emitter)) {
225
+ return emitter;
226
+ }
227
+ }
228
+ trigger(name, e) {
229
+ const emitter = this.activeEmitter(name);
230
+ if (emitter) {
231
+ const args = this.instanceEventService.create(name, e, this);
232
+ this.run(() => {
233
+ emitter.emit(args);
234
+ });
235
+ return args.isDefaultPrevented && args.isDefaultPrevented();
236
+ }
237
+ }
238
+ run(callback, inZone = true, detectChanges) {
239
+ if (inZone) {
240
+ if (detectChanges) {
241
+ this.changeDetector.markForCheck();
242
+ }
243
+ this.ngZone.run(callback);
244
+ }
245
+ else {
246
+ callback();
247
+ if (detectChanges) {
248
+ this.detectChanges();
249
+ }
250
+ }
251
+ }
252
+ detectChanges() {
253
+ if (!this.destroyed) {
254
+ this.changeDetector.detectChanges();
255
+ }
256
+ }
257
+ setDirection() {
258
+ this.rtl = this.isRTL;
259
+ if (this.element) {
260
+ this.renderer.setAttribute(this.element.nativeElement, 'dir', this.rtl ? 'rtl' : 'ltr');
261
+ }
262
+ }
263
+ get isRTL() {
264
+ return Boolean(this.localizationService.rtl);
265
+ }
266
+ }
267
+ MapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.InstanceEventService }, { token: i0.ElementRef }, { token: i3.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
268
+ MapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MapComponent, selector: "kendo-map", inputs: { resizeRateLimit: "resizeRateLimit", center: "center", controls: "controls", minZoom: "minZoom", maxZoom: "maxZoom", minSize: "minSize", pannable: "pannable", wraparound: "wraparound", zoom: "zoom", zoomable: "zoomable" }, outputs: { beforeReset: "beforeReset", mapClick: "mapClick", markerActivate: "markerActivate", markerClick: "markerClick", markerCreated: "markerCreated", panEnd: "panEnd", pan: "pan", reset: "reset", shapeClick: "shapeClick", shapeCreated: "shapeCreated", shapeFeatureCreated: "shapeFeatureCreated", shapeMouseEnter: "shapeMouseEnter", shapeMouseLeave: "shapeMouseLeave", zoomStart: "zoomStart", zoomEnd: "zoomEnd" }, providers: [
269
+ ConfigurationService,
270
+ InstanceEventService,
271
+ LocalizationService,
272
+ {
273
+ provide: L10N_PREFIX,
274
+ useValue: 'kendo.map'
275
+ }
276
+ ], viewQueries: [{ propertyName: "surfaceElement", first: true, predicate: ["surface"], descendants: true, static: true }], exportAs: ["kendoChart"], usesOnChanges: true, ngImport: i0, template: `
277
+ <div #surface></div>
278
+ <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
279
+ `, isInline: true, components: [{ type: i4.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
280
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapComponent, decorators: [{
281
+ type: Component,
282
+ args: [{
283
+ selector: 'kendo-map',
284
+ changeDetection: ChangeDetectionStrategy.OnPush,
285
+ exportAs: 'kendoChart',
286
+ providers: [
287
+ ConfigurationService,
288
+ InstanceEventService,
289
+ LocalizationService,
290
+ {
291
+ provide: L10N_PREFIX,
292
+ useValue: 'kendo.map'
293
+ }
294
+ ],
295
+ template: `
296
+ <div #surface></div>
297
+ <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
298
+ `
299
+ }]
300
+ }], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.InstanceEventService }, { type: i0.ElementRef }, { type: i3.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.Renderer2 }]; }, propDecorators: { resizeRateLimit: [{
301
+ type: Input
302
+ }], center: [{
303
+ type: Input
304
+ }], controls: [{
305
+ type: Input
306
+ }], minZoom: [{
307
+ type: Input
308
+ }], maxZoom: [{
309
+ type: Input
310
+ }], minSize: [{
311
+ type: Input
312
+ }], pannable: [{
313
+ type: Input
314
+ }], wraparound: [{
315
+ type: Input
316
+ }], zoom: [{
317
+ type: Input
318
+ }], zoomable: [{
319
+ type: Input
320
+ }], beforeReset: [{
321
+ type: Output
322
+ }], mapClick: [{
323
+ type: Output
324
+ }], markerActivate: [{
325
+ type: Output
326
+ }], markerClick: [{
327
+ type: Output
328
+ }], markerCreated: [{
329
+ type: Output
330
+ }], panEnd: [{
331
+ type: Output
332
+ }], pan: [{
333
+ type: Output
334
+ }], reset: [{
335
+ type: Output
336
+ }], shapeClick: [{
337
+ type: Output
338
+ }], shapeCreated: [{
339
+ type: Output
340
+ }], shapeFeatureCreated: [{
341
+ type: Output
342
+ }], shapeMouseEnter: [{
343
+ type: Output
344
+ }], shapeMouseLeave: [{
345
+ type: Output
346
+ }], zoomStart: [{
347
+ type: Output
348
+ }], zoomEnd: [{
349
+ type: Output
350
+ }], surfaceElement: [{
351
+ type: ViewChild,
352
+ args: ['surface', { static: true }]
353
+ }] } });
@@ -0,0 +1,25 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { MapComponent } from './map.component';
6
+ import { BubbleLayerComponent } from './map/bubble-layer.component';
7
+ import { LayerTooltipComponent } from './map/layer/tooltip.component';
8
+ import { LayersComponent } from './map/layers.component';
9
+ import { MarkerLayerComponent } from './map/marker-layer.component';
10
+ import { ShapeLayerComponent } from './map/shape-layer.component';
11
+ import { TileLayerComponent } from './map/tile-layer.component';
12
+ // Re-exports
13
+ export { MapComponent, LayersComponent, BubbleLayerComponent, MarkerLayerComponent, ShapeLayerComponent, TileLayerComponent, LayerTooltipComponent };
14
+ /**
15
+ * @hidden
16
+ */
17
+ export const MAP_DIRECTIVES = [
18
+ MapComponent,
19
+ LayersComponent,
20
+ BubbleLayerComponent,
21
+ MarkerLayerComponent,
22
+ ShapeLayerComponent,
23
+ TileLayerComponent,
24
+ LayerTooltipComponent
25
+ ];
@@ -0,0 +1,32 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { CommonModule } from '@angular/common';
6
+ import { NgModule } from '@angular/core';
7
+ import { ResizeSensorModule } from '@progress/kendo-angular-common';
8
+ import { MAP_DIRECTIVES } from './map.directives';
9
+ import * as i0 from "@angular/core";
10
+ import * as i1 from "./map.component";
11
+ import * as i2 from "./map/layers.component";
12
+ import * as i3 from "./map/bubble-layer.component";
13
+ import * as i4 from "./map/marker-layer.component";
14
+ import * as i5 from "./map/shape-layer.component";
15
+ import * as i6 from "./map/tile-layer.component";
16
+ import * as i7 from "./map/layer/tooltip.component";
17
+ /**
18
+ * Sample module
19
+ */
20
+ export class MapModule {
21
+ }
22
+ MapModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
23
+ MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, declarations: [i1.MapComponent, i2.LayersComponent, i3.BubbleLayerComponent, i4.MarkerLayerComponent, i5.ShapeLayerComponent, i6.TileLayerComponent, i7.LayerTooltipComponent], imports: [CommonModule, ResizeSensorModule], exports: [i1.MapComponent, i2.LayersComponent, i3.BubbleLayerComponent, i4.MarkerLayerComponent, i5.ShapeLayerComponent, i6.TileLayerComponent, i7.LayerTooltipComponent] });
24
+ MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, imports: [[CommonModule, ResizeSensorModule]] });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MapModule, decorators: [{
26
+ type: NgModule,
27
+ args: [{
28
+ declarations: [MAP_DIRECTIVES],
29
+ imports: [CommonModule, ResizeSensorModule],
30
+ exports: [MAP_DIRECTIVES]
31
+ }]
32
+ }] });
@@ -0,0 +1,15 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export const packageMetadata = {
9
+ name: '@progress/kendo-angular-map',
10
+ productName: 'Kendo UI for Angular',
11
+ productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
+ publishDate: 1651675099,
13
+ version: '',
14
+ licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
+ };
@@ -0,0 +1,21 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import type { MapComponent } from '../map.component';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * @hidden
9
+ */
10
+ export declare abstract class BaseEvent {
11
+ /**
12
+ * The `MapComponent` that triggered the event.
13
+ */
14
+ sender: MapComponent;
15
+ /**
16
+ * @hidden
17
+ */
18
+ constructor(sender: MapComponent);
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseEvent, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseEvent, never, never, {}, {}, never>;
21
+ }
@@ -0,0 +1,16 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { MapBeforeResetEvent } from '@progress/kendo-charts';
6
+ import { MapComponent } from '../map.component';
7
+ import { BaseEvent } from './base-event';
8
+ /**
9
+ * Fired immediately before the map is reset. This event is typically used for cleanup by layer implementers.
10
+ */
11
+ export declare class BeforeResetEvent extends BaseEvent implements MapBeforeResetEvent {
12
+ /**
13
+ * @hidden
14
+ */
15
+ constructor(_: any, sender: MapComponent);
16
+ }
@@ -0,0 +1,11 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { MapComponent } from '../map.component';
6
+ /**
7
+ * @hidden
8
+ */
9
+ export declare class InstanceEventService {
10
+ create(name: string, args: any, sender: MapComponent): any;
11
+ }
@@ -0,0 +1,24 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Location, MapClickEvent as BaseMapClickEvent } from '@progress/kendo-charts';
6
+ import { MapComponent } from '../map.component';
7
+ import { BaseEvent } from './base-event';
8
+ /**
9
+ * Fired when the user clicks on the map.
10
+ */
11
+ export declare class MapClickEvent extends BaseEvent implements BaseMapClickEvent {
12
+ /**
13
+ * The location of the clicked point.
14
+ */
15
+ location: Location;
16
+ /**
17
+ * The source DOM event instance
18
+ */
19
+ originalEvent: any;
20
+ /**
21
+ * @hidden
22
+ */
23
+ constructor(e: BaseMapClickEvent, sender: MapComponent);
24
+ }