UNPKG

1.07 kBTypeScriptView Raw
1import { OnChanges, OnDestroy, OnInit } from '@angular/core';
2import { FitBoundsAccessor, FitBoundsService } from '../services/fit-bounds';
3/**
4 * Adds the given directive to the auto fit bounds feature when the value is true.
5 * To make it work with you custom AGM component, you also have to implement the {@link FitBoundsAccessor} abstract class.
6 * @example
7 * <agm-marker [agmFitBounds]="true"></agm-marker>
8 */
9export declare class AgmFitBounds implements OnInit, OnDestroy, OnChanges {
10 private readonly _fitBoundsAccessor;
11 private readonly _fitBoundsService;
12 /**
13 * If the value is true, the element gets added to the bounds of the map.
14 * Default: true.
15 */
16 agmFitBounds: boolean;
17 private _destroyed$;
18 private _latestFitBoundsDetails;
19 constructor(_fitBoundsAccessor: FitBoundsAccessor, _fitBoundsService: FitBoundsService);
20 /**
21 * @internal
22 */
23 ngOnChanges(): void;
24 /**
25 * @internal
26 */
27 ngOnInit(): void;
28 private _updateBounds;
29 /**
30 * @internal
31 */
32 ngOnDestroy(): void;
33}