NMSCameraPosition Class Reference

Camera position parameters. More...

#import <NMSCameraPosition.h>

Inheritance diagram for NMSCameraPosition:

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
latitudeThe target position latitude
longitudeThe target position longitude
zoomThe 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
latitudeThe target position latitude
longitudeThe target position longitude
zoomThe target zoom level
bearingThe 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
targetThe target position
zoomThe 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
targetThe target position
zoomThe target zoom level
bearingThe 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
coordinateThe position
metersThe distance in meters
pointsThe number of screen points
Returns
the zoom level

Property Documentation

◆ bearing

- (CLLocationDirection) 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

- (CLLocationCoordinate2D) target
readwritenonatomicassign

Location on the Earth towards which the camera points.

Definition at line 61 of file NMSCameraPosition.h.

◆ zoom

- (float) 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