Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The GPSWidget enables the use of the browsers geolocation api.

Attributes

lat: Number | null - The initial lat value

lng: Number | null - The initial lng value

showMap: Boolean - Shows a map allowing users to select a location. If a lat & lng value is passed a marker will be displayed allowing users to drag to a new location.

...

mustConfirm: Boolean - User must confirm setting their location

Code Block
<raw type="GpsWidget" action="gpsAction" cols-xs="12" cols-md="4">
    <content variable="rawGpsContent" />
</raw>
Code Block
{
    "lat": -27.810728114774516,
    "lng": 23.258056640625,
    "showMap": true,
    "mapCenter": {"lat": -27.810728114774516, "lng": 23.258056640625},
    "enableHighAccuracy": false,
    "showActions": true,
    "mustConfirm": true
  }

Screenshot 2024-12-11 at 12.09.00.pngImage Added