BaiduMap_IOSSDK_v7.1.0_Docs 7.1.0

BMKLocationViewDisplayParam.h
浏览该文件的文档.
1 /*
2 * BMKLocationViewDisplayParam.h
3 * BMapKit
4 *
5 * Copyright 2013 Baidu Inc. All rights reserved.
6 *
7 */
8 #import <UIKit/UIKit.h>
9 #import <Foundation/Foundation.h>
10
11
18 typedef NS_ENUM(NSUInteger, LocationViewHierarchy) {
19 LOCATION_VIEW_HIERARCHY_TOP,
20 LOCATION_VIEW_HIERARCHY_BOTTOM,
21 };
22
24 @interface BMKLocationViewDisplayParam : NSObject <NSCopying>
25
27 @property (nonatomic, assign) CGFloat locationViewOffsetX;
29 @property (nonatomic, assign) CGFloat locationViewOffsetY;
31 @property (nonatomic, assign) BOOL isAccuracyCircleShow;
33 @property (nonatomic, strong) UIColor *accuracyCircleFillColor;
35 @property (nonatomic, strong) UIColor *accuracyCircleStrokeColor;
37 @property (nonatomic, assign) CGFloat accuracyCircleBorderWidth;
39 @property (nonatomic, assign) BOOL isRotateAngleValid;
41 @property (nonatomic, copy) NSString *locationViewImgName;
43 @property (nonatomic, strong) UIImage *locationViewImage;
45 @property (nonatomic, assign) BOOL canShowCallOut;
47 @property (nonatomic, assign) LocationViewHierarchy locationViewHierarchy;
49 @property (nonatomic, assign) BOOL isLocationArrowStyleCustom;
50
51 /* 以下为定位图标整体样式自定义，自定义图片和gif图二选一，Gif图优先级大于图片*/
53 @property (nonatomic, strong) UIImage *locationViewImageNew;
55 @property (nonatomic, copy) NSString *locationViewGifImageFilePath;
57 @property (nonatomic, assign) CGFloat locationViewImageSizeScale;
59 @property (nonatomic, assign) BOOL breatheEffectOpenForWholeStyle;
60 /* 以下为箭头样式定位图标自定义，可分别自定义中心圆点图片和箭头图片，中心图标自定义图片和gif图二选一，Gif图优先级大于图片*/
62 @property (nonatomic, strong) UIImage *locationViewCenterImage;
64 @property (nonatomic, copy) NSString *locationViewCenterGifImageFilePath;
66 @property (nonatomic, assign) CGFloat locationViewCenterImageSizeScale;
68 @property (nonatomic, strong) UIImage *locationViewAroundArrowsImage;
70 @property (nonatomic, assign) CGFloat locationViewAroundArrowsImageSizeScale;
72 @property (nonatomic, assign) BOOL breatheEffectOpenForArrowsStyle;
73
74 @end
75
76
77
BMKLocationViewDisplayParam::locationViewImageSizeScale
CGFloat locationViewImageSizeScale
定位图标整体样式自定义大小缩放系数，默认为1，可设置范围0.1～2.0，基于固定尺寸CGSizeMake(30, 30)缩放，since 6.5.7
Definition: BMKLocationViewDisplayParam.h:57
BMKLocationViewDisplayParam::breatheEffectOpenForArrowsStyle
BOOL breatheEffectOpenForArrowsStyle
箭头样式定位图标呼吸效果，默认为YES，since 6.5.7
Definition: BMKLocationViewDisplayParam.h:72
BMKLocationViewDisplayParam::locationViewOffsetY
CGFloat locationViewOffsetY
定位图标Y轴偏移量(屏幕坐标)
Definition: BMKLocationViewDisplayParam.h:29
BMKLocationViewDisplayParam::locationViewImage
UIImage * locationViewImage
用户自定义定位图标，V4.2.1以后支持
Definition: BMKLocationViewDisplayParam.h:43
BMKLocationViewDisplayParam::locationViewAroundArrowsImageSizeScale
CGFloat locationViewAroundArrowsImageSizeScale
箭头样式定位图标周边箭头轮廓图片大小缩放系数，默认为1，可设置范围0.2～3.0，基于图片大小缩放，since 6.5.7
Definition: BMKLocationViewDisplayParam.h:70
BMKLocationViewDisplayParam::breatheEffectOpenForWholeStyle
BOOL breatheEffectOpenForWholeStyle
定位图标整体样式自定义呼吸效果，默认为NO，since 6.5.7
Definition: BMKLocationViewDisplayParam.h:59
BMKLocationViewDisplayParam::isLocationArrowStyleCustom
BOOL isLocationArrowStyleCustom
是否是定位图标箭头样式自定义，YES：箭头样式自定义， NO：整体样式自定义，默认NO
Definition: BMKLocationViewDisplayParam.h:49
BMKLocationViewDisplayParam::accuracyCircleFillColor
UIColor * accuracyCircleFillColor
精度圈 填充颜色
Definition: BMKLocationViewDisplayParam.h:33
BMKLocationViewDisplayParam::accuracyCircleStrokeColor
UIColor * accuracyCircleStrokeColor
精度圈 边框颜色
Definition: BMKLocationViewDisplayParam.h:35
BMKLocationViewDisplayParam::locationViewAroundArrowsImage
UIImage * locationViewAroundArrowsImage
箭头样式定位图标周边箭头轮廓图片，箭头向上为正，since 6.5.7
Definition: BMKLocationViewDisplayParam.h:68
BMKLocationViewDisplayParam::locationViewImgName
NSString * locationViewImgName
定位图标名称，需要将该图片放到 mapapi.bundle/images 目录下
Definition: BMKLocationViewDisplayParam.h:41
BMKLocationViewDisplayParam::isRotateAngleValid
BOOL isRotateAngleValid
跟随态旋转角度是否生效，默认YES
Definition: BMKLocationViewDisplayParam.h:39
BMKLocationViewDisplayParam::locationViewCenterImageSizeScale
CGFloat locationViewCenterImageSizeScale
箭头样式定位图标中心圆点图片大小缩放系数，默认为1，可设置范围0.1～2.0，基于固定尺寸CGSizeMake(30, 30)缩放，since 6.5.7
Definition: BMKLocationViewDisplayParam.h:66
BMKLocationViewDisplayParam::locationViewCenterImage
UIImage * locationViewCenterImage
箭头样式定位图标中心图片，无方向，since 6.5.7
Definition: BMKLocationViewDisplayParam.h:62
BMKLocationViewDisplayParam::canShowCallOut
BOOL canShowCallOut
是否显示气泡，默认YES
Definition: BMKLocationViewDisplayParam.h:45
BMKLocationViewDisplayParam::locationViewImageNew
UIImage * locationViewImageNew
新版用户自定义定位图标，since 6.5.7
Definition: BMKLocationViewDisplayParam.h:53
BMKLocationViewDisplayParam::accuracyCircleBorderWidth
CGFloat accuracyCircleBorderWidth
精度圈 边框宽度，默认1.6point，since 6.5.7
Definition: BMKLocationViewDisplayParam.h:37
BMKLocationViewDisplayParam::locationViewHierarchy
LocationViewHierarchy locationViewHierarchy
locationView在mapview上的层级 默认值为LOCATION_VIEW_HIERARCHY_BOTTOM
Definition: BMKLocationViewDisplayParam.h:47
BMKLocationViewDisplayParam::locationViewCenterGifImageFilePath
NSString * locationViewCenterGifImageFilePath
箭头样式定位图标中心圆点gif图文件路径，无方向，since 6.5.7
Definition: BMKLocationViewDisplayParam.h:64
BMKLocationViewDisplayParam::locationViewGifImageFilePath
NSString * locationViewGifImageFilePath
定位图标整体样式自定义gif图文件路径，since 6.5.7
Definition: BMKLocationViewDisplayParam.h:55
BMKLocationViewDisplayParam::isAccuracyCircleShow
BOOL isAccuracyCircleShow
精度圈是否显示，默认YES
Definition: BMKLocationViewDisplayParam.h:31
BMKLocationViewDisplayParam::locationViewOffsetX
CGFloat locationViewOffsetX
定位图标X轴偏移量(屏幕坐标)
Definition: BMKLocationViewDisplayParam.h:27
BMKLocationViewDisplayParam
此类表示定位图层自定义样式参数
Definition: BMKLocationViewDisplayParam.h:24
NS_ENUM
typedef NS_ENUM(NSUInteger, LocationViewHierarchy)
Definition: BMKLocationViewDisplayParam.h:18