<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/FeatureVisibility/Hidden",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration Case",
  "symbol" : {
    "kind" : "Enumeration Case",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "enumelt/mapkit.FeatureVisibility/Hidden"
  },
  "title" : "Hidden"
}
-->

# Hidden

A constant indicating that the feature is always hidden.

```
readonly Hidden: "hidden";
```

## Discussion

Use `mapkit.FeatureVisibility.Hidden` to hide adaptive map controls, such as the compass and scale. 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 hide the compass, the map type, and the zoom controls:

```javascript
// Create a map.
const map = new mapkit.Map("my-map-element-id");

// Always hide the compass.
map.showsCompass = mapkit.FeatureVisibility.Hidden;

// Hide the map type and the zoom controls.
map.showsMapTypeControl = false;
map.showsZoomControl = false;
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)