Class

MKScaleView

A specialized view that displays the current scale information for its associated map.

Declaration

class MKScaleView : UIView

Overview

Use this class when you want to incorporate a standard scale view into your own view hierarchy. A scale view displays a legend with distance information for its associated map view. As the map region changes, the scale view updates automatically to reflect any changes in scale.

Topics

Creating a Scale View

init(mapView: MKMapView?)

Creates a scale view and associates it with the specified map view.

Getting the Scale View Attributes

var mapView: MKMapView?

The map view that provides the scale information to the scale view.

var scaleVisibility: MKFeatureVisibility

The visibility of the scale view.

var legendAlignment: MKScaleView.Alignment

The alignment of the distance information in the scale view.

enum MKScaleView.Alignment

Constants indicating whether measurements begin at the leading or trailing edge of the view.

See Also

Map Customization

class MKMapCamera

A virtual camera for defining the appearance of the map.

class MKCompassButton

A specialized view that displays the current compass heading for its associated map.

class MKUserTrackingButton

A specialized button that allows the user to toggle through the user tracking modes.

class MKUserTrackingBarButtonItem

A specialized bar button item that allows the user to toggle through the user tracking modes.