Platforms to show: All Mac Windows Linux Cross-Platform

Back to MKMapCameraMBS class.

MKMapCameraMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a new camera object for you to configure.

You must change the values of the returned camera object before using it.

See also:

MKMapCameraMBS.Constructor(centerCoordinate as CLLocationCoordinate2DMBS, distance as double, pitch as double, heading as double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a new camera object using the specified distance, pitch, and heading information.

centerCoordinate: The coordinate point on which the map should be centered.
distance: The line-of-sight distance from the camera to the center coordinate of the map.
pitch: The viewing angle of the camera, measured in degrees. A value of 0 results in a camera pointed straight down at the map. Angles greater than 0 result in a camera that is pitched toward the horizon by the specified number of degrees.
heading: The heading of the camera (measured in degrees) relative to true north. The value 0 means that the top edge of the map view corresponds to true north. The value 90 means the top of the map is pointing due east. The value 180 means the top of the map points due south, and so on.

Returns a new camera object initialized with the specified information.
The altitude of the camera is obtained by multiplying distance by the cosine of the pitch value.

See also:

MKMapCameraMBS.Constructor(centerCoordinate as CLLocationCoordinate2DMBS, eyeCoordinate as CLLocationCoordinate2DMBS, eyeAltitude as double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a new camera object using the specified viewing angle information.

centerCoordinate: The coordinate point on which the map should be centered.
eyeCoordinate: The coordinate point at which to place the camera. If the value for this parameter is equal to the value in the centerCoordinate parameter, the map is displayed as if the camera is looking straight down. If this point is offset from the centerCoordinate value, the map is displayed with an appropriate heading and pitch angle.
eyeAltitude: The altitude (in meters) above the ground at which to place the camera.

Returns a new camera object initialized with the specified information.

This method calculates the required pitch and heading angles to accommodate the specified eye position and altitude.

See also:

MKMapCameraMBS.Constructor(Handle as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 21.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Constructor for creating an instanced based on an existing handle.

Useful if you get a MKMapCamera reference from a declare.
The object is retained.

See also:

MKMapCameraMBS.copy as MKMapCameraMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates a copy of the camera object.

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...