UNPKG

1.08 kBTypeScriptView Raw
1/// <reference types="googlemaps" />
2import { NgZone } from '@angular/core';
3import { Observable } from 'rxjs';
4import { AgmRectangle } from '../../directives/rectangle';
5import { GoogleMapsAPIWrapper } from '../google-maps-api-wrapper';
6export 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}