Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
MapView.IsUserLocationVisible
Whether the device’s current location is visible in the map view.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
MapView | 9.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "MapView.IsUserLocationVisible"; MapView ) More
Parameters
Parameter | Description | Example |
---|---|---|
MapView | The map view reference number. | $$MapView |
Result
Returns OK or error.
Description
Whether the device’s current location is visible in the map view.This property tells you whether the icon used to represent the user’s current location is visible in the map view. When determining whether the current location is visible, this property factors in the horizontal accuracy of the location data. Specifically, if the rectangle represented by the user’s current location plus or minus minus the horizontal accuracy of that location intersects the map’s visible rectangle, this property contains the value 1. If that location rectangle does not intersect the map’s visible rectangle, this property contains the value 0.
If the user’s location cannot be determined, this property contains the value 0.
See also
Created 14th January 2019, last changed 15th January 2019