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
.
Access by calling const {StreetViewPanorama} = await google.maps.importLibrary("streetView")
. See
https://developers.google.com/maps/documentation/javascript/libraries.
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.
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
.
Binds a View to a Model.
Sets focus on this StreetViewPanorama
. You may wish to
consider using this method along with a visible_changed
event to make sure that StreetViewPanorama
is visible before
setting focus on it. A StreetViewPanorama
that is not
visible cannot be focused.
Gets a value.
Returns the set of navigation links for the Street View panorama.
Returns the StreetViewLocation of the current panorama.
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 the current panorama ID for the Street View panorama. This id is stable within the browser's current session only.
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 the current LatLng
position for the Street View
panorama.
Returns the current point of view for the Street View panorama.
Returns the status of the panorama on completion of the
setPosition()
or setPano()
request.
Returns true
if the panorama is visible. It does not specify
whether Street View imagery is available at the specified position.
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.
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.
Set the custom panorama provider called on pano change to load custom panoramas.
Sets a value.
Sets the set of navigation links for the Street View panorama.
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.
Sets a collection of key-value pairs.
Sets the current panorama ID for the Street View panorama.
Sets the current LatLng
position for the Street View
panorama.
Sets the point of view for the Street View panorama.
Sets a collection of key-value pairs.
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>
.
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.
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.
Removes all bindings.
Generated using TypeDoc
Displays the panorama for a given
LatLng
or panorama ID. AStreetViewPanorama
object provides a Street View "viewer" which can be stand-alone within a separate<div>
or bound to aMap
.Access by calling
const {StreetViewPanorama} = await google.maps.importLibrary("streetView")
. See https://developers.google.com/maps/documentation/javascript/libraries.