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

# showsScale

A feature visibility setting that determines when the map displays the map’s scale indicator.

```
get showsScale(): FeatureVisibility;
set showsScale(showsScale: FeatureVisibility);
```

## Discussion

The scale doesn’t display above a specific zoom threshold (7500 meters per point). MapKit JS handles the placement of the scale automatically as follows:

- When the map shows the zoom control, the map displays the scale indicator in the opposite top corner.
- When the user location control already occupies the opposite corner, the scale indicator shifts horizontally to prevent overlap.
- When the map has no zoom or user location control, the map positions the scale indicator in the leading corner based on the text direction (top-left for LTR and top-right for RTL).

MapKit JS ignores invalid values, but reports them to the console.

---

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)