IndoorMapSDK
室内地图SDK参考文档
 全部  函数 变量 属性
OIMMapView.h
1 //
2 // OIMMapView.h
3 // IndoorMapSDK
4 //
5 // Created by Macro on 15/11/27.
6 // Copyright © 2015年 Macro. All rights reserved.
7 //
8 
9 
22 #import <Foundation/Foundation.h>
23 #import <UIKit/UIKit.h>
24 #import "OIMFeature.h"
25 #import "OIMDataManager.h"
26 //#import "OIMType.h"
27 #import "OIMStyle.h"
28 
29 
30 #import "OIMMapKit.h"
31 //#import "OIMMapView+Overlay.h"
32 
33 @protocol OIMMapViewDelegate;
34 
51 @interface OIMMapView : UIView
52 
53 #pragma mark
54 
62 +(NSString*)getVersion;
63 
71 +(NSString*)getSubVersion;
72 
83 @property(nonatomic, strong)NSString* key;
84 
93 @property(nonatomic, strong)NSString* resourcePath;
94 
100 @property(nonatomic, weak)id<OIMMapViewDelegate> delegate;
101 
102 
103 #pragma mark
104 
113 @property(nonatomic, strong)OIMDataManager* dataManager;
114 
130 @property(nonatomic, strong)NSString* buildingId;
131 
145 @property(nonatomic)int floorNo;
146 
147 
164 -(NSArray*)getFloorList;
165 
187 -(void)setBuildingId:(NSString *)buildingId floorNo:(int)floorNo;
188 
189 
190 #pragma mark
191 
200 @property(nonatomic)BOOL showRoutePlanning;
201 
212 -(int)setRoutePlanning:(OIMFeature*)feature;
213 
222 @property(nonatomic)BOOL showLocationPoint;
223 
236 -(int)setLocationPoint:(OIMPoint)point orientation:(float)orientation accuracy:(float)accuracy;
237 
248 @property(nonatomic)int followingMode;
249 
258 @property(nonatomic)BOOL showPlottingScale;
259 
268 @property(nonatomic)BOOL showCompass;
269 
278 @property(nonatomic)BOOL showFloorList;
279 
288 @property(nonatomic)BOOL showZoomControl;
289 
290 
291 #pragma mark
292 
301 @property(nonatomic)BOOL enableTranslate;
302 
311 @property(nonatomic)BOOL enableScale;
312 
321 @property(nonatomic)BOOL enableRotate;
322 
331 @property(nonatomic)BOOL enableIncline;
332 
341 @property(nonatomic)BOOL enableClick;
342 
351 @property(nonatomic)BOOL enableDoubleClick;
352 
361 @property(nonatomic)BOOL enableLongPress;
362 
363 
364 #pragma mark
365 
374 -(int)zoomIn;
375 
384 -(int)zoomOut;
385 
397 -(int)updateTranslation:(float)x y:(float)y;
398 
409 -(int)updateRotation:(float)radian;
410 
421 -(int)updateScale:(float)scale;
422 
435 -(int)updateIncline:(float)incline;
436 
448 -(int)resetMap;
449 
461 -(int)resetMapCenter;
462 
474 -(int)resetMapDirection;
475 
487 -(int)setCoordinateCenter:(double)longitude latitude:(double)latitude;
488 
499 -(int)setFeatureCenter:(OIMFeature*)feature;
500 
511 -(int)setFeaturesCenter:(NSArray*)features;
512 
520 @property(nonatomic, getter=getRotation, setter=setRotation:)float rotation;
521 
529 @property(nonatomic, getter=getTranslation, setter=setTranslation:)CGPoint translation;
530 
538 @property(nonatomic, getter=getScale, setter=setScale:)float scale;
539 
547 @property(nonatomic, getter=getIncline, setter=setIncline:)float incline;
548 
557 @property(nonatomic, getter=getScaleUnit, setter=setScaleUnit:)float scaleUnit;
558 
566 @property(nonatomic, readonly, getter=getMinScaleUnit)float minScaleUnit;
567 
576 @property(nonatomic, readonly, getter=getMaxScaleUnit)float maxScaleUnit;
577 
578 
579 #pragma mark
580 
581 
593 -(int)setFeature:(OIMFeature*)feature status:(OIMFeatureStatus)status;
594 
606 -(int)setFeatures:(NSArray *)featureList status:(OIMFeatureStatus)status;
607 
618 -(void)clearStatus:(OIMFeatureStatus)status;
619 
620 
632 -(int)setFeature:(OIMFeature *)feature highlight:(BOOL)highlight;
633 
634 
635 
644 @property(nonatomic)BOOL showExtension;
645 
656 -(int)loadExtensionData:(NSData*)extensionData;
657 
658 
672 -(int)setStyleById:(NSString*)poiid style:(OIMStyle*)style;
673 
687 -(int)setStyleByCategory:(int)category style:(OIMStyle*)style;
688 
704 -(int)setStyleMap:(NSDictionary*)styleMap;
705 
715 -(CGPoint)convertCoordinate:(CGPoint)coordinate;
716 
717 
718 @end
719 
725 @protocol OIMMapViewDelegate <NSObject>
726 
727 @optional
728 
738 -(void)mapView:(OIMMapView*)mapView willStartLoadingMap:(NSString*)buildingId floorNo:(int)floorNo;
739 
749 -(void)mapView:(OIMMapView*)mapView didFinishLoadingMap:(NSString*)buildingId floorNo:(int)floorNo;
750 
761 -(void)mapView:(OIMMapView*)mapView didFailLoadingMap:(NSString*)buildingId floorNo:(int)floorNo withError:(NSError *)error;
762 
772 -(void)mapView:(OIMMapView*)mapView willStartLoadingFloor:(NSString*)buildingId floorNo:(int)floorNo;
773 
783 -(void)mapView:(OIMMapView*)mapView didFinishLoadingFloor:(NSString*)buildingId floorNo:(int)floorNo;
784 
795 -(void)mapView:(OIMMapView*)mapView didFailLoadingFloor:(NSString*)buildingId floorNo:(int)floorNo withError:(NSError *)error;
796 
806 -(void)mapView:(OIMMapView*)mapView willStartRenderingMap:(NSString*)buildingId floorNo:(int)floorNo;
807 
817 -(void)mapView:(OIMMapView*)mapView didFinishRenderingMap:(NSString*)buildingId floorNo:(int)floorNo;
818 
828 -(void)mapView:(OIMMapView*)mapView willTranslate:(float)x y:(float)y;
829 
839 -(void)mapView:(OIMMapView*)mapView didTranslate:(float)x y:(float)y;
840 
849 -(void)mapView:(OIMMapView*)mapView willScale:(float)scale;
850 
859 -(void)mapView:(OIMMapView*)mapView didScale:(float)scale;
860 
869 -(void)mapView:(OIMMapView*)mapView willRotate:(float)rotation;
870 
879 -(void)mapView:(OIMMapView*)mapView didRotate:(float)rotation;
880 
889 -(void)mapView:(OIMMapView*)mapView willIncline:(float)incline;
890 
899 -(void)mapView:(OIMMapView*)mapView didIncline:(float)incline;
900 
910 -(void)mapView:(OIMMapView*)mapView willClickFeature:(double)longitude latitude:(double)latitude;
911 
920 -(void)mapView:(OIMMapView*)mapView didClickFeature:(OIMFeature*)feature;
921 
931 -(void)mapView:(OIMMapView*)mapView willLongPressFeature:(float)x y:(float)y;
932 
941 -(void)mapView:(OIMMapView*)mapView didLongPressFeature:(OIMFeature*)feature;
942 
943 
944 
945 @optional
946 
957 - (OIMAnnotationView *)mapView:(OIMMapView *)mapView viewForAnnotation:(id<OIMAnnotation>)annotation;
958 
967 - (void)mapView:(OIMMapView *)mapView didSelectAnnotationView:(OIMAnnotationView *)view;
968 
969 
980 - (OIMOverlayRenderer *)mapView:(OIMMapView *)mapView rendererForOverlay:(OIMOverlay*)overlay;
981 
982 
983 
984 
985 
986 
987 @end
988 
BOOL enableRotate
允许旋转手势的开关
Definition: OIMMapView.h:321
室内地图POI显示样式
Definition: OIMStyle.h:83
float scale
地图的缩放倍数
Definition: OIMMapView.h:538
BOOL showLocationPoint
显示当前定位点开关
Definition: OIMMapView.h:222
BOOL enableTranslate
允许移动手势的开关
Definition: OIMMapView.h:301
BOOL showCompass
显示指南针的开关
Definition: OIMMapView.h:268
NSString * getVersion()
获取主版本号
BOOL showPlottingScale
显示比例尺的开关
Definition: OIMMapView.h:258
地图事件
Definition: OIMMapView.h:725
float minScaleUnit
最小的地图比例
Definition: OIMMapView.h:566
NSString * resourcePath
资源文件的路径
Definition: OIMMapView.h:93
int resetMapCenter()
重置地图位置
BOOL showExtension
显示外延数据
Definition: OIMMapView.h:644
int resetMapDirection()
重置地图方向
NSString * key
LBS开发者KEY.
Definition: OIMMapView.h:83
BOOL showFloorList
显示楼层控件的开关
Definition: OIMMapView.h:278
CGPoint translation
地图的偏移量
Definition: OIMMapView.h:529
BOOL showZoomControl
显示缩放控件的开关
Definition: OIMMapView.h:288
BOOL enableDoubleClick
允许双击手势的开关
Definition: OIMMapView.h:351
室内POI数据结构定义
Definition: OIMFeature.h:31
int followingMode
当前的跟随模式
Definition: OIMMapView.h:248
BOOL enableClick
允许点击手势的开关
Definition: OIMMapView.h:341
Definition: OIMMapView.h:51
id< OIMMapViewDelegate > delegate
地图事件
Definition: OIMMapView.h:100
float incline
地图的倾斜角度
Definition: OIMMapView.h:547
NSString * getSubVersion()
获取次版本号
标注view
Definition: OIMAnnotationView.h:25
BOOL showRoutePlanning
显示路算结果开关
Definition: OIMMapView.h:200
三维点坐标
Definition: OIMType.h:230
float maxScaleUnit
最大的地图比例
Definition: OIMMapView.h:576
BOOL enableLongPress
允许长按手势的开关
Definition: OIMMapView.h:361
float rotation
地图的旋转角度
Definition: OIMMapView.h:520
int zoomOut()
缩小
BOOL enableScale
允许缩放手势的开关
Definition: OIMMapView.h:311
int zoomIn()
放大
BOOL enableIncline
允许倾斜手势的开关
Definition: OIMMapView.h:331
int resetMap()
重置地图
Definition: OIMDataManager.h:43
float scaleUnit
当前地图的比例
Definition: OIMMapView.h:557
OIMDataManager * dataManager
室内地图数据管理对象
Definition: OIMMapView.h:113
该类为标注点的protocol,提供了标注类的基本信息函数
Definition: OIMAnnotation.h:17