1 |
|
2 | import { BehaviorSubject, Observable } from 'rxjs';
|
3 | import { MapsAPILoader } from './maps-api-loader/maps-api-loader';
|
4 | export interface FitBoundsDetails {
|
5 | latLng: google.maps.LatLng | google.maps.LatLngLiteral;
|
6 | }
|
7 |
|
8 |
|
9 |
|
10 | export declare type BoundsMap = Map<string, google.maps.LatLng | google.maps.LatLngLiteral>;
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export declare abstract class FitBoundsAccessor {
|
16 | abstract getFitBoundsDetails$(): Observable<FitBoundsDetails>;
|
17 | }
|
18 |
|
19 |
|
20 |
|
21 | export declare class FitBoundsService {
|
22 | protected readonly bounds$: Observable<google.maps.LatLngBounds>;
|
23 | protected readonly _boundsChangeSampleTime$: BehaviorSubject<number>;
|
24 | protected readonly _includeInBounds$: BehaviorSubject<BoundsMap>;
|
25 | constructor(loader: MapsAPILoader);
|
26 | private _generateBounds;
|
27 | addToBounds(latLng: google.maps.LatLng | google.maps.LatLngLiteral): void;
|
28 | removeFromBounds(latLng: google.maps.LatLng | google.maps.LatLngLiteral): void;
|
29 | changeFitBoundsChangeSampleTime(timeMs: number): void;
|
30 | getBounds$(): Observable<google.maps.LatLngBounds>;
|
31 | protected _createIdentifier(latLng: google.maps.LatLng | google.maps.LatLngLiteral): string;
|
32 | }
|