#import <MAMultiColoredPolylineRenderer.h>
|
| (instancetype) | - initWithMultiPolyline: |
| | 根据指定的MAPolyline生成一个多段线Renderer Generate a polyline Renderer based on the specified MAPolyline More...
|
| |
| (instancetype) | - initWithPolyline: |
| | 根据指定的MAPolyline生成一个多段线Renderer Generate a polyline Renderer based on the specified MAPolyline More...
|
| |
| (GLuint strokeTextureID) | - __attribute |
| |
| (instancetype) | - initWithOverlay: |
| | 初始化并返回一个Overlay Renderer initialize and return an Overlay Renderer More...
|
| |
| (float *) | - getViewMatrix |
| | 获取当前地图view矩阵,数组长度为16,无需外界释放. 需要添加至地图后,才能获取有效矩阵数据,否则返回NULL Get the current map view matrix with an array length of 16, no external release required. Valid matrix data can only be obtained after adding to the map, otherwise returns NULL. More...
|
| |
| (float *) | - getProjectionMatrix |
| | 获取当前地图projection矩阵,数组长度为16,无需外界释放. 需要添加至地图后,才能获取有效矩阵数据,否则返回NULL Get the current map projection matrix with an array length of 16, no need for external release. Valid matrix data can only be obtained after adding it to the map, otherwise returns NULL. More...
|
| |
| (MAMapPoint) | - getOffsetPoint |
| | 获取当前地图中心点偏移,用以把地图坐标转换为gl坐标。需要添加到地图获取才有效。(since 5.1.0) Get the current map center offset to convert map coordinates to gl coordinates. It only takes effect when added to map acquisition (since 5.1.0) More...
|
| |
| (id< MTLRenderCommandEncoder >) | - getCommandEncoder |
| | 获取Metal渲染MTLRenderCommandEncoder对象。注意:打开地图MetalEnable时有效,否则为nil(since 7.9.0) Obtain the Metal rendering MTLRenderCommandEncoder object. Note: It is valid when MetalEnable is turned on for the map, otherwise it is nil.(since 7.9.0) More...
|
| |
| (CGFloat) | - getMapZoomLevel |
| | 获取当前地图缩放级别,需要添加到地图获取才有效。(since 5.1.0) Get the current map zoom level, which is only valid when added to the map(since 5.1.0) More...
|
| |
| (CGPoint) | - glPointForMapPoint: |
| | 将MAMapPoint转换为opengles可以直接使用的坐标 Convert MAMapPoint to coordinates that can be directly used by OpenGLES More...
|
| |
| (CGPoint *) | - glPointsForMapPoints:count: |
| | 批量将MAMapPoint转换为opengles可以直接使用的坐标 Batch convert MAMapPoint to coordinates that can be directly used by opengles More...
|
| |
| (CGFloat) | - glWidthForWindowWidth: |
| | 将屏幕尺寸转换为OpenGLES尺寸 Convert screen size to OpenGLES size More...
|
| |
| (void) | - glRender |
| | 绘制函数(子类需要重载来实现) Drawing function (subclasses need to override to implement) More...
|
| |
| (GLuint) | - loadTexture: |
| | 加载纹理图片. 注意:仅使用gles环境(since 5.1.0) Load texture image. Note: Only use gles environment (since 5.1.0) More...
|
| |
| (void) | - deleteTexture: |
| | 删除纹理. 注意:仅使用gles环境(since 5.1.0) Delete texture. Note: Only use in GLES environment(since 5.1.0) More...
|
| |
| (void) | - setNeedsUpdate |
| | 当关联overlay对象有更新时,调用此接口刷新. since 5.0.0 Call this interface to refresh when the associated overlay object is updated. since 5.0.0 More...
|
| |
此类用于绘制 MAMultiPolyline 对应的多彩线,支持分段颜色绘制 This class is used to draw the colorful line corresponding to MAMultiPolyline, supporting segmented color rendering
◆ initWithMultiPolyline:
根据指定的MAPolyline生成一个多段线Renderer Generate a polyline Renderer based on the specified MAPolyline
- Parameters
-
- Returns
- 新生成的多段线Renderer Newly generated polyline Renderer
◆ gradient
颜色是否渐变, 默认为NO。如果设置为YES,则为多彩渐变线。 Whether the color is gradient, default is NO. If set to YES, it becomes a colorful gradient line.
◆ multiPolyline
◆ strokeColors
| - (NSArray<UIColor *>*) strokeColors |
|
readwritenonatomicstrong |
分段绘制的颜色,需要分段颜色绘制时,必须设置(内容必须为UIColor)。根据multiPolyline.drawStyleIndexes属性指示的索引进行渲染。 The color for segmented drawing must be set (the content must be UIColor) when segmented color drawing is required. It is rendered according to the index indicated by the multiPolyline.drawStyleIndexes property.
The documentation for this class was generated from the following file: