ZMSCameraPosition Class Reference

Inherits from NSObject
Conforms to NSCopying
NSMutableCopying
Declared in ZMSCameraPosition.h

Overview

immutableなクラスでカメラのポジションなどのパラメータを 管理する

  target

カメラ位置(緯度経度 度分秒)

@property (nonatomic, readonly) CLLocationCoordinate2D target

Discussion

カメラ位置(緯度経度 度分秒)

Declared In

ZMSCameraPosition.h

  zoom

カメラレベル (1.0 - 21.0)

@property (nonatomic, readonly) float zoom

Discussion

カメラレベル (1.0 - 21.0)

Declared In

ZMSCameraPosition.h

  bearing

軸方向 (時計回りに0-360度)

@property (nonatomic, readonly) CLLocationDirection bearing

Discussion

軸方向 (時計回りに0-360度)

Declared In

ZMSCameraPosition.h

  viewingAngle

視点角度 (0(地図平面に対して直角) - 30度 )

@property (nonatomic, readonly) double viewingAngle

Discussion

視点角度 (0(地図平面に対して直角) - 30度 )

Declared In

ZMSCameraPosition.h

– initWithTarget:zoom:bearing:viewingAngle:

初期化メソッド カメラに設定可能のパラメータの値を明示的に設定することができる 初期化メソッド

- (id)initWithTarget:(CLLocationCoordinate2D)target zoom:(float)zoom bearing:(CLLocationDirection)bearing viewingAngle:(double)viewingAngle

Parameters

target

CLLocationCoordinate2D 型の緯度経度座標

zoom

ズームレベル

bearing

地図回転角度(Z軸回転[右手座標系])

viewingAngle

バードビュー回転角度 (X軸回転[右手座標系])

Discussion

初期化メソッド カメラに設定可能のパラメータの値を明示的に設定することができる 初期化メソッド

Declared In

ZMSCameraPosition.h

+ cameraWithTarget:zoom:

任意の緯度経度座標とズームレベルの ZMSCameraPostion を生成する 簡易ファクトリメソッド

+ (instancetype)cameraWithTarget:(CLLocationCoordinate2D)target zoom:(float)zoom

Parameters

target

CLLocationCoordinate2D 型の緯度経度座標

zoom

ズームレベル

Discussion

任意の緯度経度座標とズームレベルの ZMSCameraPostion を生成する 簡易ファクトリメソッド

カメラの回転角度などのその他のパラメータはデフォルト値(0)が 設定される

Declared In

ZMSCameraPosition.h

+ cameraWithLatitude:longitude:zoom:

任意の緯度と経度とズームレベルのZMSCameraPositionを生成する 簡易ファクトリメソッド

+ (instancetype)cameraWithLatitude:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitude zoom:(float)zoom

Parameters

latitude

CLLocationDegrees 型の緯度

longitude

CLLocationDegrees 型の経度

zoom

ズームレベル

Discussion

任意の緯度と経度とズームレベルのZMSCameraPositionを生成する 簡易ファクトリメソッド

Declared In

ZMSCameraPosition.h

+ cameraWithTarget:zoom:bering:viewingAngle:

全てのカメラプロパティを設定する簡易ファクトリメソッド

+ (instancetype)cameraWithTarget:(CLLocationCoordinate2D)target zoom:(float)zoom bering:(CLLocationDirection)bearing viewingAngle:(double)viewingAngle

Parameters

target

CLLocationCoordinate2D 型の緯度経度座標

zoom

ズームレベル

bearing

地図回転角度(Z軸回転[右手座標系])

viewingAngle

バードビュー回転角度 (X軸回転[右手座標系])

Discussion

全てのカメラプロパティを設定する簡易ファクトリメソッド

Declared In

ZMSCameraPosition.h

+ cameraWithLatitude:longitude:bering:zoom:

緯度経度と全てのカメラプロパティを指定する簡易ファクトリメソッド

+ (instancetype)cameraWithLatitude:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitude bering:(CLLocationDirection)bearing zoom:(float)zoom

Parameters

latitude

緯度

longitude

経度

bearing

地図回転角度(Z軸回転[右手座標系])

zoom

ズームレベル

Discussion

緯度経度と全てのカメラプロパティを指定する簡易ファクトリメソッド

Declared In

ZMSCameraPosition.h