iOS高德地图SDK(2D)  v5.6.0
MAOverlayPathView.h
Go to the documentation of this file.
1 //
2 // MAOverlayPathView.h
3 // MAMapKitNew
4 //
5 // Created by AutoNavi.
6 // Copyright (c) 2014年 Amap. All rights reserved.
7 //
8 
9 #import "MAOverlayView.h"
10 
15 
19 @property (strong) UIColor *fillColor;
20 
24 @property (strong) UIColor *strokeColor;
25 
29 @property CGFloat lineWidth;
30 
34 @property CGLineJoin lineJoin;
35 
39 @property CGLineCap lineCap;
40 
44 @property CGFloat miterLimit;
45 
49 @property CGFloat lineDashPhase;
50 
54 @property (copy) NSArray *lineDashPattern;
55 
59 - (void)createPath;
60 
64 @property CGPathRef path;
65 
69 - (void)invalidatePath;
70 
76 - (void)applyStrokePropertiesToContext:(CGContextRef)context atZoomScale:(MAZoomScale)zoomScale;
77 
83 - (void)applyFillPropertiesToContext:(CGContextRef)context atZoomScale:(MAZoomScale)zoomScale;
84 
90 - (void)strokePath:(CGPathRef)path inContext:(CGContextRef)context;
91 
97 - (void)fillPath:(CGPathRef)path inContext:(CGContextRef)context;
98 
99 @end
该类提供使用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
© 2017 高德信息技术有限公司 版权所有,保留所有权利。