76 - (void)applyStrokePropertiesToContext:(CGContextRef)context atZoomScale:(
MAZoomScale)zoomScale;
83 - (void)applyFillPropertiesToContext:(CGContextRef)context atZoomScale:(
MAZoomScale)zoomScale;
90 - (void)strokePath:(CGPathRef)path inContext:(CGContextRef)context;
97 - (void)fillPath:(CGPathRef)path inContext:(CGContextRef)context;
该类提供使用CGPathRef来绘制overlay,默认的操作是使用fill attributes, stroke attributes绘制当前path到co...
Definition: MAOverlayPathView.h:14
CGPathRef path
当前的path
Definition: MAOverlayPathView.h:64
void invalidatePath()
释放当前path,调用之后 path == NULL
NSArray * lineDashPattern
LineDashPattern,默认是nil.
Definition: MAOverlayPathView.h:54
CGLineJoin lineJoin
LineJoin,默认是kCGLineJoinRound.
Definition: MAOverlayPathView.h:34
UIColor * strokeColor
笔触颜色,默认是[UIColor colorWithRed:1 green:0 blue:0 alpha:0.6]
Definition: MAOverlayPathView.h:24
CGLineCap lineCap
LineCap,默认是kCGLineCapRound.
Definition: MAOverlayPathView.h:39
void createPath()
子类需要重载该方法并设置(self.path = newPath)
CGFloat miterLimit
MiterLimit,默认是10.f.
Definition: MAOverlayPathView.h:44
UIColor * fillColor
填充颜色,默认是[UIColor colorWithRed:0 green:1 blue:0 alpha:0.6]
Definition: MAOverlayPathView.h:19
CGFloat lineDashPhase
LineDashPhase,默认是0.f.
Definition: MAOverlayPathView.h:49
CGFloat lineWidth
笔触宽度,默认是0
Definition: MAOverlayPathView.h:29
该类是地图覆盖物View的基类, 提供绘制overlay的接口但并无实际的实现
Definition: MAOverlayView.h:15
double MAZoomScale
比例关系:MAZoomScale = Screen Point / MAMapPoint, 当MAZoomScale = 1时, 1 screen point = 1 MAMapPoint...
Definition: MAGeometry.h:59