UNPKG

1.23 kBTypeScriptView Raw
1/// <reference types="googlemaps" />
2import { NgZone } from '@angular/core';
3import { Observable } from 'rxjs';
4import { AgmCircle } from '../../directives/circle';
5import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper';
6export declare class CircleManager {
7 private _apiWrapper;
8 private _zone;
9 private _circles;
10 constructor(_apiWrapper: GoogleMapsAPIWrapper, _zone: NgZone);
11 addCircle(circle: AgmCircle): void;
12 /**
13 * Removes the given circle from the map.
14 */
15 removeCircle(circle: AgmCircle): Promise<void>;
16 setOptions(circle: AgmCircle, options: google.maps.CircleOptions): Promise<void>;
17 getBounds(circle: AgmCircle): Promise<google.maps.LatLngBounds>;
18 getCenter(circle: AgmCircle): Promise<google.maps.LatLng>;
19 getRadius(circle: AgmCircle): Promise<number>;
20 setCenter(circle: AgmCircle): Promise<void>;
21 setEditable(circle: AgmCircle): Promise<void>;
22 setDraggable(circle: AgmCircle): Promise<void>;
23 setVisible(circle: AgmCircle): Promise<void>;
24 setRadius(circle: AgmCircle): Promise<void>;
25 getNativeCircle(circle: AgmCircle): Promise<google.maps.Circle>;
26 createEventObservable<T>(eventName: string, circle: AgmCircle): Observable<T>;
27}