UNPKG

1.17 kBTypeScriptView Raw
1/// <reference types="googlemaps" />
2import { NgZone } from '@angular/core';
3import { Observable } from 'rxjs';
4import { AgmPolyline } from '../../directives/polyline';
5import { MVCEvent } from '../../utils/mvcarray-utils';
6import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper';
7export declare class PolylineManager {
8 private _mapsWrapper;
9 private _zone;
10 private _polylines;
11 constructor(_mapsWrapper: GoogleMapsAPIWrapper, _zone: NgZone);
12 private static _convertPoints;
13 private static _convertPath;
14 private static _convertIcons;
15 addPolyline(line: AgmPolyline): void;
16 updatePolylinePoints(line: AgmPolyline): Promise<void>;
17 updateIconSequences(line: AgmPolyline): Promise<void>;
18 setPolylineOptions(line: AgmPolyline, options: {
19 [propName: string]: any;
20 }): Promise<void>;
21 deletePolyline(line: AgmPolyline): Promise<void>;
22 private getMVCPath;
23 getPath(agmPolyline: AgmPolyline): Promise<google.maps.LatLng[]>;
24 createEventObservable<T>(eventName: string, line: AgmPolyline): Observable<T>;
25 createPathEventObservable(line: AgmPolyline): Promise<Observable<MVCEvent<google.maps.LatLng>>>;
26}