ZMSProjection
Objective-C
@interface ZMSProjection : NSObject
Swift
class ZMSProjection : NSObject
座標(緯度/経度)とスクリーン座標(X/Y)情報クラス
地図上の座標(緯度/経度)とスクリーン上の座標(X/Y)の情報を取得する。ZMSMapView.projection
経由で利用する。
Note
初期化不可-
座標をスクリーン座標に変換する
Declaration
Objective-C
- (CGPoint)pointForCoordinate:(CLLocationCoordinate2D)coordinate;
Swift
func point(for coordinate: CLLocationCoordinate2D) -> CGPoint
Parameters
coordinate:
座標(緯度/経度)
Return Value
スクリーン座標(X/Y)
-
スクリーン座標を座標に変換する
Declaration
Objective-C
- (CLLocationCoordinate2D)coordinateForPoints:(CGPoint)point;
Swift
func coordinate(forPoints point: CGPoint) -> CLLocationCoordinate2D
Parameters
point:
スクリーン座標(X/Y)
Return Value
座標(緯度/経度)