1 |
|
2 | import { NgZone } from '@angular/core';
|
3 | import { Observable } from 'rxjs';
|
4 | import { AgmPolygon } from '../../directives/polygon';
|
5 | import { MVCEvent } from '../../utils/mvcarray-utils';
|
6 | import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper';
|
7 | export 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 | }
|