UNPKG

878 BTypeScriptView Raw
1/// <reference types="googlemaps" />
2import { NgZone } from '@angular/core';
3import { Observable } from 'rxjs';
4import { AgmKmlLayer } from './../../directives/kml-layer';
5import { GoogleMapsAPIWrapper } from './../google-maps-api-wrapper';
6/**
7 * Manages all KML Layers for a Google Map instance.
8 */
9export declare class KmlLayerManager {
10 private _wrapper;
11 private _zone;
12 private _layers;
13 constructor(_wrapper: GoogleMapsAPIWrapper, _zone: NgZone);
14 /**
15 * Adds a new KML Layer to the map.
16 */
17 addKmlLayer(layer: AgmKmlLayer): void;
18 setOptions(layer: AgmKmlLayer, options: google.maps.KmlLayerOptions): void;
19 deleteKmlLayer(layer: AgmKmlLayer): void;
20 /**
21 * Creates a Google Maps event listener for the given KmlLayer as an Observable
22 */
23 createEventObservable<T>(eventName: string, layer: AgmKmlLayer): Observable<T>;
24}