Options
All
  • Public
  • Public/Protected
  • All
Menu

Displays the panorama for a given LatLng or panorama ID. A StreetViewPanorama object provides a Street View "viewer" which can be stand-alone within a separate <div> or bound to a Map.

Hierarchy

Index

Constructors

constructor

Properties

controls

controls: MVCArray<HTMLElement>[]

Additional controls to attach to the panorama. To add a control to the panorama, add the control's <div> to the MVCArray corresponding to the google.maps.ControlPosition where it should be rendered.

Methods

addListener

  • Adds the given listener function to the given event name. Returns an identifier for this listener that can be used with google.maps.event.removeListener.

    Parameters

    • eventName: string
    • handler: Function

    Returns MapsEventListener

bindTo

  • bindTo(key: string, target: MVCObject, targetKey?: null | string, noNotify?: boolean): void
  • Binds a View to a Model.

    Parameters

    • key: string
    • target: MVCObject
    • Optional targetKey: null | string
    • Optional noNotify: boolean

    Returns void

get

  • get(key: string): any
  • Gets a value.

    Parameters

    • key: string

    Returns any

getLinks

  • Returns the set of navigation links for the Street View panorama.

    Returns null | (null | StreetViewLink)[]

getLocation

  • Returns the StreetViewLocation of the current panorama.

    Returns null | StreetViewLocation

getMotionTracking

  • getMotionTracking(): boolean
  • Returns the state of motion tracker. If true when the user physically moves the device and the browser supports it, the Street View Panorama tracks the physical movements.

    Returns boolean

getPano

  • getPano(): string
  • Returns the current panorama ID for the Street View panorama. This id is stable within the browser's current session only.

    Returns string

getPhotographerPov

  • Returns the heading and pitch of the photographer when this panorama was taken. For Street View panoramas on the road, this also reveals in which direction the car was travelling. This data is available after the pano_changed event.

    Returns StreetViewPov

getPosition

  • Returns the current LatLng position for the Street View panorama.

    Returns null | LatLng

getPov

  • Returns the current point of view for the Street View panorama.

    Returns StreetViewPov

getStatus

  • Returns the status of the panorama on completion of the setPosition() or setPano() request.

    Returns StreetViewStatus

getVisible

  • getVisible(): boolean
  • Returns true if the panorama is visible. It does not specify whether Street View imagery is available at the specified position.

    Returns boolean

getZoom

  • getZoom(): number
  • Returns the zoom level of the panorama. Fully zoomed-out is level 0, where the field of view is 180 degrees. Zooming in increases the zoom level.

    Returns number

notify

  • notify(key: string): void
  • Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.

    Parameters

    • key: string

    Returns void

registerPanoProvider

set

  • set(key: string, value: any): void
  • Sets a value.

    Parameters

    • key: string
    • value: any

    Returns void

setLinks

  • Sets the set of navigation links for the Street View panorama.

    Parameters

    Returns void

setMotionTracking

  • setMotionTracking(motionTracking: boolean): void
  • Sets the state of motion tracker. If true when the user physically moves the device and the browser supports it, the Street View Panorama tracks the physical movements.

    Parameters

    • motionTracking: boolean

    Returns void

setOptions

setPano

  • setPano(pano: string): void
  • Sets the current panorama ID for the Street View panorama.

    Parameters

    • pano: string

    Returns void

setPosition

  • Sets the current LatLng position for the Street View panorama.

    Parameters

    Returns void

setPov

  • Sets the point of view for the Street View panorama.

    Parameters

    Returns void

setValues

  • setValues(values?: null | object): void
  • Sets a collection of key-value pairs.

    Parameters

    • Optional values: null | object

    Returns void

setVisible

  • setVisible(flag: boolean): void
  • Sets to true to make the panorama visible. If set to false, the panorama will be hidden whether it is embedded in the map or in its own <div>.

    Parameters

    • flag: boolean

    Returns void

setZoom

  • setZoom(zoom: number): void
  • Sets the zoom level of the panorama. Fully zoomed-out is level 0, where the field of view is 180 degrees. Zooming in increases the zoom level.

    Parameters

    • zoom: number

    Returns void

unbind

  • unbind(key: string): void
  • Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.

    Parameters

    • key: string

    Returns void

unbindAll

  • unbindAll(): void

Generated using TypeDoc