Instance Property

showsScale

A feature visibility setting that determines when the map's scale is displayed.

Declaration

attribute String showsScale;

Discussion

The scale is never displayed above a specific zoom threshold (7500 meters per point). The placement of the scale is handled automatically as follows:

  • When the zoom control is shown, the scale is displayed in the opposite top corner.

  • When the user location control already occupies the opposite corner, the scale shifts horizontally to prevent overlap.

  • When the map has no zoom or user location control, the scale is positioned in the leading corner based on the text direction (top left for RTL and top right for RTL).

Invalid values are ignored, but are reported to the console.

See Also

Configuring the Map's Appearance

colorScheme

The map’s color scheme when displaying standard or muted standard map types.

distances

The system of measurement displayed on the map.

mapType

The type of data displayed by the map view.

padding

The map's inset margins.

showsCompass

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

showsMapTypeControl

A Boolean value that determines whether to display a control that lets users choose the map type.

showsZoomControl

A Boolean value that determines whether to display a control for zooming in and zooming out on a map.

showsUserLocationControl

A Boolean value that determines whether the user location control is visible.

showsPointsOfInterest

A Boolean value that determines whether the map displays points of interest.

tintColor

The CSS color that is used to paint the user interface controls on the map.

showItems

Adjusts the maps visible region to bring the specified overlays and annotations into view.

MapShowItemsOptions

Options that determine map parameters used when showing items.