立得地图iOS SDK 地图&搜索服务参考手册 V1.7.0
属性 | 所有成员列表
LMKOverlayPathView类 参考

该类提供使用CGPathRef来绘制overlay,默认的操作是将fill attributes, stroke attributes设置到CAShapeLayer中, 可以使用该类的子类LMKCircleView, LMKPolylineView, LMKPolygonView或者继承该类, 如果继承该类,需要重载-(void)createPath方法 更多...

#import <LMKOverlayPathView.h>

类 LMKOverlayPathView 继承关系图:
LMKOverlayView LMKArcView LMKCircleView LMKMultiColoredPolylineView LMKMultiTexturePolylineView LMKPolygonView LMKPolylineView

属性

UIColor *  fillColor
  填充颜色,默认是kLMKOverlayViewDefaultFillColor 更多...
 
UIColor *  strokeColor
  笔触颜色,默认是kLMKOverlayViewDefaultStrokeColor 更多...
 
CGFloat  lineWidth
  笔触宽度,默认是0 更多...
 
LMKLineJoinType  lineJoinType
  LineJoin,默认是kLMKLineJoinBevel. 更多...
 
LMKLineCapType  lineCapType
  LineCap,默认是kLMKLineCapButt. 更多...
 
CGFloat  miterLimit
  MiterLimit,默认是10.f. 更多...
 
BOOL  lineDash
  是否绘制成虚线, 默认是NO 更多...
 
- 属性 继承自 LMKOverlayView
id< LMKOverlay overlay
  关联的overlay对象 更多...
 
int *  g20MapPoints
  缓存的G20坐标 更多...
 
NSUInteger  g20MapPointCount
  缓存的G20坐标 个数 更多...
 
GLuint  strokeTextureID
  笔触纹理id 修改纹理id参考 - (GLuint)loadStrokeTextureImage:textureImage; 更多...
 

额外继承的成员函数

- 构造函数 继承自 LMKOverlayView
(id)  - initWithOverlay:
  初始化并返回一个overlay view 更多...
 
(CGPoint)  - pointForMapPoint:
  将LMKMapPoint转化为相对于receiver的本地坐标 更多...
 
(LMKMapPoint - mapPointForPoint:
  将相对于receiver的本地坐标转化为LMKMapPoint 更多...
 
(CGRect)  - rectForMapRect:
  将LMKMapRect转化为相对于receiver的本地rect 更多...
 
(LMKMapRect - mapRectForRect:
  将相对于receiver的本地rect转化为LMKMapRect 更多...
 
(void)  - drawMapRect:zoomScale:inContext:
  绘制overlay view的内容 更多...
 
(int *)  - g20PointsForMapPoints:count:
  批量将LMKMapPoint转换为opengles可以直接使用的坐标 更多...
 
(CGFloat)  - glWidthForWindowWidth:
  将屏幕尺寸转换为OpenGLES尺寸 更多...
 
(void)  - referenceDidChange
  OpenGLES坐标系发生改变, 重新计算缓存的OpenGLES坐标 更多...
 
(void)  - renderRegionWithPoints:pointCount:fillColor:usingTriangleFan:
  使用OpenGLES 绘制区域 更多...
 
(void)  - renderIconWithTextureID:points:
  使用OpenGLES 绘制图片 更多...
 
(void)  - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:
  使用OpenGLES 绘制线 更多...
 
(void)  - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:LineJoinType:LineCapType:lineDash:
 
(void)  - renderLinesWithPoints:pointCount:strokeColor:lineWidth:lineTextureID:texLen:looped:complex:
 
(void)  - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:lineDash:complex:
 
(void)  - glRender
  绘制函数(子类需要重载来实现) 更多...
 
(GLuint)  - loadStrokeTextureImage:
 

详细描述

该类提供使用CGPathRef来绘制overlay,默认的操作是将fill attributes, stroke attributes设置到CAShapeLayer中, 可以使用该类的子类LMKCircleView, LMKPolylineView, LMKPolygonView或者继承该类, 如果继承该类,需要重载-(void)createPath方法

属性说明

- (UIColor*) fillColor
readwriteatomicretain

填充颜色,默认是kLMKOverlayViewDefaultFillColor

- (LMKLineCapType) lineCapType
readwriteatomic

LineCap,默认是kLMKLineCapButt.

- (BOOL) lineDash
readwriteatomic

是否绘制成虚线, 默认是NO

- (LMKLineJoinType) lineJoinType
readwriteatomic

LineJoin,默认是kLMKLineJoinBevel.

- (CGFloat) lineWidth
readwriteatomic

笔触宽度,默认是0

- (CGFloat) miterLimit
readwriteatomic

MiterLimit,默认是10.f.

- (UIColor*) strokeColor
readwriteatomicretain

笔触颜色,默认是kLMKOverlayViewDefaultStrokeColor


该类的文档由以下文件生成: