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

此类是MAPolyline的显示多段线renderer,可以通过MAOverlayPathRenderer修改其fill和stroke attributes More...

#import <MAPolylineRenderer.h>

Inheritance diagram for MAPolylineRenderer:
MAOverlayPathRenderer MAOverlayRenderer MAMultiColoredPolylineRenderer

Instance Methods

(id) - initWithPolyline:
 根据指定的MAPolyline生成一个多段线renderer More...
 
- Instance Methods inherited from MAOverlayPathRenderer
(void) - createPath
 子类需要重载该方法并设置(self.path = newPath) More...
 
(void) - invalidatePath
 释放当前path,调用之后 path == NULL More...
 
(void) - applyStrokePropertiesToContext:atZoomScale:
 将当前的stroke attributes设置到指定的context More...
 
(void) - applyFillPropertiesToContext:atZoomScale:
 将当前的fill attributes设置到指定的context More...
 
(void) - strokePath:inContext:
 绘制path More...
 
(void) - fillPath:inContext:
 填充path More...
 
- Instance Methods inherited from MAOverlayRenderer
(id) - initWithOverlay:
 初始化并返回一个overlay renderer More...
 
(CGPoint) - pointForMapPoint:
 将MAMapPoint转化为相对于receiver的本地坐标 More...
 
(MAMapPoint- mapPointForPoint:
 将相对于receiver的本地坐标转化为MAMapPoint More...
 
(CGRect) - rectForMapRect:
 将MAMapRect转化为相对于receiver的本地rect More...
 
(MAMapRect- mapRectForRect:
 将相对于receiver的本地rect转化为MAMapRect More...
 
(BOOL) - canDrawMapRect:zoomScale:
 判断overlay renderer是否可以绘制包含的内容 More...
 
(void) - drawMapRect:zoomScale:inContext:
 绘制overlay renderer的内容 More...
 
(void) - setNeedsDisplay
 设置是否需要重新绘制 More...
 
(void) - setNeedsDisplayInMapRect:
 重绘指定map rect内的内容 More...
 
(void) - setNeedsDisplayInMapRect:zoomScale:
 重绘指定zoom scale下map rect内的内容 More...
 

Properties

MAPolylinepolyline
 关联的MAPolyline model More...
 
- Properties inherited from MAOverlayPathRenderer
UIColor * fillColor
 填充颜色,默认是[UIColor colorWithRed:0 green:1 blue:0 alpha:0.6] More...
 
UIColor * strokeColor
 笔触颜色,默认是[UIColor colorWithRed:1 green:0 blue:0 alpha:0.6] More...
 
CGFloat lineWidth
 笔触宽度,默认是0 More...
 
CGLineJoin lineJoin
 LineJoin,默认是kCGLineJoinRound. More...
 
CGLineCap lineCap
 LineCap,默认是kCGLineCapRound. More...
 
CGFloat miterLimit
 MiterLimit,默认是10.f. More...
 
CGFloat lineDashPhase
 LineDashPhase,默认是0.f. More...
 
NSArray * lineDashPattern
 LineDashPattern,默认是nil. More...
 
CGPathRef path
 当前的path More...
 
- Properties inherited from MAOverlayRenderer
id< MAOverlay > overlay
 关联的overlay对象 More...
 
CGFloat alpha
 overlay的透明度 More...
 
CGFloat contentScaleFactor
 context的比例系数 More...
 

Detailed Description

此类是MAPolyline的显示多段线renderer,可以通过MAOverlayPathRenderer修改其fill和stroke attributes

Method Documentation

◆ initWithPolyline:()

- (id) initWithPolyline: (MAPolyline *)  polyline

根据指定的MAPolyline生成一个多段线renderer

Parameters
polyline指定MAPolyline
Returns
新生成的多段线renderer

Property Documentation

◆ polyline

- (MAPolyline*) polyline
readnonatomicassign

关联的MAPolyline model


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