高德地图SDK(导航)  V9.8.1
MAMultiColoredPolylineRenderer Class Reference

此类用于绘制 MAMultiPolyline 对应的多彩线,支持分段颜色绘制 More...

#import <MAMultiColoredPolylineRenderer.h>

Inheritance diagram for MAMultiColoredPolylineRenderer:
MAPolylineRenderer MAOverlayPathRenderer MAOverlayRenderer

Instance Methods

(instancetype) - initWithMultiPolyline:
 根据指定的MAPolyline生成一个多段线Renderer More...
 
- Instance Methods inherited from MAPolylineRenderer
(instancetype) - initWithPolyline:
 根据指定的MAPolyline生成一个多段线Renderer More...
 
- Instance Methods inherited from MAOverlayRenderer
(GLuint strokeTextureID) - __attribute
 笔触纹理id, 修改纹理id参考, 如果strokeImage未指定、尚未加载或加载失败返回0. 注意:仅使用gles环境 More...
 
(instancetype) - initWithOverlay:
 初始化并返回一个Overlay Renderer More...
 
(float *) - getViewMatrix
 获取当前地图view矩阵,数组长度为16,无需外界释放. 需要添加至地图后,才能获取有效矩阵数据,否则返回NULL More...
 
(float *) - getProjectionMatrix
 获取当前地图projection矩阵,数组长度为16,无需外界释放. 需要添加至地图后,才能获取有效矩阵数据,否则返回NULL More...
 
(MAMapPoint- getOffsetPoint
 获取当前地图中心点偏移,用以把地图坐标转换为gl坐标。需要添加到地图获取才有效。(since 5.1.0) More...
 
(id< MTLRenderCommandEncoder >) - getCommandEncoder
 获取Metal渲染MTLRenderCommandEncoder对象。注意:打开地图MetalEnable时有效,否则为nil(since 7.9.0) More...
 
(CGFloat) - getMapZoomLevel
 获取当前地图缩放级别,需要添加到地图获取才有效。(since 5.1.0) More...
 
(CGPoint) - glPointForMapPoint:
 将MAMapPoint转换为opengles可以直接使用的坐标 More...
 
(CGPoint *) - glPointsForMapPoints:count:
 批量将MAMapPoint转换为opengles可以直接使用的坐标 More...
 
(CGFloat) - glWidthForWindowWidth:
 将屏幕尺寸转换为OpenGLES尺寸 More...
 
(void) - glRender
 绘制函数(子类需要重载来实现) More...
 
(GLuint) - loadTexture:
 加载纹理图片. 注意:仅使用gles环境(since 5.1.0) More...
 
(void) - deleteTexture:
 删除纹理. 注意:仅使用gles环境(since 5.1.0) More...
 
(void) - setNeedsUpdate
 当关联overlay对象有更新时,调用此接口刷新. since 5.0.0 More...
 

Properties

MAMultiPolylinemultiPolyline
 关联的MAMultiPolyline model More...
 
NSArray< UIColor * > * strokeColors
 分段绘制的颜色,需要分段颜色绘制时,必须设置(内容必须为UIColor)。根据multiPolyline.drawStyleIndexes属性指示的索引进行渲染。 More...
 
BOOL gradient
 颜色是否渐变, 默认为NO。如果设置为YES,则为多彩渐变线。 More...
 
- Properties inherited from MAPolylineRenderer
MAPolylinepolyline
 关联的MAPolyline model More...
 
BOOL is3DArrowLine
 设置是否显示3d箭头线, 默认为NO。如果设置为YES,则为3d箭头线。since 6.7.0 More...
 
UIColor * sideColor
 设置为立体3d箭头的侧边颜色(当is3DArrowLine为YES时有效)顶部颜色使用strokeColor。since 6.7.0 More...
 
BOOL userInteractionEnabled
 是否开启点击选中功能,默认NO. since 7.1.0 More...
 
CGFloat hitTestInset
 用于调整点击选中热区大小,默认为0. 负值增大热区,正值减小热区. since 7.1.0 More...
 
BOOL showRangeEnabled
 是否启用显示范围,YES启用,不启用时展示全路径 since 7.5.0 More...
 
MAPathShowRange showRange
 显示范围 since 7.5.0 More...
 
- Properties inherited from MAOverlayPathRenderer
UIColor * fillColor
 填充颜色,默认是kMAOverlayRendererDefaultFillColor More...
 
UIColor * strokeColor
 笔触颜色,默认是kMAOverlayRendererDefaultStrokeColor More...
 
CGFloat lineWidth
 笔触宽度, 单位屏幕点坐标,默认是0 More...
 
MALineJoinType lineJoinType
 LineJoin,默认是kMALineJoinBevel. More...
 
MALineCapType lineCapType
 LineCap,默认是kMALineCapButt. More...
 
CGFloat miterLimit
 MiterLimit,默认是2.f. More...
 
MALineDashType lineDashType
 虚线类型, since 5.5.0 More...
 
- Properties inherited from MAOverlayRenderer
id< MAOverlayRenderDelegate > rendererDelegate
 由地图添加时,不要手动设置。如果不是使用mapview进行添加,则需要手动设置。(since 5.1.0) More...
 
id< MAOverlayoverlay
 关联的overlay对象 More...
 
UIImage * strokeImage
 用于生成笔触纹理id的图片(支持非PowerOfTwo图片; 如果您需要减轻绘制产生的锯齿,您可以参考AMap.bundle中的traffic_texture_blue.png的方式,在image两边增加部分透明像素.)。(since 5.3.0) More...
 
CGFloat alpha
 透明度[0,1],默认为1. 使用MAOverlayRenderer类提供的渲染接口会自动应用此属性。(since 5.1.0) More...
 
CGFloat contentScale
 overlay渲染的scale。(since 5.1.0) More...
 

Additional Inherited Members

- Protected Attributes inherited from MAOverlayRenderer
GLuint _strokeTextureID
 
CGSize _strokeTextureSize
 
BOOL _needsUpdate
 
BOOL _needsLoadStrokeTexture
 

Detailed Description

此类用于绘制 MAMultiPolyline 对应的多彩线,支持分段颜色绘制

Method Documentation

◆ initWithMultiPolyline:

- (instancetype) initWithMultiPolyline: (MAMultiPolyline *)  multiPolyline

根据指定的MAPolyline生成一个多段线Renderer

Parameters
multiPolyline指定MAMultiPolyline
Returns
新生成的多段线Renderer

Property Documentation

◆ gradient

- (BOOL) gradient
readwritenonatomicassign

颜色是否渐变, 默认为NO。如果设置为YES,则为多彩渐变线。

◆ multiPolyline

- (MAMultiPolyline*) multiPolyline
readnonatomicassign

关联的MAMultiPolyline model

◆ strokeColors

- (NSArray<UIColor *>*) strokeColors
readwritenonatomicstrong

分段绘制的颜色,需要分段颜色绘制时,必须设置(内容必须为UIColor)。根据multiPolyline.drawStyleIndexes属性指示的索引进行渲染。


The documentation for this class was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。