iOS高德地图SDK(2D)  v5.6.0
MAOverlayPathRenderer.h
Go to the documentation of this file.
1 //
2 // MAOverlayPathRenderer.h
3 // MAMapKit
4 //
5 // Created by AutoNavi.
6 // Copyright (c) 2013年 Amap. All rights reserved.
7 //
8 
9 #import <UIKit/UIKit.h>
10 #import "MAOverlayRenderer.h"
11 
14 
16 @property (strong) UIColor *fillColor;
17 
19 @property (strong) UIColor *strokeColor;
20 
22 @property CGFloat lineWidth;
23 
25 @property CGLineJoin lineJoin;
26 
28 @property CGLineCap lineCap;
29 
31 @property CGFloat miterLimit;
32 
34 @property CGFloat lineDashPhase;
35 
37 @property (copy) NSArray *lineDashPattern;
38 
40 @property CGPathRef path;
41 
45 - (void)createPath;
46 
50 - (void)invalidatePath;
51 
57 - (void)applyStrokePropertiesToContext:(CGContextRef)context atZoomScale:(MAZoomScale)zoomScale;
58 
64 - (void)applyFillPropertiesToContext:(CGContextRef)context atZoomScale:(MAZoomScale)zoomScale;
65 
71 - (void)strokePath:(CGPathRef)path inContext:(CGContextRef)context;
72 
78 - (void)fillPath:(CGPathRef)path inContext:(CGContextRef)context;
79 
80 @end
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
© 2017 高德信息技术有限公司 版权所有,保留所有权利。