11 #import <UIKit/UIKit.h>
13 #define
kLMKOverlayViewDefaultStrokeColor [UIColor colorWithRed:0.3
green:0.63 blue:0.89 alpha:0.8]
14 #define
kLMKOverlayViewDefaultFillColor [UIColor colorWithRed:0.77
green:0.88 blue:0.94 alpha:0.8]
31 @property (nonatomic,
readonly, strong) id<LMKOverlay> overlay;
68
zoomScale:(CGFloat)zoomScale
69
inContext:(CGContextRef)context;
87 -
(int*)g20PointsForMapPoints:(
LMKMapPoint*)mapPoints
count:(NSUInteger)count;
94 -
(CGFloat)glWidthForWindowWidth:(CGFloat)windowWidth;
107 -
(void)renderRegionWithPoints:(
int
*)points
108
pointCount:(NSUInteger)pointCount
109
fillColor:(UIColor *)fillColor
110
usingTriangleFan:(BOOL)usingTriangleFan;
116 -
(void)renderIconWithTextureID:(GLuint)textureID points:(
int *)points;
125 -
(void)renderLinesWithPoints:(
int*)points
126
pointCount:(NSUInteger)pointCount
127
strokeColor:(UIColor*)strokeColor
128
lineWidth:(CGFloat)lineWidth
142 -
(void)renderLinesWithPoints:(
int*)points
143
pointCount:(NSUInteger)pointCount
144
strokeColor:(UIColor*)strokeColor
145
lineWidth:(CGFloat)lineWidth
149
lineDash:(BOOL)lineDash;
163 -
(void)renderLinesWithPoints:(
int*)points
164
pointCount:(NSUInteger)pointCount
165
strokeColor:(UIColor*)strokeColor
166
lineWidth:(CGFloat)lineWidth
167
lineTextureID:(GLint)lineTextureID
168
texLen:(CGFloat)texLen
170
complex:(BOOL)complex;
181 -
(void)renderLinesWithPoints:(
int*)points
182
pointCount:(NSUInteger)pointCount
183
strokeColor:(UIColor*)strokeColor
184
lineWidth:(CGFloat)lineWidth
186
lineDash:(BOOL)lineDash
187
complex:(BOOL)complex;
194 #pragma mark - draw property
207 -
(GLuint)loadStrokeTextureImage:(UIImage*)textureImage;
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition: LMKOverlay.h:14
地图投影点,用平面直角坐标表示(20级像素坐标)。
Definition: LMKGeometry.h:31
void referenceDidChange()
OpenGLES坐标系发生改变, 重新计算缓存的OpenGLES坐标
void glRender()
绘制函数(子类需要重载来实现)
LMKLineJoinType
Definition: LMKLineDrawType.h:11
int * g20MapPoints
缓存的G20坐标
Definition: LMKOverlayView.h:74
LMKLineCapType
Definition: LMKLineDrawType.h:18
NSUInteger g20MapPointCount
缓存的G20坐标 个数
Definition: LMKOverlayView.h:79
GLuint strokeTextureID
笔触纹理id 修改纹理id参考 -
(GLuint)loadStrokeTextureImage:textureImage;
Definition: LMKOverlayView.h:200
该类是地图覆盖物View的基类, 提供绘制overlay的接口但并无实际的实现
Definition: LMKOverlayView.h:19
平面投影矩形结构定义
Definition: LMKGeometry.h:45