import { OnInit, OnDestroy, ElementRef, OnChanges, EventEmitter } from '@angular/core'; import { NgGolMapService } from './ng-gol-map.service'; /** * gol map config interface */ interface GolMap { center: any; centerAlt: any; address: any; zoom: number; gmap?: any; olmap?: any; } interface FsDocument extends HTMLDocument { webkitFullscreenElement: Element; webkitExitFullscreen: () => void; mozFullScreenElement: Element; mozCancelFullScreen: () => void; msFullscreenElement: Element; msCancelFullScreen: () => void; onwebkitfullscreenchange: any; onmsfullscreenchange: any; onmozfullscreenchange: any; } export declare class NgGolMapComponent implements OnInit, OnDestroy, OnChanges { private el; private loader; private readonly document; /** * OPTIONS: * gmap: options for google map * olmap: options for open layer */ options: GolMap; onRendered: EventEmitter; onClick: EventEmitter; isInitializing: boolean; gmap: any; olmap: any; fsDoc: FsDocument; private _google; private _mapWrraper; private readonly _options; constructor(el: ElementRef, loader: NgGolMapService, document: any); ngOnInit(): void; ngOnDestroy(): void; ngOnChanges(): void; /** * renderring the map */ render(): void; mappingMapsCenter(view: any): void; /** * Centering a map with the address */ centeringToAddress(): void; /** * set options for both google map and openlayer map */ setOptions(): void; /** * set targets as DOM elements */ setTargets(): void; /** * set google map type id * @param mapTypeId is a string */ setGmapType(mapTypeId: string): void; /** * Centering the map * @param coordinate it's required * @param isEPSG4236 default is false * - if coordinate is EPSG:4326 it will be transformed to EPSG:3857 then centering the map */ setCenter(coordinate: any, isEPSG4236?: boolean): void; /** * Zooming the map * @param zoom it's required */ setZoom(zoomLevel: number): void; /** * get map center coordinate */ getCenter(): any; /** * get map's current zoom level */ getZoom(): any; /** * get map view, it's openlayer object */ getView(): any; private transformEpsg; /** * Listening toggle full screen event */ private _detectFullScreenCrossBrowser; /** * Update size for openlayer map when toggle full screen */ private _updateSizeOlMap; private _setOption; private _roundTo; private _processMap; } export {};