ZMSMutablePath
ミュータブルパスクラス
座標の配列を保持するクラス。ZMSPolygon や ZMSPolyline で使用する。
生成後も点列の変更が可能。
Note
不正な値を含む点列でポリゴンを生成した場合は動作を保証しない。- 
                  
                  
新規の座標をパスの末尾に追加する
Declaration
Objective-C
- (void)addCoordinate:(CLLocationCoordinate2D)coord;Swift
func add(_ coord: CLLocationCoordinate2D)Parameters
coord:座標 (緯度/経度)
 - 
                  
                  
新規の座標をパスの末尾に追加する
Declaration
Objective-C
- (void)addLatitude:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitude;Swift
func addLatitude(_ latitude: CLLocationDegrees, longitude: CLLocationDegrees)Parameters
latitude:緯度
longitude:経度
 - 
                  
                  
指定したインデックスに座標を挿入する
Declaration
Objective-C
- (void)insertCoordinate:(CLLocationCoordinate2D)coord atIndex:(NSUInteger)index;Swift
func insert(_ coord: CLLocationCoordinate2D, at index: UInt)Parameters
coord:座標 (緯度/経度)
index:インデックス
 - 
                  
                  
指定したインデックスを指定した座標で置き換える
Declaration
Objective-C
- (void)replaceCoordinateAtIndex:(NSUInteger)index withCoordinate:(CLLocationCoordinate2D)coord;Swift
func replaceCoordinate(at index: UInt, with coord: CLLocationCoordinate2D)Parameters
index:インデックス
coord:座標(緯度/経度)
 - 
                  
                  
指定したインデックスの座標を削除する
Declaration
Objective-C
- (void)removeCoordinateAtIndex:(NSUInteger)index;Swift
func removeCoordinate(at index: UInt)Parameters
index:インデックス
 - 
                  
                  
末尾の座標を削除する
Declaration
Objective-C
- (void)removeLastCoordinate;Swift
func removeLastCoordinate() - 
                  
                  
全ての座標を削除する
Declaration
Objective-C
- (void)removeAllCoordinates;Swift
func removeAllCoordinates() 
        ZMSMutablePath Class Reference