@progress/kendo-angular-map 13.6.0-develop.9 → 14.0.0-develop.10

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.
@@ -5,8 +5,11 @@
5
5
  import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, NgZone, Output, Renderer2, ViewChild } from '@angular/core';
6
6
  import { hasObservers, isDocumentAvailable } from '@progress/kendo-angular-common';
7
7
  import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
8
+ import { IconsService } from '@progress/kendo-angular-icons';
9
+ import { mapMarkerTargetIcon, mapMarkerIcon, plusIcon, minusIcon, caretAltUpIcon, caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
8
10
  import { Map } from '@progress/kendo-charts';
9
11
  import { validatePackage } from '@progress/kendo-licensing';
12
+ import { combineLatest } from 'rxjs';
10
13
  import { tap } from 'rxjs/operators';
11
14
  import { ConfigurationService } from './common/configuration.service';
12
15
  import { copyChanges } from './common/copy-changes';
@@ -20,13 +23,25 @@ import * as i0 from "@angular/core";
20
23
  import * as i1 from "./common/configuration.service";
21
24
  import * as i2 from "./events/instance-event.service";
22
25
  import * as i3 from "@progress/kendo-angular-l10n";
23
- import * as i4 from "./tooltip/tooltip-popup.component";
24
- import * as i5 from "@progress/kendo-angular-common";
26
+ import * as i4 from "@progress/kendo-angular-icons";
27
+ import * as i5 from "./tooltip/tooltip-popup.component";
28
+ import * as i6 from "@progress/kendo-angular-common";
29
+ // Static SVG Icons used by the Map
30
+ const svgIcons = {
31
+ mapMarkerTargetIcon,
32
+ mapMarkerIcon,
33
+ plusIcon,
34
+ minusIcon,
35
+ caretAltUpIcon,
36
+ caretAltDownIcon,
37
+ caretAltLeftIcon,
38
+ caretAltRightIcon
39
+ };
25
40
  /**
26
41
  * A sample component
27
42
  */
28
43
  export class MapComponent {
29
- constructor(configurationService, instanceEventService, element, localizationService, changeDetector, ngZone, renderer) {
44
+ constructor(configurationService, instanceEventService, element, localizationService, changeDetector, ngZone, renderer, iconsService) {
30
45
  this.configurationService = configurationService;
31
46
  this.instanceEventService = instanceEventService;
32
47
  this.element = element;
@@ -34,6 +49,7 @@ export class MapComponent {
34
49
  this.changeDetector = changeDetector;
35
50
  this.ngZone = ngZone;
36
51
  this.renderer = renderer;
52
+ this.iconsService = iconsService;
37
53
  /**
38
54
  * Limits the automatic resizing of the Map. Sets the maximum number of times per second
39
55
  * that the component redraws its content when the size of its container changes.
@@ -348,9 +364,15 @@ export class MapComponent {
348
364
  return;
349
365
  }
350
366
  this.ngZone.runOutsideAngular(() => {
351
- this.optionsChange = this.configurationService.changes
352
- .pipe(tap((result) => {
353
- this.options = result;
367
+ this.optionsChange = combineLatest([this.configurationService.changes, this.iconsService.changes])
368
+ .pipe(tap(([options, iconSettings]) => {
369
+ this.options = {
370
+ ...options,
371
+ icons: {
372
+ ...iconSettings,
373
+ svgIcons
374
+ }
375
+ };
354
376
  }))
355
377
  .subscribe(() => {
356
378
  if (!this.instance) {
@@ -457,7 +479,7 @@ export class MapComponent {
457
479
  }
458
480
  }
459
481
  }
460
- MapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", 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 });
482
+ MapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", 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 }, { token: i4.IconsService }], target: i0.ɵɵFactoryTarget.Component });
461
483
  MapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MapComponent, selector: "kendo-map", inputs: { resizeRateLimit: "resizeRateLimit", center: "center", controls: "controls", minZoom: "minZoom", maxZoom: "maxZoom", minSize: "minSize", pannable: "pannable", popupSettings: "popupSettings", 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", centerChange: "centerChange", zoomChange: "zoomChange" }, providers: [
462
484
  ConfigurationService,
463
485
  InstanceEventService,
@@ -472,7 +494,7 @@ MapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
472
494
  <kendo-map-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">
473
495
  </kendo-map-tooltip-popup>
474
496
  <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
475
- `, isInline: true, components: [{ type: i4.TooltipPopupComponent, selector: "kendo-map-tooltip-popup", inputs: ["animate", "classNames", "popupSettings", "wrapperClass"], outputs: ["leave"] }, { type: i5.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
497
+ `, isInline: true, components: [{ type: i5.TooltipPopupComponent, selector: "kendo-map-tooltip-popup", inputs: ["animate", "classNames", "popupSettings", "wrapperClass"], outputs: ["leave"] }, { type: i6.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
476
498
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapComponent, decorators: [{
477
499
  type: Component,
478
500
  args: [{
@@ -496,7 +518,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
496
518
  <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
497
519
  `
498
520
  }]
499
- }], 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: [{
521
+ }], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.InstanceEventService }, { type: i0.ElementRef }, { type: i3.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i4.IconsService }]; }, propDecorators: { resizeRateLimit: [{
500
522
  type: Input
501
523
  }], center: [{
502
524
  type: Input
@@ -6,6 +6,7 @@ import { CommonModule } from '@angular/common';
6
6
  import { NgModule } from '@angular/core';
7
7
  import { ResizeSensorModule } from '@progress/kendo-angular-common';
8
8
  import { MAP_DIRECTIVES } from './map.directives';
9
+ import { IconsModule } from '@progress/kendo-angular-icons';
9
10
  import * as i0 from "@angular/core";
10
11
  import * as i1 from "./map/bubble-layer.component";
11
12
  import * as i2 from "./tooltip/bubble-tooltip.component";
@@ -44,13 +45,13 @@ import * as i14 from "./tooltip/tooltip-popup.component";
44
45
  export class MapModule {
45
46
  }
46
47
  MapModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
47
- MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, declarations: [i1.BubbleLayerComponent, i2.BubbleTooltipComponent, i3.BubbleTooltipTemplateDirective, i4.LayerTooltipComponent, i5.LayersComponent, i6.MapComponent, i7.MarkerLayerComponent, i8.MarkerTooltipComponent, i9.MarkerTooltipTemplateDirective, i10.ShapeLayerComponent, i11.ShapeTooltipComponent, i12.ShapeTooltipTemplateDirective, i13.TileLayerComponent, i14.TooltipPopupComponent], imports: [CommonModule, ResizeSensorModule], exports: [i1.BubbleLayerComponent, i2.BubbleTooltipComponent, i3.BubbleTooltipTemplateDirective, i4.LayerTooltipComponent, i5.LayersComponent, i6.MapComponent, i7.MarkerLayerComponent, i8.MarkerTooltipComponent, i9.MarkerTooltipTemplateDirective, i10.ShapeLayerComponent, i11.ShapeTooltipComponent, i12.ShapeTooltipTemplateDirective, i13.TileLayerComponent, i14.TooltipPopupComponent] });
48
- MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, imports: [[CommonModule, ResizeSensorModule]] });
48
+ MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, declarations: [i1.BubbleLayerComponent, i2.BubbleTooltipComponent, i3.BubbleTooltipTemplateDirective, i4.LayerTooltipComponent, i5.LayersComponent, i6.MapComponent, i7.MarkerLayerComponent, i8.MarkerTooltipComponent, i9.MarkerTooltipTemplateDirective, i10.ShapeLayerComponent, i11.ShapeTooltipComponent, i12.ShapeTooltipTemplateDirective, i13.TileLayerComponent, i14.TooltipPopupComponent], imports: [CommonModule, ResizeSensorModule, IconsModule], exports: [i1.BubbleLayerComponent, i2.BubbleTooltipComponent, i3.BubbleTooltipTemplateDirective, i4.LayerTooltipComponent, i5.LayersComponent, i6.MapComponent, i7.MarkerLayerComponent, i8.MarkerTooltipComponent, i9.MarkerTooltipTemplateDirective, i10.ShapeLayerComponent, i11.ShapeTooltipComponent, i12.ShapeTooltipTemplateDirective, i13.TileLayerComponent, i14.TooltipPopupComponent] });
49
+ MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, imports: [[CommonModule, ResizeSensorModule, IconsModule]] });
49
50
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, decorators: [{
50
51
  type: NgModule,
51
52
  args: [{
52
53
  declarations: [MAP_DIRECTIVES],
53
- imports: [CommonModule, ResizeSensorModule],
54
+ imports: [CommonModule, ResizeSensorModule, IconsModule],
54
55
  exports: [MAP_DIRECTIVES]
55
56
  }]
56
57
  }] });
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-map',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1695903294,
13
- version: '13.6.0-develop.9',
12
+ publishDate: 1696599240,
13
+ version: '14.0.0-develop.10',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -4,12 +4,13 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from '@angular/core';
6
6
  import { Injectable, SimpleChange, Directive, TemplateRef, Component, ChangeDetectionStrategy, ContentChild, SecurityContext, Input, forwardRef, ElementRef, EventEmitter, ViewChild, Output, ContentChildren, Optional, NgModule } from '@angular/core';
7
- import { BehaviorSubject, Subject } from 'rxjs';
7
+ import { BehaviorSubject, Subject, combineLatest } from 'rxjs';
8
8
  import * as i3 from '@angular/platform-browser';
9
- import * as i5 from '@progress/kendo-angular-common';
9
+ import * as i6 from '@progress/kendo-angular-common';
10
10
  import { isDocumentAvailable, hasObservers, ResizeSensorModule } from '@progress/kendo-angular-common';
11
11
  import * as i3$1 from '@progress/kendo-angular-l10n';
12
12
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
13
+ import { mapMarkerTargetIcon, mapMarkerIcon, plusIcon, minusIcon, caretAltUpIcon, caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
13
14
  import { InstanceObserver, Map } from '@progress/kendo-charts';
14
15
  export { Extent, Location } from '@progress/kendo-charts';
15
16
  import { validatePackage } from '@progress/kendo-licensing';
@@ -18,6 +19,8 @@ import * as i1 from '@progress/kendo-angular-popup';
18
19
  import { PopupService, POPUP_CONTAINER } from '@progress/kendo-angular-popup';
19
20
  import * as i4 from '@angular/common';
20
21
  import { CommonModule } from '@angular/common';
22
+ import * as i4$1 from '@progress/kendo-angular-icons';
23
+ import { IconsModule } from '@progress/kendo-angular-icons';
21
24
 
22
25
  /**
23
26
  * @hidden
@@ -691,8 +694,8 @@ const packageMetadata = {
691
694
  name: '@progress/kendo-angular-map',
692
695
  productName: 'Kendo UI for Angular',
693
696
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
694
- publishDate: 1695903294,
695
- version: '13.6.0-develop.9',
697
+ publishDate: 1696599240,
698
+ version: '14.0.0-develop.10',
696
699
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
697
700
  };
698
701
 
@@ -914,11 +917,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
914
917
  type: Output
915
918
  }] } });
916
919
 
920
+ // Static SVG Icons used by the Map
921
+ const svgIcons = {
922
+ mapMarkerTargetIcon,
923
+ mapMarkerIcon,
924
+ plusIcon,
925
+ minusIcon,
926
+ caretAltUpIcon,
927
+ caretAltDownIcon,
928
+ caretAltLeftIcon,
929
+ caretAltRightIcon
930
+ };
917
931
  /**
918
932
  * A sample component
919
933
  */
920
934
  class MapComponent {
921
- constructor(configurationService, instanceEventService, element, localizationService, changeDetector, ngZone, renderer) {
935
+ constructor(configurationService, instanceEventService, element, localizationService, changeDetector, ngZone, renderer, iconsService) {
922
936
  this.configurationService = configurationService;
923
937
  this.instanceEventService = instanceEventService;
924
938
  this.element = element;
@@ -926,6 +940,7 @@ class MapComponent {
926
940
  this.changeDetector = changeDetector;
927
941
  this.ngZone = ngZone;
928
942
  this.renderer = renderer;
943
+ this.iconsService = iconsService;
929
944
  /**
930
945
  * Limits the automatic resizing of the Map. Sets the maximum number of times per second
931
946
  * that the component redraws its content when the size of its container changes.
@@ -1252,9 +1267,9 @@ class MapComponent {
1252
1267
  return;
1253
1268
  }
1254
1269
  this.ngZone.runOutsideAngular(() => {
1255
- this.optionsChange = this.configurationService.changes
1256
- .pipe(tap((result) => {
1257
- this.options = result;
1270
+ this.optionsChange = combineLatest([this.configurationService.changes, this.iconsService.changes])
1271
+ .pipe(tap(([options, iconSettings]) => {
1272
+ this.options = Object.assign(Object.assign({}, options), { icons: Object.assign(Object.assign({}, iconSettings), { svgIcons }) });
1258
1273
  }))
1259
1274
  .subscribe(() => {
1260
1275
  if (!this.instance) {
@@ -1361,7 +1376,7 @@ class MapComponent {
1361
1376
  }
1362
1377
  }
1363
1378
  }
1364
- MapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapComponent, deps: [{ token: ConfigurationService }, { token: InstanceEventService }, { token: i0.ElementRef }, { token: i3$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1379
+ MapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapComponent, deps: [{ token: ConfigurationService }, { token: InstanceEventService }, { token: i0.ElementRef }, { token: i3$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i4$1.IconsService }], target: i0.ɵɵFactoryTarget.Component });
1365
1380
  MapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MapComponent, selector: "kendo-map", inputs: { resizeRateLimit: "resizeRateLimit", center: "center", controls: "controls", minZoom: "minZoom", maxZoom: "maxZoom", minSize: "minSize", pannable: "pannable", popupSettings: "popupSettings", 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", centerChange: "centerChange", zoomChange: "zoomChange" }, providers: [
1366
1381
  ConfigurationService,
1367
1382
  InstanceEventService,
@@ -1376,7 +1391,7 @@ MapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
1376
1391
  <kendo-map-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">
1377
1392
  </kendo-map-tooltip-popup>
1378
1393
  <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
1379
- `, isInline: true, components: [{ type: TooltipPopupComponent, selector: "kendo-map-tooltip-popup", inputs: ["animate", "classNames", "popupSettings", "wrapperClass"], outputs: ["leave"] }, { type: i5.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1394
+ `, isInline: true, components: [{ type: TooltipPopupComponent, selector: "kendo-map-tooltip-popup", inputs: ["animate", "classNames", "popupSettings", "wrapperClass"], outputs: ["leave"] }, { type: i6.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1380
1395
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapComponent, decorators: [{
1381
1396
  type: Component,
1382
1397
  args: [{
@@ -1400,7 +1415,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1400
1415
  <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
1401
1416
  `
1402
1417
  }]
1403
- }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: InstanceEventService }, { type: i0.ElementRef }, { type: i3$1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.Renderer2 }]; }, propDecorators: { resizeRateLimit: [{
1418
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: InstanceEventService }, { type: i0.ElementRef }, { type: i3$1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i4$1.IconsService }]; }, propDecorators: { resizeRateLimit: [{
1404
1419
  type: Input
1405
1420
  }], center: [{
1406
1421
  type: Input
@@ -1871,13 +1886,13 @@ const MAP_DIRECTIVES = [
1871
1886
  class MapModule {
1872
1887
  }
1873
1888
  MapModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1874
- MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, declarations: [BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayerTooltipComponent, LayersComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent, TooltipPopupComponent], imports: [CommonModule, ResizeSensorModule], exports: [BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayerTooltipComponent, LayersComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent, TooltipPopupComponent] });
1875
- MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, imports: [[CommonModule, ResizeSensorModule]] });
1889
+ MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, declarations: [BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayerTooltipComponent, LayersComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent, TooltipPopupComponent], imports: [CommonModule, ResizeSensorModule, IconsModule], exports: [BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayerTooltipComponent, LayersComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent, TooltipPopupComponent] });
1890
+ MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, imports: [[CommonModule, ResizeSensorModule, IconsModule]] });
1876
1891
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, decorators: [{
1877
1892
  type: NgModule,
1878
1893
  args: [{
1879
1894
  declarations: [MAP_DIRECTIVES],
1880
- imports: [CommonModule, ResizeSensorModule],
1895
+ imports: [CommonModule, ResizeSensorModule, IconsModule],
1881
1896
  exports: [MAP_DIRECTIVES]
1882
1897
  }]
1883
1898
  }] });
@@ -5,11 +5,14 @@
5
5
  import * as i0 from '@angular/core';
6
6
  import { Injectable, SimpleChange, Directive, TemplateRef, Component, ChangeDetectionStrategy, ContentChild, SecurityContext, Input, forwardRef, ElementRef, EventEmitter, ViewChild, Output, ContentChildren, Optional, NgModule } from '@angular/core';
7
7
  import * as i3 from '@angular/platform-browser';
8
- import { Subject, BehaviorSubject } from 'rxjs';
9
- import * as i5 from '@progress/kendo-angular-common';
8
+ import { Subject, BehaviorSubject, combineLatest } from 'rxjs';
9
+ import * as i6 from '@progress/kendo-angular-common';
10
10
  import { isDocumentAvailable, hasObservers, ResizeSensorModule } from '@progress/kendo-angular-common';
11
11
  import * as i3$1 from '@progress/kendo-angular-l10n';
12
12
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
13
+ import * as i4$1 from '@progress/kendo-angular-icons';
14
+ import { IconsModule } from '@progress/kendo-angular-icons';
15
+ import { mapMarkerTargetIcon, mapMarkerIcon, plusIcon, minusIcon, caretAltUpIcon, caretAltDownIcon, caretAltLeftIcon, caretAltRightIcon } from '@progress/kendo-svg-icons';
13
16
  import { InstanceObserver, Map } from '@progress/kendo-charts';
14
17
  export { Extent, Location } from '@progress/kendo-charts';
15
18
  import { validatePackage } from '@progress/kendo-licensing';
@@ -691,8 +694,8 @@ const packageMetadata = {
691
694
  name: '@progress/kendo-angular-map',
692
695
  productName: 'Kendo UI for Angular',
693
696
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
694
- publishDate: 1695903294,
695
- version: '13.6.0-develop.9',
697
+ publishDate: 1696599240,
698
+ version: '14.0.0-develop.10',
696
699
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
697
700
  };
698
701
 
@@ -914,11 +917,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
914
917
  type: Output
915
918
  }] } });
916
919
 
920
+ // Static SVG Icons used by the Map
921
+ const svgIcons = {
922
+ mapMarkerTargetIcon,
923
+ mapMarkerIcon,
924
+ plusIcon,
925
+ minusIcon,
926
+ caretAltUpIcon,
927
+ caretAltDownIcon,
928
+ caretAltLeftIcon,
929
+ caretAltRightIcon
930
+ };
917
931
  /**
918
932
  * A sample component
919
933
  */
920
934
  class MapComponent {
921
- constructor(configurationService, instanceEventService, element, localizationService, changeDetector, ngZone, renderer) {
935
+ constructor(configurationService, instanceEventService, element, localizationService, changeDetector, ngZone, renderer, iconsService) {
922
936
  this.configurationService = configurationService;
923
937
  this.instanceEventService = instanceEventService;
924
938
  this.element = element;
@@ -926,6 +940,7 @@ class MapComponent {
926
940
  this.changeDetector = changeDetector;
927
941
  this.ngZone = ngZone;
928
942
  this.renderer = renderer;
943
+ this.iconsService = iconsService;
929
944
  /**
930
945
  * Limits the automatic resizing of the Map. Sets the maximum number of times per second
931
946
  * that the component redraws its content when the size of its container changes.
@@ -1240,9 +1255,15 @@ class MapComponent {
1240
1255
  return;
1241
1256
  }
1242
1257
  this.ngZone.runOutsideAngular(() => {
1243
- this.optionsChange = this.configurationService.changes
1244
- .pipe(tap((result) => {
1245
- this.options = result;
1258
+ this.optionsChange = combineLatest([this.configurationService.changes, this.iconsService.changes])
1259
+ .pipe(tap(([options, iconSettings]) => {
1260
+ this.options = {
1261
+ ...options,
1262
+ icons: {
1263
+ ...iconSettings,
1264
+ svgIcons
1265
+ }
1266
+ };
1246
1267
  }))
1247
1268
  .subscribe(() => {
1248
1269
  if (!this.instance) {
@@ -1349,7 +1370,7 @@ class MapComponent {
1349
1370
  }
1350
1371
  }
1351
1372
  }
1352
- MapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapComponent, deps: [{ token: ConfigurationService }, { token: InstanceEventService }, { token: i0.ElementRef }, { token: i3$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1373
+ MapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapComponent, deps: [{ token: ConfigurationService }, { token: InstanceEventService }, { token: i0.ElementRef }, { token: i3$1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i4$1.IconsService }], target: i0.ɵɵFactoryTarget.Component });
1353
1374
  MapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: MapComponent, selector: "kendo-map", inputs: { resizeRateLimit: "resizeRateLimit", center: "center", controls: "controls", minZoom: "minZoom", maxZoom: "maxZoom", minSize: "minSize", pannable: "pannable", popupSettings: "popupSettings", 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", centerChange: "centerChange", zoomChange: "zoomChange" }, providers: [
1354
1375
  ConfigurationService,
1355
1376
  InstanceEventService,
@@ -1364,7 +1385,7 @@ MapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version:
1364
1385
  <kendo-map-tooltip-popup (leave)="tooltipMouseleave($event)" [popupSettings]="popupSettings">
1365
1386
  </kendo-map-tooltip-popup>
1366
1387
  <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
1367
- `, isInline: true, components: [{ type: TooltipPopupComponent, selector: "kendo-map-tooltip-popup", inputs: ["animate", "classNames", "popupSettings", "wrapperClass"], outputs: ["leave"] }, { type: i5.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1388
+ `, isInline: true, components: [{ type: TooltipPopupComponent, selector: "kendo-map-tooltip-popup", inputs: ["animate", "classNames", "popupSettings", "wrapperClass"], outputs: ["leave"] }, { type: i6.ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1368
1389
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapComponent, decorators: [{
1369
1390
  type: Component,
1370
1391
  args: [{
@@ -1388,7 +1409,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
1388
1409
  <kendo-resize-sensor (resize)="onResize()" [rateLimit]="resizeRateLimit"></kendo-resize-sensor>
1389
1410
  `
1390
1411
  }]
1391
- }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: InstanceEventService }, { type: i0.ElementRef }, { type: i3$1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.Renderer2 }]; }, propDecorators: { resizeRateLimit: [{
1412
+ }], ctorParameters: function () { return [{ type: ConfigurationService }, { type: InstanceEventService }, { type: i0.ElementRef }, { type: i3$1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i4$1.IconsService }]; }, propDecorators: { resizeRateLimit: [{
1392
1413
  type: Input
1393
1414
  }], center: [{
1394
1415
  type: Input
@@ -1850,13 +1871,13 @@ const MAP_DIRECTIVES = [
1850
1871
  class MapModule {
1851
1872
  }
1852
1873
  MapModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1853
- MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, declarations: [BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayerTooltipComponent, LayersComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent, TooltipPopupComponent], imports: [CommonModule, ResizeSensorModule], exports: [BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayerTooltipComponent, LayersComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent, TooltipPopupComponent] });
1854
- MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, imports: [[CommonModule, ResizeSensorModule]] });
1874
+ MapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, declarations: [BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayerTooltipComponent, LayersComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent, TooltipPopupComponent], imports: [CommonModule, ResizeSensorModule, IconsModule], exports: [BubbleLayerComponent, BubbleTooltipComponent, BubbleTooltipTemplateDirective, LayerTooltipComponent, LayersComponent, MapComponent, MarkerLayerComponent, MarkerTooltipComponent, MarkerTooltipTemplateDirective, ShapeLayerComponent, ShapeTooltipComponent, ShapeTooltipTemplateDirective, TileLayerComponent, TooltipPopupComponent] });
1875
+ MapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, imports: [[CommonModule, ResizeSensorModule, IconsModule]] });
1855
1876
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MapModule, decorators: [{
1856
1877
  type: NgModule,
1857
1878
  args: [{
1858
1879
  declarations: [MAP_DIRECTIVES],
1859
- imports: [CommonModule, ResizeSensorModule],
1880
+ imports: [CommonModule, ResizeSensorModule, IconsModule],
1860
1881
  exports: [MAP_DIRECTIVES]
1861
1882
  }]
1862
1883
  }] });
@@ -5,6 +5,7 @@
5
5
  import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChange } from '@angular/core';
6
6
  import { LocalizationService } from '@progress/kendo-angular-l10n';
7
7
  import { PopupSettings } from '@progress/kendo-angular-popup';
8
+ import { IconSettings, IconsService } from '@progress/kendo-angular-icons';
8
9
  import { Extent, Location, Map, MapControls, MapLayer } from '@progress/kendo-charts';
9
10
  import { geometry } from '@progress/kendo-drawing';
10
11
  import { Subscription } from 'rxjs';
@@ -25,6 +26,7 @@ export declare class MapComponent implements AfterViewInit, AfterViewChecked, On
25
26
  protected changeDetector: ChangeDetectorRef;
26
27
  protected ngZone: NgZone;
27
28
  protected renderer: Renderer2;
29
+ protected iconsService: IconsService;
28
30
  /**
29
31
  * Limits the automatic resizing of the Map. Sets the maximum number of times per second
30
32
  * that the component redraws its content when the size of its container changes.
@@ -200,7 +202,8 @@ export declare class MapComponent implements AfterViewInit, AfterViewChecked, On
200
202
  protected subscriptions: Subscription;
201
203
  protected optionsChange: Subscription;
202
204
  protected domSubscriptions: () => void;
203
- constructor(configurationService: ConfigurationService, instanceEventService: InstanceEventService, element: ElementRef, localizationService: LocalizationService, changeDetector: ChangeDetectorRef, ngZone: NgZone, renderer: Renderer2);
205
+ protected iconSettings: IconSettings;
206
+ constructor(configurationService: ConfigurationService, instanceEventService: InstanceEventService, element: ElementRef, localizationService: LocalizationService, changeDetector: ChangeDetectorRef, ngZone: NgZone, renderer: Renderer2, iconsService: IconsService);
204
207
  ngAfterViewInit(): void;
205
208
  ngAfterViewChecked(): void;
206
209
  ngOnChanges(changes: {
package/map.module.d.ts CHANGED
@@ -19,6 +19,7 @@ import * as i13 from "./map/tile-layer.component";
19
19
  import * as i14 from "./tooltip/tooltip-popup.component";
20
20
  import * as i15 from "@angular/common";
21
21
  import * as i16 from "@progress/kendo-angular-common";
22
+ import * as i17 from "@progress/kendo-angular-icons";
22
23
  /**
23
24
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
24
25
  * definition for the Map component.
@@ -41,6 +42,6 @@ import * as i16 from "@progress/kendo-angular-common";
41
42
  */
42
43
  export declare class MapModule {
43
44
  static ɵfac: i0.ɵɵFactoryDeclaration<MapModule, never>;
44
- static ɵmod: i0.ɵɵNgModuleDeclaration<MapModule, [typeof i1.BubbleLayerComponent, typeof i2.BubbleTooltipComponent, typeof i3.BubbleTooltipTemplateDirective, typeof i4.LayerTooltipComponent, typeof i5.LayersComponent, typeof i6.MapComponent, typeof i7.MarkerLayerComponent, typeof i8.MarkerTooltipComponent, typeof i9.MarkerTooltipTemplateDirective, typeof i10.ShapeLayerComponent, typeof i11.ShapeTooltipComponent, typeof i12.ShapeTooltipTemplateDirective, typeof i13.TileLayerComponent, typeof i14.TooltipPopupComponent], [typeof i15.CommonModule, typeof i16.ResizeSensorModule], [typeof i1.BubbleLayerComponent, typeof i2.BubbleTooltipComponent, typeof i3.BubbleTooltipTemplateDirective, typeof i4.LayerTooltipComponent, typeof i5.LayersComponent, typeof i6.MapComponent, typeof i7.MarkerLayerComponent, typeof i8.MarkerTooltipComponent, typeof i9.MarkerTooltipTemplateDirective, typeof i10.ShapeLayerComponent, typeof i11.ShapeTooltipComponent, typeof i12.ShapeTooltipTemplateDirective, typeof i13.TileLayerComponent, typeof i14.TooltipPopupComponent]>;
45
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MapModule, [typeof i1.BubbleLayerComponent, typeof i2.BubbleTooltipComponent, typeof i3.BubbleTooltipTemplateDirective, typeof i4.LayerTooltipComponent, typeof i5.LayersComponent, typeof i6.MapComponent, typeof i7.MarkerLayerComponent, typeof i8.MarkerTooltipComponent, typeof i9.MarkerTooltipTemplateDirective, typeof i10.ShapeLayerComponent, typeof i11.ShapeTooltipComponent, typeof i12.ShapeTooltipTemplateDirective, typeof i13.TileLayerComponent, typeof i14.TooltipPopupComponent], [typeof i15.CommonModule, typeof i16.ResizeSensorModule, typeof i17.IconsModule], [typeof i1.BubbleLayerComponent, typeof i2.BubbleTooltipComponent, typeof i3.BubbleTooltipTemplateDirective, typeof i4.LayerTooltipComponent, typeof i5.LayersComponent, typeof i6.MapComponent, typeof i7.MarkerLayerComponent, typeof i8.MarkerTooltipComponent, typeof i9.MarkerTooltipTemplateDirective, typeof i10.ShapeLayerComponent, typeof i11.ShapeTooltipComponent, typeof i12.ShapeTooltipTemplateDirective, typeof i13.TileLayerComponent, typeof i14.TooltipPopupComponent]>;
45
46
  static ɵinj: i0.ɵɵInjectorDeclaration<MapModule>;
46
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-map",
3
- "version": "13.6.0-develop.9",
3
+ "version": "14.0.0-develop.10",
4
4
  "description": "Kendo UI Map for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -27,14 +27,15 @@
27
27
  "@angular/platform-browser": "13 - 16",
28
28
  "@progress/kendo-drawing": "^1.17.2",
29
29
  "@progress/kendo-licensing": "^1.0.2",
30
- "@progress/kendo-angular-common": "13.6.0-develop.9",
31
- "@progress/kendo-angular-l10n": "13.6.0-develop.9",
32
- "@progress/kendo-angular-popup": "13.6.0-develop.9",
30
+ "@progress/kendo-angular-common": "14.0.0-develop.10",
31
+ "@progress/kendo-angular-icons": "14.0.0-develop.10",
32
+ "@progress/kendo-angular-l10n": "14.0.0-develop.10",
33
+ "@progress/kendo-angular-popup": "14.0.0-develop.10",
33
34
  "rxjs": "^6.4.0 || ^7.0.0"
34
35
  },
35
36
  "dependencies": {
36
37
  "tslib": "^2.3.1",
37
- "@progress/kendo-angular-schematics": "13.6.0-develop.9",
38
+ "@progress/kendo-angular-schematics": "14.0.0-develop.10",
38
39
  "@progress/kendo-charts": "^1.32.0"
39
40
  },
40
41
  "schematics": "./schematics/collection.json",
@@ -10,7 +10,7 @@ function default_1(options) {
10
10
  // Additional dependencies to install.
11
11
  // See https://github.com/telerik/kendo-schematics/issues/28
12
12
  peerDependencies: {
13
- // '@progress/kendo-angular-foo': '13.6.0-develop.9'
13
+ // '@progress/kendo-angular-foo': '14.0.0-develop.10'
14
14
  } });
15
15
  return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
16
16
  }