libs/upp-base/src/modules/geocode.ts
A modal component that displays information when the user is far from a specified center location. It includes distance monitoring and an option to close the modal when the user is within range.
| selector | upp-modal-away |
| styleUrls | ./away/modal/modal-away.scss |
| templateUrl | ./away/modal/modal-away.html |
Methods |
Inputs |
constructor(modalCtrl: ModalController)
|
||||||||
|
Initializes the component and retrieves the center coordinates from modal parameters.
Parameters :
|
| center |
Type : Coordinates | null
|
Default value : null
|
|
The center coordinates that the distance is measured from. |
| OnChange | ||||||||
OnChange(data: any)
|
||||||||
|
Handles changes to the user's distance from the center. Closes the modal if the distance is within the specified range plus the accuracy.
Parameters :
Returns :
void
|
| OnClose |
OnClose()
|
|
Manually closes the modal without confirming proximity.
Returns :
void
|
<upp-away [_center]="center" (changeEvent)="OnChange($event)" (closeEvent)="OnClose()"></upp-away>
./away/modal/modal-away.scss