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

interface StreetViewTileData {
    centerHeading: number;
    tileSize: Size;
    worldSize: Size;
    getTileUrl(
        pano: string,
        tileZoom: number,
        tileX: number,
        tileY: number,
    ): string;
}

Properties

centerHeading: number

The heading (in degrees) at the center of the panoramic tiles.

tileSize: Size

The size (in pixels) at which tiles will be rendered.

worldSize: Size

The size (in pixels) of the whole panorama's "world".

Methods

  • 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.

    Parameters

    • pano: string
    • tileZoom: number
    • tileX: number
    • tileY: number

    Returns string