UNPKG

1.09 kBTypeScriptView Raw
1/// <reference types="googlemaps" />
2import { NgZone } from '@angular/core';
3import { Observable } from 'rxjs';
4import { AgmPolygon } from '../../directives/polygon';
5import { MVCEvent } from '../../utils/mvcarray-utils';
6import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper';
7export declare class PolygonManager {
8 private _mapsWrapper;
9 private _zone;
10 private _polygons;
11 constructor(_mapsWrapper: GoogleMapsAPIWrapper, _zone: NgZone);
12 addPolygon(path: AgmPolygon): void;
13 updatePolygon(polygon: AgmPolygon): Promise<void>;
14 setPolygonOptions(path: AgmPolygon, options: {
15 [propName: string]: any;
16 }): Promise<void>;
17 deletePolygon(paths: AgmPolygon): Promise<void>;
18 getPath(polygonDirective: AgmPolygon): Promise<google.maps.LatLng[]>;
19 getPaths(polygonDirective: AgmPolygon): Promise<google.maps.LatLng[][]>;
20 createEventObservable<T>(eventName: string, path: AgmPolygon): Observable<T>;
21 createPathEventObservable(agmPolygon: AgmPolygon): Promise<Observable<MVCEvent<google.maps.LatLng[] | google.maps.LatLngLiteral[]>>>;
22}