DMKPolyline Class Reference

Inherits from DMKMultiPoint : DMKShape : NSObject
Conforms to DMKOverlay
Declared in DMKPolyline.h

Overview

此类用于定义一个由多个点相连的多段线,点与点之间尾部想连但第一点与最后一个点不相连

+ polylineWithPoints:count:

根据map point数据生成多段线

+ (instancetype)polylineWithPoints:(DMKMapPoint *)points count:(NSUInteger)count

Parameters

points

mapPoint数据,points对应的内存会拷贝,调用者负责该内存的释放

count

count map point个数

Return Value

生成的多段线

Declared In

DMKPolyline.h

+ polylineWithCoordinates:count:

根据经纬度坐标数据生成多段线

+ (instancetype)polylineWithCoordinates:(CLLocationCoordinate2D *)coords count:(NSUInteger)count

Parameters

coords

经纬度坐标数据,coords对应的内存会拷贝,调用者负责该内存的释放

count

经纬度坐标个数

Return Value

生成的多段线

Declared In

DMKPolyline.h