BaiduMap_IOSSDK_v6.6.7_Docs  6.6.7
BMKBaseMarker.h
浏览该文件的文档.
1 //
2 // BMKBaseMarker.h
3 // MapComponent
4 //
5 // Created by zhaoxiangru on 2024/3/11.
6 // Copyright © 2024 Baidu. All rights reserved.
7 //
8 
9 #import "BMKShape.h"
10 #import "BMKOverlay.h"
11 #import "BMKRichView.h"
12 #import "BMKBaseUIView.h"
13 #import "BMKMapAnimation.h"
14 #import "BMKCommonDef.h"
15 NS_ASSUME_NONNULL_BEGIN
16 
18 {
19 @package
20  CLLocationCoordinate2D _coordinate;
22 }
24 @property (nonatomic, assign) CLLocationCoordinate2D coordinate;
26 @property (nonatomic, assign) float anchorX;
27 @property (nonatomic, assign) float anchorY;
29 @property (nonatomic, assign) int offsetX;
31 @property (nonatomic, assign) int offsetY;
33 @property (nonatomic, assign) float rotate;
35 @property (nonatomic, assign) NSUInteger rotateFeature;
37 @property (nonatomic, assign) float scaleX;
39 @property (nonatomic, assign) float scaleY;
41 @property (nonatomic, assign) BOOL perspective;
43 @property (nonatomic, assign) CGPoint fixXY;
45 @property (nonatomic, assign) NSUInteger followMapRotateAxis;
47 @property (nonatomic, assign) BMKCollisionBehavior collisionBehavior;
49 @property (nonatomic, assign) int collisionPriority;
50 
52 @property (nonatomic, assign) BOOL isOpenCollisionDetection;
54 @property (nonatomic, assign) BOOL isForceDisplay;
56 @property (nonatomic, assign) BOOL isOpenCollisionDetectionWithMapPOI;
57 
59 @property (nonatomic, assign) NSUInteger trackBy;
61 @property (nonatomic, strong, nullable) BMKMapAnimation *animation;
62 // 可见性
63 @property (nonatomic, assign) BMKVisibility visibility;
64 // 透明度,范围 [0, 1.0],默认1.0
65 @property (nonatomic, assign) float opacity;
66 // zindex,默认-1,不起作用
67 @property (nonatomic, assign) NSInteger zIndex;
68 
70 - (BOOL)addRichView:(nonnull BMKRichView *)view;
72 - (BOOL)removeRichView:(nonnull BMKRichView *)view;
73 // 显示最大最小地图等级,默认from:4 to:22,范围[4,22]
74 - (BOOL)setShowLevel:(int)from toLevel:(int)to;
75 @end
76 
77 NS_ASSUME_NONNULL_END
BMKBaseMarker::isForceDisplay
BOOL isForceDisplay
开启碰撞检测时,是否强制展示,默认NO。对齐安卓,兼容旧接口,建议使用collisionBehavior,对应BMKCollisionInnerAndBasePoi,V6....
Definition: BMKBaseMarker.h:55
BMKBaseMarker::_boundingMapRect
BMKMapRect _boundingMapRect
Definition: BMKBaseMarker.h:22
BMKBaseMarker::collisionPriority
int collisionPriority
碰撞优先级,值越大越不容易被碰掉,默认0
Definition: BMKBaseMarker.h:50
BMKBaseMarker::offsetX
int offsetX
偏离anchor多少point(屏幕坐标系,向左「-」、向右「+」),默认0
Definition: BMKBaseMarker.h:30
BMKBaseMarker::isOpenCollisionDetection
BOOL isOpenCollisionDetection
开启碰撞检测,默认NO,关闭。对齐安卓,兼容旧接口,建议使用collisionBehavior,对应BMKCollisionWithInner,V6.6.3以后支持
Definition: BMKBaseMarker.h:53
BMKShape.h
BMKShape
该类为一个抽象类,定义了基于BMKAnnotation的BMKShape类的基本属性和行为,不能直接使用,必须子类化之后才能使用
Definition: BMKShape.h:13
BMKBaseMarker::coordinate
CLLocationCoordinate2D coordinate
marker的经纬度坐标
Definition: BMKBaseMarker.h:25
BMKBaseMarker::perspective
BOOL perspective
是否透视,地图有俯仰角时的远小近大效果,默认NO
Definition: BMKBaseMarker.h:42
BMKBaseMarker::rotateFeature
NSUInteger rotateFeature
Marker旋转角度,起作用的方式,默认:BMKRotateFreeze (BMKRotateAnmination | BMKRotateScreenUpper | BMKRotateFlipNo),只...
Definition: BMKBaseMarker.h:36
BMKBaseMarker::followMapRotateAxis
NSUInteger followMapRotateAxis
Marker跟随地图变化的旋转轴,默认:BMKFollowMapRotateAxisNone不跟随;设置多个用|符号,如同时跟随地图旋转和俯仰角(BMKFollowMapRotateAxisPitch ...
Definition: BMKBaseMarker.h:46
BMKVisibility
BMKVisibility
Definition: BMKBaseUIView.h:16
BMKMapAnimation
Definition: BMKMapAnimation.h:70
BMKRichView.h
BMKMapAnimation.h
BMKOverlay.h
BMKBaseUIView.h
BMKBaseMarker::visibility
BMKVisibility visibility
Definition: BMKBaseMarker.h:64
BMKOverlay-p
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition: BMKOverlay.h:17
BMKBaseMarker::anchorY
float anchorY
Definition: BMKBaseMarker.h:28
BMKBaseMarker
Definition: BMKBaseMarker.h:19
BMKBaseMarker::animation
BMKMapAnimation * animation
动画,除BMKMapTrackAnimation,其他动画默认添加后自动start,使用BMKMapAnimation子类实现动画,支持BMKMapAlphaAnimation,BMKMapRotate...
Definition: BMKBaseMarker.h:62
BMKBaseMarker::opacity
float opacity
Definition: BMKBaseMarker.h:66
BMKBaseMarker::anchorX
float anchorX
anchor
Definition: BMKBaseMarker.h:27
BMKBaseMarker::zIndex
NSInteger zIndex
Definition: BMKBaseMarker.h:68
BMKCommonDef.h
BMKBaseMarker::collisionBehavior
BMKCollisionBehavior collisionBehavior
碰撞检测类型,默认BMKCollisionNotCollide;不参与碰撞;注意,动画过程中暂时不支持检测
Definition: BMKBaseMarker.h:48
BMKRichView
Definition: BMKRichView.h:17
BMKBaseMarker::isOpenCollisionDetectionWithMapPOI
BOOL isOpenCollisionDetectionWithMapPOI
是否开启与底图POI的碰撞检测,默认NO。对齐安卓,兼容旧接口,建议使用collisionBehavior,对应BMKCollisionAlwaysShow,V6....
Definition: BMKBaseMarker.h:57
BMKBaseMarker::scaleX
float scaleX
X轴缩放比例,默认1
Definition: BMKBaseMarker.h:38
BMKMapRect
矩形,用直角地理坐标表示
Definition: BMKTypes.h:284
BMKBaseMarker::offsetY
int offsetY
偏离anchor多少point(屏幕坐标系,向上「-」、向下「+」),默认0
Definition: BMKBaseMarker.h:32
BMKBaseMarker::trackBy
NSUInteger trackBy
动画,跟随模式,默认BMKAnimationTrackXY
Definition: BMKBaseMarker.h:60
BMKCollisionBehavior
BMKCollisionBehavior
Definition: BMKCommonDef.h:64
BMKBaseMarker::scaleY
float scaleY
Y轴缩放比例,默认1
Definition: BMKBaseMarker.h:40
BMKBaseMarker::rotate
float rotate
外部设置Marker旋转角度,绕Z轴旋转角度,默认0
Definition: BMKBaseMarker.h:34
BMKBaseMarker::fixXY
CGPoint fixXY
固定到屏幕XY坐标,单位point,默认(00)
Definition: BMKBaseMarker.h:44