---
title: FeatureVisibility
framework: mapkitjs
role: symbol
role_heading: Enumeration
path: mapkitjs/featurevisibility
---

# FeatureVisibility

Constants indicating the visibility of different adaptive map features.

## Declaration

```data
const FeatureVisibility: Readonly<{
    readonly Adaptive: "adaptive";
    readonly Hidden: "hidden";
    readonly Visible: "visible";
}>
type FeatureVisibility =
    (typeof FeatureVisibility)[keyof typeof FeatureVisibility];
```

## Overview

Overview Indicates whether the map shows adaptive features like the scale, compass, and annotation title and subtitle text. The display of an adaptive feature depends on the current map state. You can show or hide controls that aren’t adaptive, such as the map type control or zoom controls, by setting map properties to true or false, respectively. The following example shows the compass only when the map rotation is changing, and hides the zoom controls: // Create a map. const map = new mapkit.Map("my-map-element-id");

// Show the compass only when the rotation is actively changing. map.showsCompass = mapkit.FeatureVisibility.Adaptive;

// Hide the zoom controls. map.showsZoomControl = false;

## Topics

### Feature visibility values

- [Adaptive](mapkitjs/featurevisibility/adaptive.md)
- [Hidden](mapkitjs/featurevisibility/hidden.md)
- [Visible](mapkitjs/featurevisibility/visible.md)

## See Also

### Enumerations

- [AddressCategory](mapkitjs/addresscategory.md)
- [AnnotationCollisionMode](mapkitjs/annotationcollisionmode.md)
- [AnnotationDisplayPriority](mapkitjs/annotationdisplaypriority.md)
- [ColorScheme](mapkitjs/colorscheme.md)
- [DistanceUnitSystem](mapkitjs/distanceunitsystem.md)
- [MapFeatureType](mapkitjs/mapfeaturetype.md)
- [MapLoadPriority](mapkitjs/maploadpriority.md)
- [MapType](mapkitjs/maptype.md)
- [PointOfInterestCategory](mapkitjs/pointofinterestcategory.md)
- [RegionPriority](mapkitjs/regionpriority.md)
- [TransportType](mapkitjs/transporttype.md)
