import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { CameraOptions, FitBoundsOptions, LngLat, LngLatBounds, LngLatBoundsLike, Map, Style } from 'mapbox-gl'; import { Observable } from 'rxjs'; export interface MapMoveEvent { userInitiated: boolean; location: { bearing: number; bounds: LngLatBounds; center: LngLat; pitch: number; zoom: number; }; } export declare class LJAMapComponent implements OnInit, OnDestroy, OnChanges { private _elementRef; className: boolean; private _el; private _map$; private _mapIfAvailable$; private _rasterLayerIds; accessToken: string; attributionControl: boolean; bounds: LngLatBoundsLike; fitBoundsOptions: FitBoundsOptions; cameraOptions: CameraOptions; style: Style | string; autoResize: false; readonly mapMove: EventEmitter; /** * Mapbox GL map component was resized */ readonly mapResize: EventEmitter<{}>; /** Subscribe to map load if you ever need the Mapbox `Map` control */ readonly mapLoad: Observable; constructor(_elementRef: ElementRef); ngOnInit(): void; ngOnChanges({ bounds, cameraOptions, style }: SimpleChanges): void; ngOnDestroy(): void; applyResize(): void; /** * Raster layer related performance helps. * Hide layer when zooming for less bandwidth consumption and less reloading jank. */ private _fixRasterPerf; private _setLayerVisibility; private _setCameraOptions; private _setBounds; }