UNPKG

1.16 kBTypeScriptView Raw
1/// <reference types="googlemaps" />
2import { NgZone } from '@angular/core';
3import { Observable } from 'rxjs';
4import { AgmInfoWindow } from '../../directives/info-window';
5import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper';
6import { MarkerManager } from './marker-manager';
7export declare class InfoWindowManager {
8 private _mapsWrapper;
9 private _zone;
10 private _markerManager;
11 private _infoWindows;
12 constructor(_mapsWrapper: GoogleMapsAPIWrapper, _zone: NgZone, _markerManager: MarkerManager);
13 deleteInfoWindow(infoWindow: AgmInfoWindow): Promise<void>;
14 setPosition(infoWindow: AgmInfoWindow): Promise<void>;
15 setZIndex(infoWindow: AgmInfoWindow): Promise<void>;
16 open(infoWindow: AgmInfoWindow): Promise<void>;
17 close(infoWindow: AgmInfoWindow): Promise<void>;
18 setOptions(infoWindow: AgmInfoWindow, options: google.maps.InfoWindowOptions): Promise<void>;
19 addInfoWindow(infoWindow: AgmInfoWindow): void;
20 /**
21 * Creates a Google Maps event listener for the given InfoWindow as an Observable
22 */
23 createEventObservable<T>(eventName: string, infoWindow: AgmInfoWindow): Observable<T>;
24}