UNPKG

@progress/kendo-angular-map

Version:
56 lines (55 loc) 2.54 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { DomSanitizer } from '@angular/platform-browser'; import { TileLayerOptions, TileUrlTemplateArgs } from '@progress/kendo-charts'; import { CollectionService } from '../common/collection.service'; import { ConfigurationService } from '../common/configuration.service'; import { LayerComponent } from './layer.component'; import * as i0 from "@angular/core"; /** * Represents the Kendo UI TileLayer component for Angular. Displays raster map tiles from various sources. * * @example * ```typescript * @Component({ * selector: 'my-app', * template: ` * <kendo-map> * <kendo-map-tile-layer * [urlTemplate]="tileUrlTemplate" * [subdomains]="['a', 'b', 'c']" * [tileSize]="256"> * </kendo-map-tile-layer> * </kendo-map> * ` * }) * export class AppComponent { * public tileUrlTemplate = (args: any) => `https://${args.subdomain}.tile.openstreetmap.org/${args.z}/${args.x}/${args.y}.png`; * } * ``` */ export declare class TileLayerComponent extends LayerComponent implements TileLayerOptions { protected configurationService: ConfigurationService; protected collectionService: CollectionService; protected sanitizer: DomSanitizer; /** * Sets the size of the image tile in pixels. * * @default 256 */ tileSize: number; /** * Sets a list of subdomains to use for loading tiles. * Alternating between different subdomains allows more requests to execute in parallel. */ subdomains: string[]; /** * Sets a function that returns an image URL for each tile position. */ urlTemplate: (args: TileUrlTemplateArgs) => string; constructor(configurationService: ConfigurationService, collectionService: CollectionService, sanitizer: DomSanitizer); static ɵfac: i0.ɵɵFactoryDeclaration<TileLayerComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TileLayerComponent, "kendo-map-tile-layer", never, { "tileSize": { "alias": "tileSize"; "required": false; }; "subdomains": { "alias": "subdomains"; "required": false; }; "urlTemplate": { "alias": "urlTemplate"; "required": false; }; }, {}, never, never, true, never>; }