Taos API Reference
    Preparing search index...

    Interface StreetViewOptions

    interface StreetViewOptions {
        apiKey: string;
        container: HTMLElement;
        lon: number;
        lat: number;
        pov?: StreetViewPov;
        onPovChanged?: (pov: StreetViewPov) => void;
        onPositionChanged?: (lon: number, lat: number) => void;
    }
    Index

    Properties

    apiKey: string
    container: HTMLElement

    The element the panorama renders into (sized by CSS).

    lon: number

    Initial location.

    lat: number

    Initial point-of-view. Default heading 0, pitch 0.

    onPovChanged?: (pov: StreetViewPov) => void

    Fired when the user pans/zooms the panorama.

    onPositionChanged?: (lon: number, lat: number) => void

    Fired when the panorama snaps to a new street position (drag down the road / click).