Visible
A constant indicating that the feature is always visible.
Declaration
readonly Visible: "visible";Discussion
Use mapkit.FeatureVisibility.Visible to always show adaptive map controls, such as the compass and scale, regardless of the map’s current state. You can show or hide controls that aren’t adaptive by setting map properties to true or false, respectively.
The following example shows how to always show the compass and the user location control:
// Create a map.
const map = new mapkit.Map("my-map-element-id");
// Always show the compass, regardless of the map state.
map.showsCompass = mapkit.FeatureVisibility.Visible;
// Show the user location control.
map.showsUserLocationControl = true;