BaiduMap_IOSSDK_v6.6.3_Docs  6.6.3
构造函数 | Protected 属性 | 属性 | 所有成员列表
BMKBaseMarker类 参考

#import <BMKBaseMarker.h>

类 BMKBaseMarker 继承关系图:
BMKShape <BMKOverlay> <BMKAnnotation> <BMKAnnotation> BMKIconMarker BMKTextMarker

构造函数

(BOOL) - addRichView:
 ‍** Add BMKRichView to this Marker. *‍/ 更多...
 
(BOOL) - removeRichView:
 ‍** Remove BMKRichView from this Marker. *‍/ 更多...
 
(BOOL) - setShowLevel:toLevel:
 
- 构造函数 继承自 <BMKAnnotation>
(NSString *) - title
 获取annotation标题 更多...
 
(NSString *) - subtitle
 获取annotation副标题 更多...
 
(void) - setCoordinate:
 
- 构造函数 继承自 <BMKOverlay>
(BOOL) - intersectsMapRect:
 

Protected 属性

package CLLocationCoordinate2D _coordinate
 
BMKMapRect _boundingMapRect
 

属性

CLLocationCoordinate2D coordinate
 marker的经纬度坐标 更多...
 
float anchorX
 anchor 更多...
 
float anchorY
 
int offsetX
 偏离anchor多少point(屏幕坐标系,向左「-」、向右「+」),默认0 更多...
 
int offsetY
 偏离anchor多少point(屏幕坐标系,向上「-」、向下「+」),默认0 更多...
 
float rotate
 外部设置Marker旋转角度,绕Z轴旋转角度,默认0 更多...
 
NSUInteger rotateFeature
 Marker旋转角度,起作用的方式,默认:BMKRotateFreeze (BMKRotateAnmination | BMKRotateScreenUpper | BMKRotateFlipNo),只有设置包含BMKRotateItem时外部设置的rotate属性才会起作用;设置多个用|符号;部分设置只能二选一,请参考BMKRotateFeature注释说明 更多...
 
float scaleX
 X轴缩放比例,默认1 更多...
 
float scaleY
 Y轴缩放比例,默认1 更多...
 
BOOL perspective
 是否透视,地图有俯仰角时的远小近大效果,默认NO 更多...
 
CGPoint fixXY
 固定到屏幕XY坐标,单位point,默认(00) 更多...
 
NSUInteger followMapRotateAxis
 Marker跟随地图变化的旋转轴,默认:BMKFollowMapRotateAxisNone不跟随;设置多个用|符号,如同时跟随地图旋转和俯仰角(BMKFollowMapRotateAxisPitch | BMKFollowMapRotateAxisYaw) 更多...
 
BMKCollisionBehavior collisionBehavior
 碰撞检测类型,默认BMKCollisionNotCollide;不参与碰撞;注意,动画过程中暂时不支持检测 更多...
 
int collisionPriority
 碰撞优先级,值越大越不容易被碰掉,默认0 更多...
 
BOOL isOpenCollisionDetection
 开启碰撞检测,默认NO,关闭。对齐安卓,兼容旧接口,建议使用collisionBehavior,对应BMKCollisionWithInner,V6.6.3以后支持 更多...
 
BOOL isForceDisplay
 开启碰撞检测时,是否强制展示,默认NO。对齐安卓,兼容旧接口,建议使用collisionBehavior,对应BMKCollisionInnerAndBasePoi,V6.6.3以后支持 更多...
 
BOOL isOpenCollisionDetectionWithMapPOI
 是否开启与底图POI的碰撞检测,默认NO。对齐安卓,兼容旧接口,建议使用collisionBehavior,对应BMKCollisionAlwaysShow,V6.6.3以后支持 更多...
 
NSUInteger trackBy
 动画,跟随模式,默认BMKAnimationTrackXY 更多...
 
BMKMapAnimationanimation
 动画,除BMKMapTrackAnimation,其他动画默认添加后自动start,使用BMKMapAnimation子类实现动画,支持BMKMapAlphaAnimation,BMKMapRotateAnimation,BMKMapScaleAnimation,BMKMapTranslateAnimation,BMKMapTrackAnimation,BMKMapAnimationSet ,since 6.6.3 更多...
 
BMKVisibility visibility
 
float opacity
 
NSInteger zIndex
 
- 属性 继承自 BMKShape
NSString * title
 要显示的标题;注意:如果不设置title,无法点击annotation,也无法使用回调函数; 更多...
 
NSString * subtitle
 要显示的副标题 更多...
 
- 属性 继承自 <BMKAnnotation>
CLLocationCoordinate2D coordinate
 标注view中心坐标. 更多...
 
- 属性 继承自 <BMKOverlay>
CLLocationCoordinate2D coordinate
 返回区域中心坐标. 更多...
 
BMKMapRect boundingMapRect
 返回区域外接矩形 更多...
 

函数文档

◆ addRichView:

- (BOOL) addRichView: (nonnull BMKRichView *)  view

‍** Add BMKRichView to this Marker. *‍/

◆ removeRichView:

- (BOOL) removeRichView: (nonnull BMKRichView *)  view

‍** Remove BMKRichView from this Marker. *‍/

◆ setShowLevel:toLevel:

- (BOOL) setShowLevel: (int)  from
toLevel: (int)  to 

类成员变量说明

◆ _boundingMapRect

- (BMKMapRect) _boundingMapRect
protected

◆ _coordinate

- (package CLLocationCoordinate2D) _coordinate
protected

属性说明

◆ anchorX

- (float) anchorX
readwritenonatomicassign

anchor

◆ anchorY

- (float) anchorY
readwritenonatomicassign

◆ animation

- (BMKMapAnimation*) animation
readwritenonatomicstrong

动画,除BMKMapTrackAnimation,其他动画默认添加后自动start,使用BMKMapAnimation子类实现动画,支持BMKMapAlphaAnimation,BMKMapRotateAnimation,BMKMapScaleAnimation,BMKMapTranslateAnimation,BMKMapTrackAnimation,BMKMapAnimationSet ,since 6.6.3

◆ collisionBehavior

- (BMKCollisionBehavior) collisionBehavior
readwritenonatomicassign

碰撞检测类型,默认BMKCollisionNotCollide;不参与碰撞;注意,动画过程中暂时不支持检测

◆ collisionPriority

- (int) collisionPriority
readwritenonatomicassign

碰撞优先级,值越大越不容易被碰掉,默认0

◆ coordinate

- (CLLocationCoordinate2D) coordinate
readwritenonatomicassign

marker的经纬度坐标

◆ fixXY

- (CGPoint) fixXY
readwritenonatomicassign

固定到屏幕XY坐标,单位point,默认(00)

◆ followMapRotateAxis

- (NSUInteger) followMapRotateAxis
readwritenonatomicassign

Marker跟随地图变化的旋转轴,默认:BMKFollowMapRotateAxisNone不跟随;设置多个用|符号,如同时跟随地图旋转和俯仰角(BMKFollowMapRotateAxisPitch | BMKFollowMapRotateAxisYaw)

◆ isForceDisplay

- (BOOL) isForceDisplay
readwritenonatomicassign

开启碰撞检测时,是否强制展示,默认NO。对齐安卓,兼容旧接口,建议使用collisionBehavior,对应BMKCollisionInnerAndBasePoi,V6.6.3以后支持

◆ isOpenCollisionDetection

- (BOOL) isOpenCollisionDetection
readwritenonatomicassign

开启碰撞检测,默认NO,关闭。对齐安卓,兼容旧接口,建议使用collisionBehavior,对应BMKCollisionWithInner,V6.6.3以后支持

◆ isOpenCollisionDetectionWithMapPOI

- (BOOL) isOpenCollisionDetectionWithMapPOI
readwritenonatomicassign

是否开启与底图POI的碰撞检测,默认NO。对齐安卓,兼容旧接口,建议使用collisionBehavior,对应BMKCollisionAlwaysShow,V6.6.3以后支持

◆ offsetX

- (int) offsetX
readwritenonatomicassign

偏离anchor多少point(屏幕坐标系,向左「-」、向右「+」),默认0

◆ offsetY

- (int) offsetY
readwritenonatomicassign

偏离anchor多少point(屏幕坐标系,向上「-」、向下「+」),默认0

◆ opacity

- (float) opacity
readwritenonatomicassign

◆ perspective

- (BOOL) perspective
readwritenonatomicassign

是否透视,地图有俯仰角时的远小近大效果,默认NO

◆ rotate

- (float) rotate
readwritenonatomicassign

外部设置Marker旋转角度,绕Z轴旋转角度,默认0

◆ rotateFeature

- (NSUInteger) rotateFeature
readwritenonatomicassign

Marker旋转角度,起作用的方式,默认:BMKRotateFreeze (BMKRotateAnmination | BMKRotateScreenUpper | BMKRotateFlipNo),只有设置包含BMKRotateItem时外部设置的rotate属性才会起作用;设置多个用|符号;部分设置只能二选一,请参考BMKRotateFeature注释说明

◆ scaleX

- (float) scaleX
readwritenonatomicassign

X轴缩放比例,默认1

◆ scaleY

- (float) scaleY
readwritenonatomicassign

Y轴缩放比例,默认1

◆ trackBy

- (NSUInteger) trackBy
readwritenonatomicassign

动画,跟随模式,默认BMKAnimationTrackXY

◆ visibility

- (BMKVisibility) visibility
readwritenonatomicassign

◆ zIndex

- (NSInteger) zIndex
readwritenonatomicassign

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