<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/Map/showsCompass",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instp/mapkit.Map/showsCompass"
  },
  "title" : "showsCompass"
}
-->

# showsCompass

A feature visibility setting that determines when the compass is visible.

```
get showsCompass(): FeatureVisibility;
set showsCompass(value: FeatureVisibility);
```

## Discussion

By default, the compass is adaptive ([`Adaptive`](/documentation/MapKitJS/FeatureVisibility/Adaptive)), meaning that it isn’t visible when [`rotation`](/documentation/MapKitJS/Map/rotation) is `0` on touch devices. Otherwise, the compass is visible.

---

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)