BaiduMap_IOSSDK_v6.6.5_Docs 6.6.5
载入中...
搜索中...
未找到
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"
15NS_ASSUME_NONNULL_BEGIN
16
18{
19@package
20 CLLocationCoordinate2D _coordinate;
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;
52@property (nonatomic, assign) BOOL isOpenCollisionDetection;
54@property (nonatomic, assign) BOOL isForceDisplay;
56@property (nonatomic, assign) BOOL isOpenCollisionDetectionWithMapPOI;
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;
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
77NS_ASSUME_NONNULL_END
BMKVisibility
Definition BMKBaseUIView.h:16
BMKCollisionBehavior
Definition BMKCommonDef.h:64
Definition BMKBaseMarker.h:19
NSInteger zIndex
Definition BMKBaseMarker.h:68
int offsetY
偏离anchor多少point(屏幕坐标系,向上「-」、向下「+」),默认0
Definition BMKBaseMarker.h:32
CLLocationCoordinate2D coordinate
marker的经纬度坐标
Definition BMKBaseMarker.h:25
BMKMapAnimation * animation
动画,除BMKMapTrackAnimation,其他动画默认添加后自动start,使用BMKMapAnimation子类实现动画,支持BMKMapAlphaAnimation,BMKMapRotate...
Definition BMKBaseMarker.h:62
float scaleX
X轴缩放比例,默认1
Definition BMKBaseMarker.h:38
float scaleY
Y轴缩放比例,默认1
Definition BMKBaseMarker.h:40
BMKCollisionBehavior collisionBehavior
碰撞检测类型,默认BMKCollisionNotCollide;不参与碰撞;注意,动画过程中暂时不支持检测
Definition BMKBaseMarker.h:48
NSUInteger followMapRotateAxis
Marker跟随地图变化的旋转轴,默认:BMKFollowMapRotateAxisNone不跟随;设置多个用|符号,如同时跟随地图旋转和俯仰角(BMKFollowMapRotateAxisPitch ...
Definition BMKBaseMarker.h:46
int offsetX
偏离anchor多少point(屏幕坐标系,向左「-」、向右「+」),默认0
Definition BMKBaseMarker.h:30
BMKVisibility visibility
Definition BMKBaseMarker.h:64
BOOL perspective
是否透视,地图有俯仰角时的远小近大效果,默认NO
Definition BMKBaseMarker.h:42
BOOL isForceDisplay
开启碰撞检测时,是否强制展示,默认NO。对齐安卓,兼容旧接口,建议使用collisionBehavior,对应BMKCollisionInnerAndBasePoi,V6....
Definition BMKBaseMarker.h:55
BMKMapRect _boundingMapRect
Definition BMKBaseMarker.h:22
BOOL isOpenCollisionDetectionWithMapPOI
是否开启与底图POI的碰撞检测,默认NO。对齐安卓,兼容旧接口,建议使用collisionBehavior,对应BMKCollisionAlwaysShow,V6....
Definition BMKBaseMarker.h:57
float anchorY
Definition BMKBaseMarker.h:28
NSUInteger trackBy
动画,跟随模式,默认BMKAnimationTrackXY
Definition BMKBaseMarker.h:60
CGPoint fixXY
固定到屏幕XY坐标,单位point,默认(00)
Definition BMKBaseMarker.h:44
float rotate
外部设置Marker旋转角度,绕Z轴旋转角度,默认0
Definition BMKBaseMarker.h:34
float anchorX
anchor
Definition BMKBaseMarker.h:27
BOOL isOpenCollisionDetection
开启碰撞检测,默认NO,关闭。对齐安卓,兼容旧接口,建议使用collisionBehavior,对应BMKCollisionWithInner,V6.6.3以后支持
Definition BMKBaseMarker.h:53
NSUInteger rotateFeature
Marker旋转角度,起作用的方式,默认:BMKRotateFreeze (BMKRotateAnmination | BMKRotateScreenUpper | BMKRotateFlipNo),只...
Definition BMKBaseMarker.h:36
int collisionPriority
碰撞优先级,值越大越不容易被碰掉,默认0
Definition BMKBaseMarker.h:50
float opacity
Definition BMKBaseMarker.h:66
Definition BMKMapAnimation.h:70
Definition BMKRichView.h:17
该类为一个抽象类,定义了基于BMKAnnotation的BMKShape类的基本属性和行为,不能直接使用,必须子类化之后才能使用
Definition BMKShape.h:13
该类是地图覆盖物的基类,所有地图的覆盖物需要继承自此类
Definition BMKOverlay.h:17
矩形,用直角地理坐标表示
Definition BMKTypes.h:278