UNPKG

ng-azure-maps

Version:
141 lines (140 loc) 9.77 kB
import { AfterViewInit, ElementRef, QueryList, AfterContentChecked, OnChanges, SimpleChanges } from '@angular/core'; import { Subject } from 'rxjs'; import * as atlas from 'azure-maps-control'; import { ZoomControlDirective } from '../controls/zoom-control.directive'; import { PitchControlDirective } from '../controls/pitch-control.directive'; import { CompassControlDirective } from '../controls/compass-control.directive'; import { StyleControlDirective } from '../controls/style-control.directive'; import { HtmlMarkerDirective } from '../markers/html-marker.directive'; import { DrawingToolbarDirective } from '../drawing/drawing-toolbar.directive'; import { SymbolLayerDirective } from '../layers/symbol-layer.directive'; import { BubbleLayerDirective } from '../layers/bubble-layer.directive'; import { LineLayerDirective } from '../layers/line-layer.directive'; import { PolygonLayerDirective } from '../layers/polygon-layer.directive'; import { PolygonExtrusionLayerDirective } from '../layers/polygon-extrusion-layer.directive'; import { HeatmapLayerDirective } from '../layers/heatmap-layer.directive'; import { ImageLayerDirective } from '../layers/image-layer.directive'; import { TileLayerDirective } from '../layers/tile-layer.directive'; import { IMapEvent } from '../../contracts'; import { PopupDirective } from '../popups/popup.directive'; import * as i0 from "@angular/core"; export declare class AzureMapDirective implements AfterViewInit, AfterContentChecked, OnChanges { private readonly elementRef; private readonly _mapEvents; private _map; autoResize: boolean; bearing: number; bounds: [number, number, number, number]; boxZoomInteraction: boolean; cameraType: 'jump' | 'ease' | 'fly'; center: [number, number]; centerOffset: [number, number]; cursor: string; dblclickZoomInteraction: boolean; disableTelemetry: boolean; duration: number; dragPanInteraction: boolean; dragRotateInteraction: boolean; enableAccessibility: boolean; interactive: boolean; keyboardInteraction: boolean; language: string; light: atlas.LightOptions; maxBounds: atlas.data.BoundingBox; maxZoom: number; minZoom: number; offset: [number, number]; padding: { top: 0; bottom: 0; left: 0; right: 0; }; preserveDrawingBuffer: boolean; pitch: number; refreshExpiredTiles: boolean; renderWorldCopies: boolean; scrollZoomInteraction: boolean; mapStyle: string; showBuildingModels: boolean; showFeedbackLink: boolean; showLogo: boolean; showTilesBoundary: boolean; touchInteraction: boolean; view: string; wheelZoomRate: number; zoom: number; dataSources: atlas.source.Source[]; trafficOptions: atlas.TrafficOptions; onBoxZoomEnd: Subject<IMapEvent>; onBoxZoomStart: Subject<IMapEvent>; onClick: Subject<IMapEvent>; onContextMenu: Subject<IMapEvent>; onData: Subject<IMapEvent>; onDblClick: Subject<IMapEvent>; onDrag: Subject<IMapEvent>; onDragEnd: Subject<IMapEvent>; onDragStart: Subject<IMapEvent>; onError: Subject<IMapEvent>; onIdle: Subject<IMapEvent>; onLayerAdded: Subject<IMapEvent>; onLayerRemoved: Subject<IMapEvent>; onLoad: Subject<IMapEvent>; onMouseDown: Subject<IMapEvent>; onMouseLeave: Subject<IMapEvent>; onMouseMove: Subject<IMapEvent>; onMouseOut: Subject<IMapEvent>; onMouseOver: Subject<IMapEvent>; onMouseUp: Subject<IMapEvent>; onMove: Subject<IMapEvent>; onMoveEnd: Subject<IMapEvent>; onMoveStart: Subject<IMapEvent>; onPitch: Subject<IMapEvent>; onPitchEnd: Subject<IMapEvent>; onPitchStart: Subject<IMapEvent>; onReady: Subject<IMapEvent>; onRender: Subject<IMapEvent>; onResize: Subject<IMapEvent>; onRotate: Subject<IMapEvent>; onRotateEnd: Subject<IMapEvent>; onRotateStart: Subject<IMapEvent>; onSourceAdded: Subject<IMapEvent>; onSourceData: Subject<IMapEvent>; onSourceRemoved: Subject<IMapEvent>; onStyleData: Subject<IMapEvent>; onStyleImageMissing: Subject<IMapEvent>; onTokenAcquired: Subject<IMapEvent>; onTouchCancel: Subject<IMapEvent>; onTouchEnd: Subject<IMapEvent>; onTouchMove: Subject<IMapEvent>; onTouchStart: Subject<IMapEvent>; onWheel: Subject<IMapEvent>; onZoom: Subject<IMapEvent>; onZoomEnd: Subject<IMapEvent>; onZoomStart: Subject<IMapEvent>; zoomControl: ZoomControlDirective; pitchControl: PitchControlDirective; compassControl: CompassControlDirective; styleControl: StyleControlDirective; htmlMarkers: QueryList<HtmlMarkerDirective>; drawingToolbar: DrawingToolbarDirective; symbolLayers: QueryList<SymbolLayerDirective>; bubbleLayers: QueryList<BubbleLayerDirective>; lineLayers: QueryList<LineLayerDirective>; polygonLayers: QueryList<PolygonLayerDirective>; polygonExtrusionLayers: QueryList<PolygonExtrusionLayerDirective>; heatmapLayers: QueryList<HeatmapLayerDirective>; imageLayers: QueryList<ImageLayerDirective>; tileLayers: QueryList<TileLayerDirective>; popups: QueryList<PopupDirective>; private get sourceLayers(); ngAfterViewInit(): void; ngAfterContentChecked(): void; ngOnChanges(changes: SimpleChanges): void; constructor(elementRef: ElementRef); private updateDataSources; private setOptions; private toMapEvent; static ɵfac: i0.ɵɵFactoryDeclaration<AzureMapDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<AzureMapDirective, "[azure-map], azure-map", never, { "autoResize": { "alias": "autoResize"; "required": false; }; "bearing": { "alias": "bearing"; "required": false; }; "bounds": { "alias": "bounds"; "required": false; }; "boxZoomInteraction": { "alias": "boxZoomInteraction"; "required": false; }; "cameraType": { "alias": "cameraType"; "required": false; }; "center": { "alias": "center"; "required": false; }; "centerOffset": { "alias": "centerOffset"; "required": false; }; "cursor": { "alias": "cursor"; "required": false; }; "dblclickZoomInteraction": { "alias": "dblclickZoomInteraction"; "required": false; }; "disableTelemetry": { "alias": "disableTelemetry"; "required": false; }; "duration": { "alias": "duration"; "required": false; }; "dragPanInteraction": { "alias": "dragPanInteraction"; "required": false; }; "dragRotateInteraction": { "alias": "dragRotateInteraction"; "required": false; }; "enableAccessibility": { "alias": "enableAccessibility"; "required": false; }; "interactive": { "alias": "interactive"; "required": false; }; "keyboardInteraction": { "alias": "keyboardInteraction"; "required": false; }; "language": { "alias": "language"; "required": false; }; "light": { "alias": "light"; "required": false; }; "maxBounds": { "alias": "maxBounds"; "required": false; }; "maxZoom": { "alias": "maxZoom"; "required": false; }; "minZoom": { "alias": "minZoom"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "preserveDrawingBuffer": { "alias": "preserveDrawingBuffer"; "required": false; }; "pitch": { "alias": "pitch"; "required": false; }; "refreshExpiredTiles": { "alias": "refreshExpiredTiles"; "required": false; }; "renderWorldCopies": { "alias": "renderWorldCopies"; "required": false; }; "scrollZoomInteraction": { "alias": "scrollZoomInteraction"; "required": false; }; "mapStyle": { "alias": "mapStyle"; "required": false; }; "showBuildingModels": { "alias": "showBuildingModels"; "required": false; }; "showFeedbackLink": { "alias": "showFeedbackLink"; "required": false; }; "showLogo": { "alias": "showLogo"; "required": false; }; "showTilesBoundary": { "alias": "showTilesBoundary"; "required": false; }; "touchInteraction": { "alias": "touchInteraction"; "required": false; }; "view": { "alias": "view"; "required": false; }; "wheelZoomRate": { "alias": "wheelZoomRate"; "required": false; }; "zoom": { "alias": "zoom"; "required": false; }; "dataSources": { "alias": "dataSources"; "required": false; }; "trafficOptions": { "alias": "trafficOptions"; "required": false; }; }, { "onBoxZoomEnd": "onBoxZoomEnd"; "onBoxZoomStart": "onBoxZoomStart"; "onClick": "onClick"; "onContextMenu": "onContextMenu"; "onData": "onData"; "onDblClick": "onDblClick"; "onDrag": "onDrag"; "onDragEnd": "onDragEnd"; "onDragStart": "onDragStart"; "onError": "onError"; "onIdle": "onIdle"; "onLayerAdded": "onLayerAdded"; "onLayerRemoved": "onLayerRemoved"; "onLoad": "onLoad"; "onMouseDown": "onMouseDown"; "onMouseLeave": "onMouseLeave"; "onMouseMove": "onMouseMove"; "onMouseOut": "onMouseOut"; "onMouseOver": "onMouseOver"; "onMouseUp": "onMouseUp"; "onMove": "onMove"; "onMoveEnd": "onMoveEnd"; "onMoveStart": "onMoveStart"; "onPitch": "onPitch"; "onPitchEnd": "onPitchEnd"; "onPitchStart": "onPitchStart"; "onReady": "onReady"; "onRender": "onRender"; "onResize": "onResize"; "onRotate": "onRotate"; "onRotateEnd": "onRotateEnd"; "onRotateStart": "onRotateStart"; "onSourceAdded": "onSourceAdded"; "onSourceData": "onSourceData"; "onSourceRemoved": "onSourceRemoved"; "onStyleData": "onStyleData"; "onStyleImageMissing": "onStyleImageMissing"; "onTokenAcquired": "onTokenAcquired"; "onTouchCancel": "onTouchCancel"; "onTouchEnd": "onTouchEnd"; "onTouchMove": "onTouchMove"; "onTouchStart": "onTouchStart"; "onWheel": "onWheel"; "onZoom": "onZoom"; "onZoomEnd": "onZoomEnd"; "onZoomStart": "onZoomStart"; }, ["zoomControl", "pitchControl", "compassControl", "styleControl", "htmlMarkers", "drawingToolbar", "symbolLayers", "bubbleLayers", "lineLayers", "polygonLayers", "polygonExtrusionLayers", "heatmapLayers", "imageLayers", "tileLayers", "popups"], never, false, never>; }