@ng-maps/core
Version:
**@ng-maps/core** is a simple, modular and tree-shakable library for displaying google-maps inside an angular application
27 lines (26 loc) • 1.57 kB
TypeScript
import { NgZone } from '@angular/core';
import { Observable } from 'rxjs';
import { NgMapsInfoWindowComponent } from '../../directives/info-window';
import { MapsApiWrapper } from '../maps-api-wrapper';
import { MarkerManager } from './marker.manager';
import * as i0 from "@angular/core";
export declare abstract class InfoWindowManager<T> {
protected _mapsWrapper: MapsApiWrapper;
protected _zone: NgZone;
protected _markerManager: MarkerManager;
protected _infoWindows: Map<NgMapsInfoWindowComponent, T>;
constructor(_mapsWrapper: MapsApiWrapper, _zone: NgZone, _markerManager: MarkerManager);
abstract deleteInfoWindow(infoWindow: NgMapsInfoWindowComponent): Promise<void>;
abstract setPosition(infoWindow: NgMapsInfoWindowComponent): void;
abstract setZIndex(infoWindow: NgMapsInfoWindowComponent): void;
abstract open(infoWindow: NgMapsInfoWindowComponent, event?: any): Promise<void>;
abstract close(infoWindow: NgMapsInfoWindowComponent): void;
abstract setOptions(infoWindow: NgMapsInfoWindowComponent, options: google.maps.InfoWindowOptions): Promise<void> | void;
abstract addInfoWindow(infoWindow: NgMapsInfoWindowComponent): Promise<void>;
/**
* Creates a Google Maps event listener for the given InfoWindow as an Observable
*/
abstract createEventObservable<E>(eventName: string, infoWindow: NgMapsInfoWindowComponent): Observable<E>;
static ɵfac: i0.ɵɵFactoryDeclaration<InfoWindowManager<any>, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<InfoWindowManager<any>>;
}