A location picker.

Properties

latitude: number = null

The latitude value of the picked location.

Can be used to set an initial value.

longitude: number = null

The longitude value of the picked location.

Can be used to set an initial value.

zoom: number = 11

Initial zoom factor.

Methods

  • Centers the map to the currently set values of longitude and latitude.

    Returns Promise<void>

  • Sets the marker to the given address.

    The search for the correct address gets easier when you seperate the parts of the address by comma.

    Parameters

    • address: string

      an address string from which the longitude and latitude will be gathered

    Returns Promise<boolean>

    success

  • Unsets the location.

    Returns Promise<void>

Events

hyloLocationSet: EventEmitter<{
    latitude: number;
    longitude: number;
}>

Fires when a new location gets set.

Emits the new values of longitude and latitude.

Type declaration

  • latitude: number
  • longitude: number
hyloLocationUnset: EventEmitter<any>

Fires when longitude and latitude got unset/cleared/deleted.

Generated using TypeDoc