Instance Method

cameraBoundary

Sets a constraint for the center of the map.

Declaration

CameraBoundaryDescription cameraBoundary(mapkit.CoordinateRegion coordinateRegion|mapkit.MapRect mapRect);

Return Value

An object containing both mapkit.CoordinateRegion and mapkit.MapRect instances.

Discussion

This setter accepts a mapkit.CoordinateRegion or a mapkit.MapRect instance as a value. The getter returns an object containing both mapkit.CoordinateRegion and mapkit.MapRect instances.

Topics

Defining a Camera Boundary

CameraBoundaryDescription

An object literal containing at least one property defining an area on the map.

See Also

Manipulating the Visible Portion of the Map

center

The map coordinate at the center of the map view.

setCenterAnimated

Centers the map to the provided coordinate, with optional animation.

region

The area currently displayed by the map.

setRegionAnimated

Changes the map's region to the region provided, with optional animation.

rotation

The map's rotation, in degrees.

setRotationAnimated

Changes the map's rotation setting to the number of degrees specified.

visibleMapRect

The visible area of the map defined in map units.

setVisibleMapRectAnimated

Changes the map's visible map rectangle to the specified map rectangle.

setCameraBoundaryAnimated

Changes the map's camera boundary with an animated transition.

cameraDistance

Sets the altitude of the camera above the center of the map.

setCameraDistanceAnimated

Changes the map's camera distance with an animated transition.

cameraZoomRange

Sets the minimum and maximum distance of the camera from the map center.

setCameraZoomRangeAnimated

Changes the map's camera zoom range with an animated transition.