Map Doc  1.0
iOS-引擎SDK-开放平台
MBIconOverlay类 参考

#import <MBIconOverlay.h>

类 MBIconOverlay 继承关系图:
MBOverlay MBCompassOverlay

构造函数

(instancetype) - initWithFilePath:maintainPixelSize:
 
(void) - setImageFilePath:
 
(void) - markAsAnimated:flashPattern:
 
- 构造函数 继承自 MBOverlay
(void) - setNeedsDisplay
 
(void) - setColor:
 
(uint) - getColor
 
(void) - setUIColor:
 
(UIColor *) - getUIColor
 
(const MBRect- boundingBox
 
(void) - setSelected:pos:
 

属性

CGFloat scaleFactor
 
MBPoint position
 
MBNdsPoint ndsPosition
 
CGFloat orientAngle
 
BOOL keepSizeDespiteDistance
 
- 属性 继承自 MBOverlay
MBOverlayLayer overlayerLayer
 
int zLevel
 
BOOL hidden
 
BOOL clickEnable
 
int tag
 
MBPoint postion
 
MBNdsPoint ndsPosition
 

额外继承的成员函数

- Protected 属性 继承自 MBOverlay
package void * _native
 
package BOOL _attatched
 

详细描述

绘制图标的Overlay

函数文档

◆ initWithFilePath:maintainPixelSize:()

- (instancetype) initWithFilePath: (NSString *)  filePath
maintainPixelSize: (BOOL)  size 

根据指定图片创建图标Overlay

参数
filePath所使用的图片路径
size是否保持像素级大小文件路径
返回
类对象

◆ markAsAnimated:flashPattern:()

- (void) markAsAnimated: (NSInteger)  subimageNumber
flashPattern: (NSString *)  flashPattern 

添加图片动画

参数
subimageNumber图片数量
flashPattern"*1000" means all frames last 1000 milliseconds. Like:*-*-*-*-*-...... "b300;a300;b300;a1800" constitues a flash-flash warning effect. Like: *-*---—*-*----—......

◆ setImageFilePath:()

- (void) setImageFilePath: (NSString *)  filePath

设置图片路径,用于动态修改所使用的图标

参数
filePath文件路径

属性说明

◆ keepSizeDespiteDistance

- (BOOL) keepSizeDespiteDistance
readwritenonatomicassign

Set whether to keep same size at different positions in a map, even if the map is a 3D one with a low elevation. Default: false.

自从
5.0.x

◆ ndsPosition

- (MBNdsPoint) ndsPosition
readwritenonatomicassign

高精度坐标

自从
5.0.x

◆ orientAngle

- (CGFloat) orientAngle
readwritenonatomicassign

图标角度 此角度为地图中的角度,即,正北为0度,逆时针为正 也就是正东是270度,正南为180度,正西为90度,单位:度

◆ position

- (MBPoint) position
readwritenonatomicassign

图标在地图上的位置经纬度坐标

◆ scaleFactor

- (CGFloat) scaleFactor
readwritenonatomicassign

缩放比例因子


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