Camera position parameters. More...
#import <NMSCameraPosition.h>
Class Methods | |
(instancetype) | + cameraWithTarget:zoom: |
Convenience constructor for NMSCameraPosition for a particular target and zoom level. More... | |
(instancetype) | + cameraWithLatitude:longitude:zoom: |
Convenience constructor for NMSCameraPosition for a particular latitude, longitude and zoom level. More... | |
(instancetype) | + cameraWithTarget:zoom:bearing: |
Convenience constructor for NMSCameraPosition for a particular target, zoom level and bearing. More... | |
(instancetype) | + cameraWithLatitude:longitude:zoom:bearing: |
Convenience constructor for NMSCameraPosition for a particular target and zoom level. More... | |
(float) | + zoomAtCoordinate:forMeters:perPoints: |
Get the zoom level at which meters distance, at given coord on Earth, correspond to the specified number of screen points. More... | |
Properties | |
CLLocationCoordinate2D | target |
Location on the Earth towards which the camera points. More... | |
float | zoom |
Zoom level. More... | |
CLLocationDirection | bearing |
Bearing of the camera, in degrees clockwise from true north. It is possible read the bearing value when the map is rotated because of the GPS (NMSGPSModeCompass and NMSGPSModeCourseUp mode). It is not supported the map rotation by changing the bearing value. More... | |
Detailed Description
Camera position parameters.
Definition at line 13 of file NMSCameraPosition.h.
Method Documentation
◆ cameraWithLatitude:longitude:zoom:()
+ (instancetype) cameraWithLatitude: | (CLLocationDegrees) | latitude | |
longitude: | (CLLocationDegrees) | longitude | |
zoom: | (float) | zoom | |
Convenience constructor for NMSCameraPosition
for a particular latitude, longitude and zoom level.
- Parameters
-
latitude The target position latitude longitude The target position longitude zoom The target zoom level
- Returns
- the
NMSCameraPosition
object
◆ cameraWithLatitude:longitude:zoom:bearing:()
+ (instancetype) cameraWithLatitude: | (CLLocationDegrees) | latitude | |
longitude: | (CLLocationDegrees) | longitude | |
zoom: | (float) | zoom | |
bearing: | (CLLocationDirection) | bearing | |
Convenience constructor for NMSCameraPosition
for a particular target and zoom level.
- Parameters
-
latitude The target position latitude longitude The target position longitude zoom The target zoom level bearing The map bearing
- Returns
- the
NMSCameraPosition
object
◆ cameraWithTarget:zoom:()
+ (instancetype) cameraWithTarget: | (CLLocationCoordinate2D) | target | |
zoom: | (float) | zoom | |
Convenience constructor for NMSCameraPosition
for a particular target and zoom level.
- Parameters
-
target The target position zoom The target zoom level
- Returns
- the
NMSCameraPosition
object
◆ cameraWithTarget:zoom:bearing:()
+ (instancetype) cameraWithTarget: | (CLLocationCoordinate2D) | target | |
zoom: | (float) | zoom | |
bearing: | (CLLocationDirection) | bearing | |
Convenience constructor for NMSCameraPosition
for a particular target, zoom level and bearing.
- Parameters
-
target The target position zoom The target zoom level bearing The map bearing
- Returns
- the
NMSCameraPosition
object
◆ zoomAtCoordinate:forMeters:perPoints:()
+ (float) zoomAtCoordinate: | (CLLocationCoordinate2D) | coordinate | |
forMeters: | (CLLocationDistance) | meters | |
perPoints: | (CGFloat) | points | |
Get the zoom level at which meters distance, at given coord on Earth, correspond to the specified number of screen points.
- Parameters
-
coordinate The position meters The distance in meters points The number of screen points
- Returns
- the zoom level
Property Documentation
◆ bearing
|
readwritenonatomicassign |
Bearing of the camera, in degrees clockwise from true north. It is possible read the bearing value when the map is rotated because of the GPS (NMSGPSModeCompass
and NMSGPSModeCourseUp
mode). It is not supported the map rotation by changing the bearing value.
Definition at line 71 of file NMSCameraPosition.h.
◆ target
|
readwritenonatomicassign |
Location on the Earth towards which the camera points.
Definition at line 61 of file NMSCameraPosition.h.
◆ zoom
|
readwritenonatomicassign |
Zoom level.
Definition at line 64 of file NMSCameraPosition.h.
The documentation for this class was generated from the following file:
- /Users/jenkins/workspace/mobilesdk-ios/iOS/Deployment/NavionicsMobileSDK.framework/Headers/NMSCameraPosition.h