# GoogleStreetviewPanorama

Google streetview panorama

## Constructor

#### new GoogleStreetviewPanorama(panoId, apiKeyopt)

Source:
  - panorama/GoogleStreetviewPanorama.js, line 12

How to get Panorama ID

##### Parameters:

Name | Type | Attributes | Description
--- | --- | --- | ---
`panoId` | string |  | Panorama id from Google Streetview
`apiKey` | string | <optional> | Google Street View API Key

### Methods

#### getGSVLoader() → {GoogleStreetviewLoader}

Source:
  - panorama/GoogleStreetviewPanorama.js, line 91

Get GSV Loader

##### Returns:

GSV Loader instance

Type
  GoogleStreetviewLoader

#### load(panoId)

Source:
  - panorama/GoogleStreetviewPanorama.js, line 36

Load Google Street View by panorama id

##### Parameters:

Name | Type | Description
--- | --- | ---
`panoId` | string | Gogogle Street View panorama id

#### loadGSVLoader(panoId)

Source:
  - panorama/GoogleStreetviewPanorama.js, line 103

Load GSV Loader

##### Parameters:

Name | Type | Description
--- | --- | ---
`panoId` | string | Gogogle Street View panorama id

#### onLoad(canvas)

Source:
  - panorama/GoogleStreetviewPanorama.js, line 124

This will be called when panorama is loaded

##### Parameters:

Name | Type | Description
--- | --- | ---
`canvas` | HTMLCanvasElement | Canvas where the tiles have been drawn

#### reset()

Source:
  - panorama/GoogleStreetviewPanorama.js, line 135

Reset

#### setGSVLoader()

Source:
  - panorama/GoogleStreetviewPanorama.js, line 73

Set GSV Loader

#### setupGoogleMapAPI(apiKey)

Source:
  - panorama/GoogleStreetviewPanorama.js, line 56

Setup Google Map API

##### Parameters:

Name | Type | Description
--- | --- | ---
`apiKey` | string |