WRLDMapCamera Class Reference
An object representing a view of the map.
+ camera
Initialize a camera instance.
Returns:A WRLDMapCamera instance.
+ cameraLookingAtCenterCoordinate:fromEyeCoordinate: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:
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:
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
The coordinate around which the map is centered.
@property heading
The heading direction of the map.
@property pitch
The pitch angle in degrees relative to a top-down view.
@property elevation
The height of the camera above either the ground, or sea-level, depending on the elevationMode property.
@property 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
The ID of the indoor map this camera is associated with - if any.
@property indoorMapFloorId
The index of the floor this camera is associated with - if any.
@property distance
The distance of the camera from the center coordinate.
– altitude
The altitude of the camera relative to sea-level.