google-maps-documentation

StreetViewTileData interface

google.maps.StreetViewTileData interface

The properties of the tile set used in a Street View panorama.

Methods
getTileUrl
getTileUrl(pano, tileZoom, tileX, tileY)
Parameters: 
  • panostring
  • tileZoomnumber
  • tileXnumber
  • tileYnumber
Return Value:  string
Gets the tile image URL for the specified tile.
This is a custom method which you must implement, to supply your custom tiles. The API calls this method, supplying the following parameters:
pano is the panorama ID of the Street View tile.
tileZoom is the zoom level of the tile.
tileX is the x-coordinate of the tile.
tileY is the y-coordinate of the tile.
Your custom method must return the URL for the tile image.
Properties
centerHeading
Type:  number
The heading (in degrees) at the center of the panoramic tiles.
tileSize
Type:  Size
The size (in pixels) at which tiles will be rendered.
worldSize
Type:  Size
The size (in pixels) of the whole panorama's "world".