Wayfinder Location Class
This class is used to manage the map API's interaction with the browser's Geolocation API. It also manages the 'You Are Here' maker.
Generally you do not need to use this class directly, and so this information is provided mainly just for reference.
This class has the following properties and functions:
|
showCurrentLocation |
property (r/w) |
|
|
withinBounds |
property (r) |
|
|
currentMapCoordinates |
property (r) |
Get the current map coordinated based on the last known GPS position. Returns a Vector2 representing the point on the map or |
|
gpsPointInBounds(point) |
function |
|
|
mapPointInBounds(point) |
function |
|
|
gpsToMap(coords) |
function |
Convert GeolocationCoordinates to a point on the map. Returns a Vector2 representing the point on the map or |
|
updateMapMaker() |
function |
Update the visibility and position of the 'You Are Here' marker. |