MapView.IsUserLocationVisible
-----------------------------

Whether the device’s current location is visible in the map view.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MapView](component_MapView.md) | [9.0](newinversion90.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "MapView.IsUserLocationVisible"; MapView ) 

**MBS**( **"MapView.IsUserLocationVisible";** /\* Whether the device’s current location is visible in the map view. \*/  
**$MapView**) /\* The map view reference number.e.g. $$MapView \*/ 

### 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

- [MapView.SetShowsUserLocation](MapViewSetShowsUserLocation.md)

Created 14th January 2019 , last changed 15th January 2019

  
[MapView.GetZoomLevel](MapViewGetZoomLevel.md) - [MapView.List](MapViewList.md)

[HTML Version](MapViewIsUserLocationVisible.shtml)