9 #import <UIKit/UIKit.h> 10 #import <CoreMotion/CoreMotion.h> 13 #import <CoreLocation/CoreLocation.h> 14 typedef enum : NSUInteger {
20 typedef enum : NSUInteger {
30 typedef enum : NSUInteger {
37 @protocol BaiduPanoramaViewDelegate <NSObject>
54 - (void)panoramaDidLoad:(
BaiduPanoramaView *)panoramaView descreption:(NSString *)jsonStr;
62 - (void)panoramaLoadFailed:(
BaiduPanoramaView *)panoramaView error:(NSError *)error;
68 - (void)panoramaView:(
BaiduPanoramaView *)panoramaView overlayClicked:(NSString *)overlayId;
70 - (void)panoramaView:(
BaiduPanoramaView *)panoramaView didReceivedMessage:(NSDictionary *)dict;
85 @property(weak, nonatomic) id<BaiduPanoramaViewDelegate>
delegate;
94 - (id)initWithFrame:(CGRect)frame key:(NSString *)key;
100 - (id)initWithFrame:(CGRect)frame;
108 - (id)initWithFrame:(CGRect)frame mcX:(NSInteger)x mcY:(NSInteger)y;
115 - (void)setPanoramaWithPid:(NSString *)pid;
122 - (void)setPanoramaAccessKey:(NSString *)key;
128 - (void)setPanoramaWithLon:(
double)lon lat:(double)lat;
135 - (void)setPanoramaWithX:(NSInteger)x Y:(NSInteger)y;
141 - (void)setPanoramaWithUid:(NSString *)uid;
150 #pragma mark - 全景图属性设置以及获取 156 - (void)setPanoramaZoomLevel:(
int)level;
169 - (void)setPanoramaPitch:(
float)pitch;
175 - (void)setPanoramaHeading:(
float)heading;
181 - (void)setDirectionArrowImage:(UIImage *)image;
187 - (void)setDirectionArrowByUrl:(NSString *)url;
193 - (void)showDirectionArrow:(BOOL) isShow;
199 - (void)enableFastMoving:(BOOL)isOpen;
225 #pragma mark - 全景图覆盖物 236 - (void)removeOverlay:(NSString *)overlayId;
242 - (void)setAllCustomOverlaysHidden:(BOOL)hidden;
248 - (void)setPoiOverlayHidden:(BOOL)hidden;
261 - (void)setCustomOverlayAnchor:(NSString *)key x:(float)x y:(
float)y;
270 - (void)addLabelOverlayById:(NSString *)overlayId
271 coordinate:(CLLocationCoordinate2D)coor
272 height:(
double)height
273 text:(NSString *)text;
282 - (void)addImageOverlayById:(NSString *)overlayId
283 coordinate:(CLLocationCoordinate2D)coor
284 height:(
double)height
285 image:(UIImage *)image;
294 - (void)addLabelOverlayById:(NSString *)overlayId
298 text:(NSString *)text;
308 - (void)addImageOverlayById:(NSString *)overlayId
312 image:(UIImage *)image;
316 - (void)convertCoorFromScreenX:(
float)sX Y:(float)sY toMercatorX:(
double *)mX Y:(
double *)mY Z:(
double *)mZ;
float getPanoramaHeading()
BOOL isEnableFastMoving()
id< BaiduPanoramaViewDelegate > delegate
float getPanoramaZoomLevel()