SKCameraSettings Class Reference

Inherits from NSObject
Declared in SKCameraSettings.h

Overview

Contains settings that control how the map is viewed.

  center

Controls the rotation point of the camera. Valid values are from [ 0.1, 0.9 ] interval. Default is 0.3.

@property (nonatomic, assign) CGFloat center

Discussion

Controls the rotation point of the camera. Valid values are from [ 0.1, 0.9 ] interval. Default is 0.3.

Declared In

SKCameraSettings.h

  tilt

Controls the camera tilt. Valid values are from [ 0, 90 ] interval. Default is 15.

@property (nonatomic, assign) CGFloat tilt

Discussion

Controls the camera tilt. Valid values are from [ 0, 90 ] interval. Default is 15.

Declared In

SKCameraSettings.h

  distance

Controls the distance of the camera from the center of the map. Valid values are from [ 30, 300 ] interval. Default is 144.

@property (nonatomic, assign) CGFloat distance

Discussion

Controls the distance of the camera from the center of the map. Valid values are from [ 30, 300 ] interval. Default is 144.

Declared In

SKCameraSettings.h

+ cameraSettings

New instance of SK3DCameraSettings with default values.

+ (SKCameraSettings *)cameraSettings

Discussion

New instance of SK3DCameraSettings with default values.

Declared In

SKCameraSettings.h

+ cameraSettingsWithCenter:tilt:distance:

New instance of SK3DCameraSettings with desired values.

+ (SKCameraSettings *)cameraSettingsWithCenter:(CGFloat)center tilt:(CGFloat)tilt distance:(CGFloat)distance

Parameters

center

Center of the camera.

tilt

Tilt of the camera.

distance

Distance of the camera.

Discussion

New instance of SK3DCameraSettings with desired values.

Declared In

SKCameraSettings.h