uPano  v2.3
InfinityCode.uPano.Requests.GoogleStreetViewRequest Class Reference

Request for Google Street View, which works in edit and play mode More...

Inheritance diagram for InfinityCode.uPano.Requests.GoogleStreetViewRequest:
InfinityCode.uPano.Requests.StatusRequest< GoogleStreetViewRequest >

Public Member Functions

 GoogleStreetViewRequest (string key, string id, int zoom, bool downloadMeta=false, string language="en", GoogleStreetView.RegisterAs registerAs=GoogleStreetView.RegisterAs.loadMap)
 Makes a new request to Google Street View by id More...
 
 GoogleStreetViewRequest (string key, double longitude, double latitude, int zoom, string language="en", GoogleStreetView.RegisterAs registerAs=GoogleStreetView.RegisterAs.loadMap)
 Makes a new request to Google Street View by location More...
 

Static Public Member Functions

static bool IsEmptyColor (Color32 c)
 Check color for the color of blank areas More...
 

Properties

override bool keepWaiting [get]
 Indicates if coroutine should be kept suspended More...
 
Texture2D texture [get]
 Gets a result texture More...
 
- Properties inherited from InfinityCode.uPano.Requests.StatusRequest< GoogleStreetViewRequest >
abstract bool hasErrors [get]
 Gets whether the request contains an error More...
 
abstract string error [get]
 Gets an error of the request More...
 

Additional Inherited Members

- Public Attributes inherited from InfinityCode.uPano.Requests.StatusRequest< GoogleStreetViewRequest >
Action< T > OnSuccess
 Action that occurs when the request is successful More...
 
Action< T > OnError
 Action that occurs when the request is failed More...
 

Detailed Description

Request for Google Street View, which works in edit and play mode

Constructor & Destructor Documentation

◆ GoogleStreetViewRequest() [1/2]

InfinityCode.uPano.Requests.GoogleStreetViewRequest.GoogleStreetViewRequest ( string  key,
string  id,
int  zoom,
bool  downloadMeta = false,
string  language = "en",
GoogleStreetView.RegisterAs  registerAs = GoogleStreetView.RegisterAs.loadMap 
)

Makes a new request to Google Street View by id

Parameters
keyGoogle API key
idID of panorama
zoomZoom of panorama (0-4). Size of side = 512 * 2 ^ zoom
downloadMetaDownload meta data of a panorama
languageLanguage code of the meta
registerAsHow to register a request.

◆ GoogleStreetViewRequest() [2/2]

InfinityCode.uPano.Requests.GoogleStreetViewRequest.GoogleStreetViewRequest ( string  key,
double  longitude,
double  latitude,
int  zoom,
string  language = "en",
GoogleStreetView.RegisterAs  registerAs = GoogleStreetView.RegisterAs.loadMap 
)

Makes a new request to Google Street View by location

Parameters
keyGoogle API key
longitudeLongitude
latitudeLatitude
zoomZoom of panorama (0-4). Size of side = 512 * 2 ^ zoom
languageLanguage code of the meta
registerAsHow to register a request.

Member Function Documentation

◆ IsEmptyColor()

static bool InfinityCode.uPano.Requests.GoogleStreetViewRequest.IsEmptyColor ( Color32  c)
static

Check color for the color of blank areas

Parameters
cColor
Returns
True - is color of blank area, false - otherwise

Property Documentation

◆ keepWaiting

override bool InfinityCode.uPano.Requests.GoogleStreetViewRequest.keepWaiting
get

Indicates if coroutine should be kept suspended

◆ texture

Texture2D InfinityCode.uPano.Requests.GoogleStreetViewRequest.texture
get

Gets a result texture