GoogleStreetviewPanorama

GoogleStreetviewPanorama

Google streetview panorama

Constructor

new GoogleStreetviewPanorama(panoId, apiKeyopt)

Source:
Parameters:
Name Type Attributes Description
panoId string

Panorama id from Google Streetview

apiKey string <optional>

Google Street View API Key

Methods

getGSVLoader() → {GoogleStreetviewLoader}

Source:

Get GSV Loader

Returns:

GSV Loader instance

Type
GoogleStreetviewLoader

load(panoId)

Source:

Load Google Street View by panorama id

Parameters:
Name Type Description
panoId string

Gogogle Street View panorama id

loadGSVLoader(panoId)

Source:

Load GSV Loader

Parameters:
Name Type Description
panoId string

Gogogle Street View panorama id

onLoad(canvas)

Source:

This will be called when panorama is loaded

Parameters:
Name Type Description
canvas HTMLCanvasElement

Canvas where the tiles have been drawn

reset()

Source:

Reset

setGSVLoader()

Source:

Set GSV Loader

setupGoogleMapAPI(apiKey)

Source:

Setup Google Map API

Parameters:
Name Type Description
apiKey string