Instance Property

distances

The system of measurement displayed on the map.

Declaration

attribute String distances;

Discussion

Sets the system of measurement used to display map distances. See mapkit.Map.Distances for accepted values.

This property applies to the scale, if it is displayed. The default value is mapkit.Map.Distances.Adaptive, which means that the measurement system is chosen depending on the map's set language. This property affects displayed distances only; it does not affect data returned by a service such as Directions.

Topics

Distances

mapkit.Map.Distances

Constants indicating the system of measurement displayed on the map.

See Also

Configuring the Map's Appearance

colorScheme

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

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.

showsScale

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

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.