iOS高德地图SDK(2D)  v5.6.0
MAMultiPolyline Class Reference

此类用于定义一个由多个点相连的多段线,绘制时支持分段采用不同颜色绘制,点与点之间尾部相连但第一点与最后一个点不相连, 通常MAMultiPolyline是MAMultiColoredPolylineRenderer(分段颜色绘制)model More...

#import <MAMultiPolyline.h>

Inheritance diagram for MAMultiPolyline:
MAPolyline MAMultiPoint MAShape

Class Methods

(instancetype) + polylineWithPoints:count:drawStyleIndexes:
 分段绘制,根据map point数据生成多段线 More...
 
(instancetype) + polylineWithCoordinates:count:drawStyleIndexes:
 分段绘制,根据经纬度坐标数据生成多段线 More...
 
- Class Methods inherited from MAPolyline
(instancetype) + polylineWithPoints:count:
 根据map point数据生成多段线 More...
 
(instancetype) + polylineWithCoordinates:count:
 根据经纬度坐标数据生成多段线 More...
 

Properties

NSArray * drawStyleIndexes
 颜色索引数组,成员为NSNumber,且为非负数,负数按0处理 More...
 
- Properties inherited from MAMultiPoint
MAMapPointpoints
 坐标点数组 More...
 
NSUInteger pointCount
 坐标点的个数 More...
 
- Properties inherited from MAShape
NSString * title
 标题 More...
 
NSString * subtitle
 副标题 More...
 

Additional Inherited Members

- Instance Methods inherited from MAMultiPoint
(void) - getCoordinates:range:
 将内部的坐标点数据转化为经纬度坐标并拷贝到coords内存中 More...
 

Detailed Description

此类用于定义一个由多个点相连的多段线,绘制时支持分段采用不同颜色绘制,点与点之间尾部相连但第一点与最后一个点不相连, 通常MAMultiPolyline是MAMultiColoredPolylineRenderer(分段颜色绘制)model

Method Documentation

◆ polylineWithCoordinates:count:drawStyleIndexes:()

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

分段绘制,根据经纬度坐标数据生成多段线

分段颜色绘制:其对应的MAMultiColoredPolylineRenderer必须设置strokeColors属性

Parameters
coords指定的经纬度坐标点数组,注意:如果有连续重复点,需要去重处理,只保留一个,否则会导致绘制有问题。
count坐标点的个数
drawStyleIndexes纹理索引数组(颜色索引数组), 成员为NSNumber, 且为非负数
Returns
生成的折线对象

◆ polylineWithPoints:count:drawStyleIndexes:()

+ (instancetype) polylineWithPoints: (MAMapPoint *)  points
count: (NSUInteger)  count
drawStyleIndexes: (NSArray *)  drawStyleIndexes 

分段绘制,根据map point数据生成多段线

分段颜色绘制:其对应的MAMultiColoredPolylineRenderer必须设置strokeColors属性

Parameters
points指定的直角坐标点数组,注意:如果有连续重复点,需要去重处理,只保留一个,否则会导致绘制有问题。
count坐标点的个数
drawStyleIndexes纹理索引数组(颜色索引数组), 成员为NSNumber, 且为非负数
Returns
生成的折线对象

Property Documentation

◆ drawStyleIndexes

- (NSArray*) drawStyleIndexes
readnonatomicstrong

颜色索引数组,成员为NSNumber,且为非负数,负数按0处理


The documentation for this class was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。