BaiduMap_IOSSDK_v7.1.0_Docs 7.1.0

构造函数 | 属性 | 所有成员列表
BMKTextView类 参考

该类用于定义文字覆盖物对应的View since 6.5.2 更多...

`#import <BMKTextView.h>`

类 BMKTextView 继承关系图:

## 构造函数
(nullable instancetype) | - initWithTextOverlay:
构造函数 继承自 BMKOverlayGLBasicView
(CGPathRef path) | - __deprecated_msg
| path对象 更多...
(BOOL lineDash) | - __deprecated_msg
| 是否为虚线样式，默认NO 更多...
(BOOL tileTexture) | - __deprecated_msg
| 是否纹理图片平铺绘制，默认NO 更多...
构造函数 继承自 BMKOverlayView
(nullable instancetype) | - initWithOverlay:
(GLuint) | - loadStrokeTextureImage:
(BOOL) | - loadStrokeTextureImages:
(void) | - setOverlayGeometryDelegate:
| 设置该overlay的GeometryDelegate 更多...
(CGPoint) | - pointForMapPoint:
(BMKMapPoint) | - mapPointForPoint:
(CGRect) | - rectForMapRect:
(BMKMapRect) | - mapRectForRect:
(BOOL) | - canDrawMapRect:zoomScale:
(void) | - drawMapRect:zoomScale:inContext:
(void) | - setNeedsDisplayInMapRect:
(void) | - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:
(void) | - renderTexturedLinesWithPoints:pointCount:lineWidth:textureID:looped:
(void) | - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:lineDashType:
(void) | - renderLinesWithPoints:pointCount:strokeColor:lineWidth:looped:lineDash:
(void) | - renderTexturedLinesWithPartPoints:lineWidth:textureIndexs:isFocus:
(void) | - renderTexturedLinesWithPartPoints:lineWidth:textureIndexs:isFocus:tileTexture:keepScale:
(void) | - renderTexturedLinesWithPoints:pointCount:lineWidth:textureID:strokeColor:looped:tileTexture:keepScale:
(void) | - renderTexturedPolyLineWithPoints:lineWidth:textureID:strokeColor:isFoucs:keepScale:lineJoinType:lineCapType:
(void) | - renderMultiTexturedPolyLineWithPartPoints:lineWidth:textureIndexs:isFoucs:keepScale:lineJoinType:lineCapType:
(void) | - renderDashPolyLineWithPoints:lineWidth:strokeColor:lineDashType:
(void) | - renderMultiDashPolyLineWithPartPoints:lineWidth:textureIndexs:lineDashType:
(void) | - renderRegionWithPoints:pointCount:fillColor:usingTriangleFan:
(void) | - renderATRegionWithPoint:pointCount:fillColor:usingTriangleFan:
(void) | - rendeCircleWithPoints:pointCount:lineWidth:fillColor:strokeColor:
(void) | - rendePolygonWithPoints:pointCount:lineWidth:fillColor:strokeColor:
(void) | - glRender

## 属性
BMKText * | text
| 该View对应的文字覆盖物 更多...
UIColor * | backgroundColor
| 背景颜色 更多...
int | fontSize
| 字体大小，默认：12 更多...
BMKTextFontType | textFontType
| 字体类型，默认：kBMKTextFontNormal 更多...
UIColor * | textColor
| 字体颜色 更多...
CGFloat | textParagraphSpacing
| 段间距，默认：2.0f 更多...
int | textMaxLineWidth
| 文字的最大行宽 更多...
CGFloat | textLineSpacing
| 文字的行间距，默认：4.0f 更多...
NSTextAlignment | textAlignment
| 文字对齐方式，默认：NSTextAlignmentCenter 更多...
NSLineBreakMode | textLineBreakMode
| 字符截断类型，默认：NSLineBreakByCharWrapping 更多...
int | startLevel
| 文字最小显示层级， 默认4 更多...
int | endLevel
| 文字最大显示层级，默认22 更多...
float | rotate
| 旋转角度，逆时针 更多...
BOOL | isClickable
| 是否可点击，默认YES 更多...
属性 继承自 BMKGeometryView
UIColor * | fillColor
UIColor * | strokeColor
UIColor * | strokeColorProgressForward
| 加载绘制当前进度之前的部分的画笔颜色，不设置时当前进度之前的路线不显示，轨迹动画化使用 since 6.6.3 更多...
UIColor * | strokeColorProgressBackward
| 加载绘制当前进度之后的部分的画笔颜色，不设置时当前进度之后的路线不显示，轨迹动画化使用 since 6.6.3 更多...
CGFloat | lineWidth
| 画笔宽度，默认为0 更多...
BMKLineDashType | lineDashType
| 虚线类型, since 5.0.0，默认kBMKLineDashTypeNone (仅支持颜色虚线) 更多...
属性 继承自 BMKOverlayGLBasicView
BMKVisibility | visibility
| 控件可见的状态,默认可见，BMKVisibilityVisible,since 6.6.6 更多...
UIImage * | textureImage
UIImage * | textureImageProgressForward
UIImage * | textureImageProgressBackward
BOOL | keepScale
| 纹理图片是否缩放，默认NO 更多...
属性 继承自 BMKOverlayView
id< BMKOverlay > | overlay
| 关联的overlay对象 更多...
GLuint | strokeTextureID
| 关联的纹理对象ID 更多...

## 额外继承的成员函数
Protected 属性 继承自 BMKOverlayView
package id< BMKOverlay > | _overlay
BMKMapRect | _boundingMapRect
CGAffineTransform | _mapTransform
id | _geometryDelegate
id | _canDrawCache
BOOL | keepScale
CFTimeInterval | _lastTile
CFRunLoopTimerRef | _scheduledScaleTimer
struct {
unsigned int keepAlive:1
unsigned int levelCrossFade:1
unsigned int drawingDisabled:1
unsigned int usesTiledLayer:1
} | _flags

## 详细描述

该类用于定义文字覆盖物对应的View since 6.5.2

## 函数文档

## ◆ initWithTextOverlay:

- (nullable instancetype) initWithTextOverlay: |  | (BMKText *) | textOverlay |

根据指定文字覆盖物生成对应的View

参数

  textOverlay | 指定的文字覆盖物

返回
  生成的View

## 属性说明

## ◆ backgroundColor

- (UIColor*) backgroundColor
| readwritenonatomicstrong

背景颜色

## ◆ endLevel

- (int) endLevel
| readwritenonatomicassign

文字最大显示层级，默认22

## ◆ fontSize

- (int) fontSize
| readwritenonatomicassign

字体大小，默认：12

## ◆ isClickable

- (BOOL) isClickable
| readwritenonatomicassign

是否可点击，默认YES

## ◆ rotate

- (float) rotate
| readwritenonatomicassign

旋转角度，逆时针

## ◆ startLevel

- (int) startLevel
| readwritenonatomicassign

文字最小显示层级， 默认4

## ◆ text

- (BMKText*) text
| readnonatomicassign

该View对应的文字覆盖物

## ◆ textAlignment

- (NSTextAlignment) textAlignment
| readwritenonatomicassign

文字对齐方式，默认：NSTextAlignmentCenter

## ◆ textColor

- (UIColor*) textColor
| readwritenonatomicstrong

字体颜色

## ◆ textFontType

- (BMKTextFontType) textFontType
| readwritenonatomicassign

字体类型，默认：kBMKTextFontNormal

## ◆ textLineBreakMode

- (NSLineBreakMode) textLineBreakMode
| readwritenonatomicassign

字符截断类型，默认：NSLineBreakByCharWrapping

## ◆ textLineSpacing

- (CGFloat) textLineSpacing
| readwritenonatomicassign

文字的行间距，默认：4.0f

## ◆ textMaxLineWidth

- (int) textMaxLineWidth
| readwritenonatomicassign

文字的最大行宽

## ◆ textParagraphSpacing

- (CGFloat) textParagraphSpacing
| readwritenonatomicassign

段间距，默认：2.0f

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

- BaiduMapAPI_Map.framework/Headers/BMKTextView.h