UNPKG

@agm/core

Version:

Angular components for Google Maps

23 lines (22 loc) 1.09 kB
/// <reference types="googlemaps" /> import { NgZone } from '@angular/core'; import { Observable } from 'rxjs'; import { AgmPolygon } from '../../directives/polygon'; import { MVCEvent } from '../../utils/mvcarray-utils'; import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper'; export declare class PolygonManager { private _mapsWrapper; private _zone; private _polygons; constructor(_mapsWrapper: GoogleMapsAPIWrapper, _zone: NgZone); addPolygon(path: AgmPolygon): void; updatePolygon(polygon: AgmPolygon): Promise<void>; setPolygonOptions(path: AgmPolygon, options: { [propName: string]: any; }): Promise<void>; deletePolygon(paths: AgmPolygon): Promise<void>; getPath(polygonDirective: AgmPolygon): Promise<google.maps.LatLng[]>; getPaths(polygonDirective: AgmPolygon): Promise<google.maps.LatLng[][]>; createEventObservable<T>(eventName: string, path: AgmPolygon): Observable<T>; createPathEventObservable(agmPolygon: AgmPolygon): Promise<Observable<MVCEvent<google.maps.LatLng[] | google.maps.LatLngLiteral[]>>>; }