Constructor
new GoogleStreetviewPanorama(panoId, apiKeyopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
panoId |
string | Panorama id from Google Streetview |
|
apiKey |
string |
<optional> |
Google Street View API Key |
Methods
getGSVLoader() → {GoogleStreetviewLoader}
Get GSV Loader
Returns:
GSV Loader instance
load(panoId)
Load Google Street View by panorama id
Parameters:
Name | Type | Description |
---|---|---|
panoId |
string | Gogogle Street View panorama id |
loadGSVLoader(panoId)
Load GSV Loader
Parameters:
Name | Type | Description |
---|---|---|
panoId |
string | Gogogle Street View panorama id |
onLoad(canvas)
This will be called when panorama is loaded
Parameters:
Name | Type | Description |
---|---|---|
canvas |
HTMLCanvasElement | Canvas where the tiles have been drawn |
reset()
Reset
setGSVLoader()
Set GSV Loader
setupGoogleMapAPI(apiKey)
Setup Google Map API
Parameters:
Name | Type | Description |
---|---|---|
apiKey |
string |