Instance Property

padding

The map's inset margins.

Declaration

attribute mapkit.Padding padding;

Discussion

The padding affects the map's controls layout and the region drawn by the map which is computed to fit within the inset frame as specified by the padding.

The visibleMapRect is computed to fit within the inset frame with the constraint that the entire, non-inset frame must be able to contain map data as well. Using the showItems method ensures that all annotations and overlays are visible within the inset frame and the map region is modified when an annotation's callout is displayed to ensure it is entirely visible within the inset frame.

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.

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.