1 |
|
2 | import { NgZone } from '@angular/core';
|
3 | import { Observable } from 'rxjs';
|
4 | import { AgmRectangle } from '../../directives/rectangle';
|
5 | import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper';
|
6 | export declare class RectangleManager {
|
7 | private _apiWrapper;
|
8 | private _zone;
|
9 | private _rectangles;
|
10 | constructor(_apiWrapper: GoogleMapsAPIWrapper, _zone: NgZone);
|
11 | addRectangle(rectangle: AgmRectangle): void;
|
12 | /**
|
13 | * Removes the given rectangle from the map.
|
14 | */
|
15 | removeRectangle(rectangle: AgmRectangle): Promise<void>;
|
16 | setOptions(rectangle: AgmRectangle, options: google.maps.RectangleOptions): Promise<void>;
|
17 | getBounds(rectangle: AgmRectangle): Promise<google.maps.LatLngBounds>;
|
18 | setBounds(rectangle: AgmRectangle): Promise<void>;
|
19 | setEditable(rectangle: AgmRectangle): Promise<void>;
|
20 | setDraggable(rectangle: AgmRectangle): Promise<void>;
|
21 | setVisible(rectangle: AgmRectangle): Promise<void>;
|
22 | createEventObservable<T>(eventName: string, rectangle: AgmRectangle): Observable<T>;
|
23 | }
|