Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

The GPSWidget enables the use of the browsers geolocation api.

Attributes

lat: Number -

lng: Number -

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.

mapCenter: Lat/Lng object - Default map center used if no lat & lng are set

enableHighAccuracy: Boolean - Force high accuracy when using geolocation (can take longer)

showActions: Boolean - When set will display action buttons to post location data back to DSL app or reset location

mustConfirm: Boolean - User must confirm setting their location

{
    "lat": -27.810728114774516,
    "lng": 23.258056640625,
    "showMap": true,
    "mapCenter": {"lat": -27.810728114774516, "lng": 23.258056640625},
    "enableHighAccuracy": false,
    "showActions": true,
    "mustConfirm": true
  }
  • No labels