IndoorMapSDK
室内地图SDK参考文档
 全部  函数 变量 属性
OIMStyle.h
1 //
2 // OIMStyle.h
3 // IndoorMapSDK
4 //
5 // Created by Macro on 16/3/1.
6 // Copyright © 2016年 Macro. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import <UIKit/UIKit.h>
11 
19 typedef enum : NSUInteger
20 {
26  OIMFontType_Default,
27 
28 } OIMFontType;
29 
30 
36 typedef enum : NSUInteger
37 {
43  OIMMarkType_TextUnderIcon,
44 
50  OIMMarkType_TextAfterIcon,
51 
57  OIMMarkType_TextBeforeIcon,
58 
64  OIMMarkType_TextOnIcon,
65 
71  OIMMarkType_Default = OIMMarkType_TextUnderIcon,
72 
73 } OIMMarkType;
74 
75 
76 
77 
83 @interface OIMStyle : NSObject
84 
94 -(instancetype)initWithImageFile:(NSString*)imageFile;
95 
111 -(instancetype)initWithFontSize:(float)fontSize fontColor:(UIColor*)fontColor fontType:(OIMFontType)fontType fontRotate:(BOOL)fontRotate markType:(OIMMarkType)markType avoidPriority:(int)avoidPriority imageFile:(NSString*)imageFile;
112 
127 -(instancetype)initWithHeight:(float)height lineColor:(UIColor*)lineColor topColor:(UIColor*)topColor sideColor:(UIColor*)sideColor sideColor2:(UIColor*)sideColor2 highlightColor:(UIColor*)highlightColor;
128 
141 -(instancetype)initWithLineSize:(float)lineSize lineColor:(UIColor*)lineColor fillColor:(UIColor*)fillColor highlightColor:(UIColor*)highlightColor;
142 
165 -(instancetype)initWithHeight:(float)height lineColor:(UIColor*)lineColor topColor:(UIColor*)topColor sideColor:(UIColor*)sideColor sideColor2:(UIColor*)sideColor2 highlightColor:(UIColor*)highlightColor lineSize:(float)lineSize fontSize:(float)fontSize fontColor:(UIColor*)fontColor fontType:(OIMFontType)fontType fontRotate:(BOOL)fontRotate markType:(OIMMarkType)markType avoidPriority:(int)avoidPriority imageFile:(NSString*)imageFile;
166 
167 
173 @property(nonatomic)float height;
174 
180 @property(nonatomic, strong)UIColor* lineColor;
181 
187 @property(nonatomic, strong)UIColor* topColor;
188 
194 @property(nonatomic, strong)UIColor* sideColor;
195 
201 @property(nonatomic, strong)UIColor* sideColor2;
202 
208 @property(nonatomic, strong)UIColor* highlightColor;
209 
215 @property(nonatomic)float lineSize;
216 
222 @property(nonatomic)float fontSize;
223 
229 @property(nonatomic, strong)UIColor* fontColor;
230 
236 @property(nonatomic)OIMFontType fontType;
237 
243 @property(nonatomic)BOOL fontRotate;
244 
250 @property(nonatomic)OIMMarkType markType;
251 
257 @property(nonatomic)int avoidPriority;
258 
264 @property(nonatomic, strong)NSString* imageFile;
265 
275 @property(nonatomic)int level;
276 
277 @end
278 
279 
NSString * imageFile
图标文件的相对路径(为空时不显示图标)
Definition: OIMStyle.h:264
室内地图POI显示样式
Definition: OIMStyle.h:83
int level
样式生效时的地图缩放级别
Definition: OIMStyle.h:275
UIColor * sideColor2
阴侧面的颜色(暂时未用)
Definition: OIMStyle.h:201
int avoidPriority
图标文字的避让优先级
Definition: OIMStyle.h:257
UIColor * highlightColor
高亮显示的颜色
Definition: OIMStyle.h:208
UIColor * lineColor
边线的颜色
Definition: OIMStyle.h:180
BOOL fontRotate
文字是否随地图旋转
Definition: OIMStyle.h:243
UIColor * topColor
顶面的颜色
Definition: OIMStyle.h:187
float lineSize
线的宽度
Definition: OIMStyle.h:215
UIColor * sideColor
阳侧面的颜色
Definition: OIMStyle.h:194
float height
拔高的高度,单位:米
Definition: OIMStyle.h:173
OIMMarkType markType
图标文字的标注类型
Definition: OIMStyle.h:250
float fontSize
字体的大小(为0时不显示文字)
Definition: OIMStyle.h:222
OIMFontType fontType
字体的类型
Definition: OIMStyle.h:236
UIColor * fontColor
字体的颜色
Definition: OIMStyle.h:229