uPano
v2.3
|
Component for downloading panoramas from Google Street View More...
Public Types | |
enum | LoadType { LoadType.id, LoadType.location } |
Types of downloading panoramas More... | |
enum | RegisterAs { RegisterAs.loadMap = 0, RegisterAs.downloadStreetViewImage = 1 } |
How to register a request More... | |
Public Member Functions | |
GoogleStreetViewRequest | Download () |
Start downloading the panorama More... | |
Static Public Member Functions | |
static GoogleStreetViewRequest | DownloadByID (string key, string id, int zoom=3, string language="en", RegisterAs registerAs=RegisterAs.loadMap) |
Download panorama by id More... | |
static GoogleStreetViewRequest | DownloadByLocation (string key, double lng, double lat, int zoom=3, string language="en", RegisterAs registerAs=RegisterAs.loadMap) |
Download panorama by location More... | |
Public Attributes | |
Action< GoogleStreetViewRequest > | OnError |
Action that occurs when the request is failed More... | |
Action | OnLoaded |
Action that occurs when a panorama or zoom level is loaded. More... | |
string | apiKey |
Google API key More... | |
bool | directions = true |
Show directions to neighboring panoramas More... | |
GameObject | directionPrefab |
Prefab of a direction arrow More... | |
LoadType | loadType = LoadType.id |
Type of downloading a panorama More... | |
double | locationLat |
Latitude of a panorama More... | |
double | locationLng |
Longitude of a panorama More... | |
GoogleStreetViewMeta | meta |
Metadata for the current panorama. More... | |
string | panoID |
ID of a panorama More... | |
bool | progressive = true |
Use progressive loading panoramas (zoom - 0, 1, 2, 3, 4) More... | |
int | zoom = 3 |
Zoom of panorama (0-4). Size of side = 512 * 2 ^ zoom More... | |
RegisterAs | registerAs = RegisterAs.loadMap |
How to register a request More... | |
Additional Inherited Members | |
Properties inherited from InfinityCode.uPano.Plugins.Plugin | |
Pano | pano [get] |
Reference to the panorama More... | |
PanoRenderer | panoRenderer [get] |
Reference to the pano renderer More... | |
Component for downloading panoramas from Google Street View
GoogleStreetViewRequest InfinityCode.uPano.Services.GoogleStreetView.Download | ( | ) |
Start downloading the panorama
|
static |
Download panorama by id
key | Google API key |
id | ID of the panorama |
zoom | Zoom of panorama (0-4). Size of side = 512 * 2 ^ zoom |
language | Language code of the meta |
registerAs | How to register a request |
|
static |
Download panorama by location
key | Google API key |
lng | Longitude |
lat | Latitude |
zoom | Zoom of panorama (0-4). Size of side = 512 * 2 ^ zoom |
language | Language code of the meta |
registerAs | How to register a request |
string InfinityCode.uPano.Services.GoogleStreetView.apiKey |
Google API key
GameObject InfinityCode.uPano.Services.GoogleStreetView.directionPrefab |
Prefab of a direction arrow
bool InfinityCode.uPano.Services.GoogleStreetView.directions = true |
Show directions to neighboring panoramas
LoadType InfinityCode.uPano.Services.GoogleStreetView.loadType = LoadType.id |
Type of downloading a panorama
double InfinityCode.uPano.Services.GoogleStreetView.locationLat |
Latitude of a panorama
double InfinityCode.uPano.Services.GoogleStreetView.locationLng |
Longitude of a panorama
GoogleStreetViewMeta InfinityCode.uPano.Services.GoogleStreetView.meta |
Metadata for the current panorama.
Action<GoogleStreetViewRequest> InfinityCode.uPano.Services.GoogleStreetView.OnError |
Action that occurs when the request is failed
Action InfinityCode.uPano.Services.GoogleStreetView.OnLoaded |
Action that occurs when a panorama or zoom level is loaded.
string InfinityCode.uPano.Services.GoogleStreetView.panoID |
ID of a panorama
bool InfinityCode.uPano.Services.GoogleStreetView.progressive = true |
Use progressive loading panoramas (zoom - 0, 1, 2, 3, 4)
RegisterAs InfinityCode.uPano.Services.GoogleStreetView.registerAs = RegisterAs.loadMap |
How to register a request
int InfinityCode.uPano.Services.GoogleStreetView.zoom = 3 |
Zoom of panorama (0-4). Size of side = 512 * 2 ^ zoom