File

libs/upp-base/src/modules/geocode.ts

Description

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.

Metadata

Index

Methods
Inputs

Constructor

constructor(modalCtrl: ModalController)

Initializes the component and retrieves the center coordinates from modal parameters.

Parameters :
Name Type Optional Description
modalCtrl ModalController No
  • Controller for managing modal dismissal.

Inputs

center
Type : Coordinates | null
Default value : null

The center coordinates that the distance is measured from.

Methods

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 :
Name Type Optional Description
data any No
  • Object containing distance and accuracy properties for the user's current position.
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

Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""