UNPKG

@progress/kendo-angular-map

Version:
65 lines (64 loc) 2.93 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 { MarkerLayerOptions } 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 MarkerLayer component for Angular. Displays data as markers on vector shape layers for marker maps. * * @example * ```typescript * @Component({ * selector: 'my-app', * template: ` * <kendo-map> * <kendo-map-marker-layer * [data]="markerData" * locationField="location" * titleField="title" * shape="pin"> * </kendo-map-marker-layer> * </kendo-map> * ` * }) * export class AppComponent { * public markerData = [ * { location: [40.7128, -74.0060], title: "New York" } * ]; * } * ``` * * @remarks * Supported children components are: {@link MarkerTooltipComponent}. */ export declare class MarkerLayerComponent extends LayerComponent implements MarkerLayerOptions { protected configurationService: ConfigurationService; protected collectionService: CollectionService; protected sanitizer: DomSanitizer; /** * Sets the array of data items for this layer. */ data?: any[]; /** * Sets the data item field which contains the marker location. * The field should be an array with two numbers &mdash; latitude and longitude in decimal degrees. */ locationField?: string; /** * Sets the data item field which contains the marker title. */ titleField?: string; /** * Sets the default marker shape for data-bound markers. Supported marker shapes are `pinTarget` and `pin`. * Marker shapes are implemented as CSS classes on the marker element (`span.k-marker`). For example `pinTarget` is rendered as `k-marker-pin-target`. */ shape?: string | 'pinTarget' | 'pin'; constructor(configurationService: ConfigurationService, collectionService: CollectionService, sanitizer: DomSanitizer); static ɵfac: i0.ɵɵFactoryDeclaration<MarkerLayerComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MarkerLayerComponent, "kendo-map-marker-layer", never, { "data": { "alias": "data"; "required": false; }; "locationField": { "alias": "locationField"; "required": false; }; "titleField": { "alias": "titleField"; "required": false; }; "shape": { "alias": "shape"; "required": false; }; }, {}, never, never, true, never>; }