9 #import <UIKit/UIKit.h> 57 - (void)applyStrokePropertiesToContext:(CGContextRef)context atZoomScale:(
MAZoomScale)zoomScale;
64 - (void)applyFillPropertiesToContext:(CGContextRef)context atZoomScale:(
MAZoomScale)zoomScale;
71 - (void)strokePath:(CGPathRef)path inContext:(CGContextRef)context;
78 - (void)fillPath:(CGPathRef)path inContext:(CGContextRef)context;
NSArray * lineDashPattern
LineDashPattern,默认是nil.
Definition: MAOverlayPathRenderer.h:37
CGFloat lineWidth
笔触宽度,默认是0
Definition: MAOverlayPathRenderer.h:22
该类是地图覆盖物Renderer的基类, 提供绘制overlay的接口但并无实际的实现
Definition: MAOverlayRenderer.h:13
CGFloat miterLimit
MiterLimit,默认是10.f.
Definition: MAOverlayPathRenderer.h:31
CGFloat lineDashPhase
LineDashPhase,默认是0.f.
Definition: MAOverlayPathRenderer.h:34
CGLineJoin lineJoin
LineJoin,默认是kCGLineJoinRound.
Definition: MAOverlayPathRenderer.h:25
void createPath()
子类需要重载该方法并设置(self.path = newPath)
CGLineCap lineCap
LineCap,默认是kCGLineCapRound.
Definition: MAOverlayPathRenderer.h:28
void invalidatePath()
释放当前path,调用之后 path == NULL
UIColor * strokeColor
笔触颜色,默认是[UIColor colorWithRed:1 green:0 blue:0 alpha:0.6]
Definition: MAOverlayPathRenderer.h:19
CGPathRef path
当前的path
Definition: MAOverlayPathRenderer.h:40
double MAZoomScale
比例关系:MAZoomScale = Screen Point / MAMapPoint, 当MAZoomScale = 1时, 1 screen point = 1 MAMapPoint...
Definition: MAGeometry.h:59
UIColor * fillColor
填充颜色,默认是[UIColor colorWithRed:0 green:1 blue:0 alpha:0.6]
Definition: MAOverlayPathRenderer.h:16
该类提供使用CGPathRef来绘制overlay,默认的操作是使用fill attributes, stroke attributes绘制当前path到co...
Definition: MAOverlayPathRenderer.h:13