packages/core/src/lib/directives/fit-bounds.ts
Adds the given directive to the auto fit bounds feature when the value is true. To make it work with you custom AGM component, you also have to implement the FitBoundsAccessor abstract class.
Selector | [agmFitBounds] |
Properties |
|
Methods |
|
Inputs |
constructor(_fitBoundsAccessor: FitBoundsAccessor, _fitBoundsService: FitBoundsService)
|
|||||||||
Parameters :
|
agmFitBounds | |
Default value : true
|
|
If the value is true, the element gets added to the bounds of the map. Default: true. |
Private _updateBounds | ||||||
_updateBounds(newFitBoundsDetails?: FitBoundsDetails)
|
||||||
Parameters :
Returns :
void
|
ngOnChanges |
ngOnChanges()
|
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
Private _destroyed$ |
Type : Subject<void>
|
Default value : new Subject<void>()
|
Private _latestFitBoundsDetails |
Type : FitBoundsDetails | null
|
Default value : null
|