@progress/kendo-angular-map
Version:
Kendo UI Map for Angular
58 lines (57 loc) • 3.06 kB
JavaScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { CollectionComponent } from '../common/collection.component';
import { CollectionService } from '../common/collection.service';
import { ConfigurationService } from '../common/configuration.service';
import * as i0 from "@angular/core";
import * as i1 from "../common/configuration.service";
import * as i2 from "../common/collection.service";
/**
* Represents the Kendo UI Layers component for Angular. Contains a collection of one or more map layers.
*
* @example
* ```typescript
* @Component({
* selector: 'my-app',
* template: `
* <kendo-map>
* <kendo-map-layers>
* <kendo-map-tile-layer [urlTemplate]="tileUrl"></kendo-map-tile-layer>
* <kendo-map-shape-layer [data]="shapeData"></kendo-map-shape-layer>
* </kendo-map-layers>
* </kendo-map>
* `
* })
* export class AppComponent {
* public tileUrl = (args: any) => `https://tile.openstreetmap.org/${args.z}/${args.x}/${args.y}.png`;
* public shapeData = [];
* }
* ```
*
* @remarks
* Supported children components are: {@link TileLayerComponent}, {@link ShapeLayerComponent}, {@link BubbleLayerComponent}, {@link MarkerLayerComponent}.
*/
export class LayersComponent extends CollectionComponent {
configurationService;
collectionService;
constructor(configurationService, collectionService) {
super('layers', configurationService, collectionService);
this.configurationService = configurationService;
this.collectionService = collectionService;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayersComponent, deps: [{ token: i1.ConfigurationService }, { token: i2.CollectionService }], target: i0.ɵɵFactoryTarget.Component });
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LayersComponent, isStandalone: true, selector: "kendo-map-layers", providers: [CollectionService], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LayersComponent, decorators: [{
type: Component,
args: [{
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [CollectionService],
selector: 'kendo-map-layers',
template: '',
standalone: true
}]
}], ctorParameters: function () { return [{ type: i1.ConfigurationService }, { type: i2.CollectionService }]; } });