WRLDMapCamera Class Reference

An object representing a view of the map.

+ camera

+ (instancetype)camera

Initialize a camera instance.

Returns:

A WRLDMapCamera instance.

+ cameraLookingAtCenterCoordinate:fromEyeCoordinate:eyeAltitude:

+ (instancetype)cameraLookingAtCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate fromEyeCoordinate:(CLLocationCoordinate2D)eyeCoordinate eyeAltitude:(CLLocationDistance)eyeAltitude

Instantiate a camera at a location, looking towards a center coordinate.

Returns:

A WRLDMapCamera instance.

Argument Description
centerCoordinate

Coordinate to center the view on.

eyeCoordinate

The coordinate the camera should be placed at.

eyeAltitude

The distance above sea-level the camera should be looking from.

+ cameraLookingAtCenterCoordinate:fromDistance:pitch:heading:

+ (instancetype)cameraLookingAtCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate fromDistance:(CLLocationDistance)distance pitch:(CGFloat)pitch heading:(CLLocationDirection)heading

Instantiate a camera with a center, distance, pitch, and heading.

Returns:

A WRLDMapCamera instance.

Argument Description
centerCoordinate

Coordinate to center the view on.

distance

The distance of the camera from the centerCoordinate.

pitch

The pitch angle in degrees relative to a top-down view.

heading

The heading direction of the map.

+ cameraLookingAtCenterCoordinateIndoors:fromDistance:pitch:heading:elevation:elevationMode:indoorMapId:indoorMapFloorId:

+ (instancetype)cameraLookingAtCenterCoordinateIndoors:(CLLocationCoordinate2D)centerCoordinate fromDistance:(CLLocationDistance)distance pitch:(CGFloat)pitch heading:(CLLocationDirection)heading elevation:(CLLocationDistance)elevation elevationMode:(WRLDElevationMode)elevationMode indoorMapId:(NSString *)indoorMapId indoorMapFloorId:(NSInteger)indoorMapFloorId

Instantiate a camera with a center, distance, pitch, heading, elevation, elevationMode, indoorMapId and indoorMapFloorId.

Returns:

A WRLDMapCamera instance.

Argument Description
centerCoordinate

Coordinate to center the view on.

distance

The distance of the camera from the centerCoordinate.

pitch

The pitch angle in degrees relative to a top-down view.

heading

The heading direction of the map.

elevation

The height of the camera based of elevationMode.

elevationMode

Specifies how elevation mode is interpreted.

indoorMapId

The indoor map of related to the camera’s postion.

indoorMapFloorId

The floor Id the camera is position on.

@property centerCoordinate

@property (nonatomic) CLLocationCoordinate2D centerCoordinate

The coordinate around which the map is centered.

@property heading

@property (nonatomic) CLLocationDirection heading

The heading direction of the map.

@property pitch

@property (nonatomic) CGFloat pitch

The pitch angle in degrees relative to a top-down view.

@property elevation

@property (nonatomic) CLLocationDistance elevation

The height of the camera above either the ground, or sea-level, depending on the elevationMode property.

@property elevationMode

@property (nonatomic) WRLDElevationMode elevationMode

Specifies how the elevation property of this camera is interpreted:

  • WRLDElevationModeHeightAboveSeaLevel: The elevation is an absolute altitude above mean sea level, in meters.
  • WRLDElevationModeHeightAboveGround: The elevation is a height relative to the map’s terrain, in meters.

@property indoorMapId

@property (nonatomic, copy) NSString *indoorMapId

The ID of the indoor map this camera is associated with - if any.

@property indoorMapFloorId

@property (nonatomic) NSInteger indoorMapFloorId

The index of the floor this camera is associated with - if any.

@property distance

@property (nonatomic) CLLocationDistance distance

The distance of the camera from the center coordinate.

– altitude

- (CLLocationDistance)altitude

The altitude of the camera relative to sea-level.

v0.0.1600