My Project
Instance Methods | Properties | List of all members
BaiduPanoramaView Class Reference

#import <BaiduPanoramaView.h>

Inheritance diagram for BaiduPanoramaView:

Instance Methods

(id) - initWithFrame:key:
 
(id) - initWithFrame:
 
(id) - initWithFrame:mcX:mcY:
 
(void) - setPanoramaWithPid:
 
(void) - setPanoramaAccessKey:
 
(void) - setPanoramaWithLon:lat:
 
(void) - setPanoramaWithX:Y:
 
(void) - setPanoramaWithUid:
 
(void) - setPanoramaWithUid:type:
 
(void) - setPanoramaZoomLevel:
 
(void) - setPanoramaImageLevel:
 
(void) - setPanoramaPitch:
 
(void) - setPanoramaHeading:
 
(void) - setDirectionArrowImage:
 
(void) - setDirectionArrowByUrl:
 
(void) - showDirectionArrow:
 
(void) - enableFastMoving:
 
(BOOL) - isEnableFastMoving
 
(float) - getPanoramaZoomLevel
 
(float) - getPanoramaPitch
 
(float) - getPanoramaHeading
 
(float) - getPanoramaFOV
 
(void) - addOverlay:
 
(void) - removeOverlay:
 
(void) - setAllCustomOverlaysHidden:
 
(void) - setPoiOverlayHidden:
 
(void) - removeAllOverlay
 
(void) - setCustomOverlayAnchor:x:y:
 
(void) - addLabelOverlayById:coordinate:height:text:
 
(void) - addImageOverlayById:coordinate:height:image:
 
(void) - addLabelOverlayById:X:Y:Z:text:
 
(void) - addImageOverlayById:X:Y:Z:image:
 
(void) - convertCoorFromScreenX:Y:toMercatorX:Y:Z:
 

Properties

id< BaiduPanoramaViewDelegate > delegate
 

Detailed Description

Definition at line 83 of file BaiduPanoramaView.h.

Method Documentation

§ addImageOverlayById:coordinate:height:image:()

- (void) addImageOverlayById: (NSString *)  overlayId
coordinate: (CLLocationCoordinate2D)  coor
height: (double)  height
image: (UIImage *)  image 

添加图片覆盖物

Parameters
overlayid覆盖物id
coordinate经纬度坐标
height覆盖物高度
image覆盖物image

§ addImageOverlayById:X:Y:Z:image:()

- (void) addImageOverlayById: (NSString *)  overlayId
X: (NSInteger)  x
Y: (NSInteger)  y
Z: (NSInteger)  z
image: (UIImage *)  image 

添加图片覆盖物

Parameters
overlayid覆盖物id
x墨卡托坐标x
y墨卡托坐标y
z覆盖物高度z
image显示的图片

§ addLabelOverlayById:coordinate:height:text:()

- (void) addLabelOverlayById: (NSString *)  overlayId
coordinate: (CLLocationCoordinate2D)  coor
height: (double)  height
text: (NSString *)  text 

添加文字覆盖物

Parameters
overlayid覆盖物id
coordinate经纬度坐标
height覆盖物高度
text显示的文字

§ addLabelOverlayById:X:Y:Z:text:()

- (void) addLabelOverlayById: (NSString *)  overlayId
X: (NSInteger)  x
Y: (NSInteger)  y
Z: (NSInteger)  z
text: (NSString *)  text 

添加文字覆盖物

Parameters
overlayid覆盖物id
x墨卡托坐标x
y墨卡托坐标y
z覆盖物高度z
text显示的文字

§ addOverlay:()

- (void) addOverlay: (BaiduPanoOverlay *)  overlay

添加覆盖物

Parameters
overlay抽象覆盖物

§ convertCoorFromScreenX:Y:toMercatorX:Y:Z:()

- (void) convertCoorFromScreenX: (float)  sX
Y: (float)  sY
toMercatorX: (double *)  mX
Y: (double *)  mY
Z: (double *)  mZ 

§ enableFastMoving:()

- (void) enableFastMoving: (BOOL)  isOpen

是否开启快速前进

Parameters
isOpenYES or NO

§ getPanoramaFOV()

- (float) getPanoramaFOV

获取当前全景FOV

§ getPanoramaHeading()

- (float) getPanoramaHeading

获取当前全景朝向

§ getPanoramaPitch()

- (float) getPanoramaPitch

获取当前全景俯仰角

§ getPanoramaZoomLevel()

- (float) getPanoramaZoomLevel

获取当前全景缩放级别

§ initWithFrame:()

- (id) initWithFrame: (CGRect)  frame

全景视图初始化

Parameters
frame视图的frame

§ initWithFrame:key:()

- (id) initWithFrame: (CGRect)  frame
key: (NSString *)  key 

全景视图初始化

Parameters
frame视图的frame
key百度LBS开放平台接入密钥

§ initWithFrame:mcX:mcY:()

- (id) initWithFrame: (CGRect)  frame
mcX: (NSInteger)  x
mcY: (NSInteger)  y 

全景视图初始化

Parameters
frame视图的frame
mcX百度墨卡托坐标x
mcY百度墨卡托坐标y

§ isEnableFastMoving()

- (BOOL) isEnableFastMoving

是否处于开启中

§ removeAllOverlay()

- (void) removeAllOverlay

§ removeOverlay:()

- (void) removeOverlay: (NSString *)  overlayId

移除覆盖物

Parameters
overlayId

§ setAllCustomOverlaysHidden:()

- (void) setAllCustomOverlaysHidden: (BOOL)  hidden

隐藏所有定制覆盖物

Parameters
overlayId

§ setCustomOverlayAnchor:x:y:()

- (void) setCustomOverlayAnchor: (NSString *)  key
x: (float)  x
y: (float)  y 

添加文字覆盖物

Parameters
key覆盖物key
xx锚点
yy锚点

§ setDirectionArrowByUrl:()

- (void) setDirectionArrowByUrl: (NSString *)  url

设置道路箭头指引,通过image的url

Parameters
url图片资源url

§ setDirectionArrowImage:()

- (void) setDirectionArrowImage: (UIImage *)  image

设置道路剪头image

Parameters
imageUIImage对象

§ setPanoramaAccessKey:()

- (void) setPanoramaAccessKey: (NSString *)  key

设定应用接入密钥

Parameters
key通过LBS开放平台创建应用获得

§ setPanoramaHeading:()

- (void) setPanoramaHeading: (float)  heading

设置全景图偏航角

Parameters
heading偏航角: 0~360 度 默认值: 0 度

§ setPanoramaImageLevel:()

- (void) setPanoramaImageLevel: (ImageDefinition imageDefinition

设置全景场景使用图片级别

Parameters
level图片级别 清晰度:ImageDefinition,默认值:middle

§ setPanoramaPitch:()

- (void) setPanoramaPitch: (float)  pitch

设置全景图的俯仰角

Parameters
pitch俯仰角:-90~90 度 默认值: 0 度

§ setPanoramaWithLon:lat:()

- (void) setPanoramaWithLon: (double)  lon
lat: (double)  lat 

切换全景场景至指定的地理坐标

Parameters
lon百度地理坐标经度
lat百度地理坐标纬度

§ setPanoramaWithPid:()

- (void) setPanoramaWithPid: (NSString *)  pid

切换全景场景至指定全景pid

Parameters
pid全景唯一id

§ setPanoramaWithUid:()

- (void) setPanoramaWithUid: (NSString *)  uid

切换全景场景至指定的UID下,UID为百度地图中POI唯一ID

Parameters
uid百度全景uid

§ setPanoramaWithUid:type:()

- (void) setPanoramaWithUid: (NSString *)  uid
type: (BaiduPanoramaType type 

根据POI指定UID显示全景,设置对应的街景,内景属性,因为有些POI下既有圈景又有内景

Parameters
uidPOI唯一ID
type全景类型 室内 街景

§ setPanoramaWithX:Y:()

- (void) setPanoramaWithX: (NSInteger)  x
Y: (NSInteger)  y 

切换全景场景至指定的百度墨卡托坐标

Parameters
x百度墨卡托投影坐标x
y百度墨卡托投影坐标y

§ setPanoramaZoomLevel:()

- (void) setPanoramaZoomLevel: (int)  level

设置全景场景缩放级别

Parameters
level级别:1~5 缩放级别依次变大 默认值: 2

§ setPoiOverlayHidden:()

- (void) setPoiOverlayHidden: (BOOL)  hidden

隐藏 poi 覆盖物

Parameters
overlayId

§ showDirectionArrow:()

- (void) showDirectionArrow: (BOOL)  isShow

是否显示道路箭头

Parameters
isShowYES or NO

Property Documentation

§ delegate

- (id<BaiduPanoramaViewDelegate>) delegate
readwritenonatomicweak

Definition at line 85 of file BaiduPanoramaView.h.


The documentation for this class was generated from the following file: