|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJavaScriptObject
com.google.maps.gwt.client.MVCObject
com.google.maps.gwt.client.StreetViewPanorama
public class StreetViewPanorama
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
.
THIS SOURCE CODE IS GENERATED, DO NOT MODIFY
Nested Class Summary | |
---|---|
static interface |
StreetViewPanorama.Callback
Callback type for handling asynchronous responses from registerPanoProvider. |
static interface |
StreetViewPanorama.CloseClickHandler
This event is fired when the close button is clicked. |
static interface |
StreetViewPanorama.LinksChangedHandler
This event is fired when the panorama's links change. |
static interface |
StreetViewPanorama.PanoChangedHandler
This event is fired when the panorama's pano id changes. |
static interface |
StreetViewPanorama.PositionChangedHandler
This event is fired when the panorama's position changes. |
static interface |
StreetViewPanorama.PovChangedHandler
This event is fired when the panorama's point-of-view changes. |
static interface |
StreetViewPanorama.ResizeHandler
Developers should trigger this event on the panorama when its div changes size:
google.maps.event.trigger(panorama, 'resize')
. |
static interface |
StreetViewPanorama.VisibleChangedHandler
This event is fired when the panorama's visibility changes. |
Constructor Summary | |
---|---|
protected |
StreetViewPanorama()
Protected constructor avoids default public constructor. |
Method Summary | |
---|---|
void |
addCloseClickListener(StreetViewPanorama.CloseClickHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addCloseClickListenerOnce(StreetViewPanorama.CloseClickHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addLinksChangedListener(StreetViewPanorama.LinksChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addLinksChangedListenerOnce(StreetViewPanorama.LinksChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addPanoChangedListener(StreetViewPanorama.PanoChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addPanoChangedListenerOnce(StreetViewPanorama.PanoChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addPositionChangedListener(StreetViewPanorama.PositionChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addPositionChangedListenerOnce(StreetViewPanorama.PositionChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addPovChangedListener(StreetViewPanorama.PovChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addPovChangedListenerOnce(StreetViewPanorama.PovChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addResizeListener(StreetViewPanorama.ResizeHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addResizeListenerOnce(StreetViewPanorama.ResizeHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
addVisibleChangedListener(StreetViewPanorama.VisibleChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. |
void |
addVisibleChangedListenerOnce(StreetViewPanorama.VisibleChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event. |
void |
clearCloseClickListeners()
Removes all listeners for the given event for the given instance. |
void |
clearInstanceListeners()
Removes all listeners for all events for the given instance. |
void |
clearLinksChangedListeners()
Removes all listeners for the given event for the given instance. |
void |
clearPanoChangedListeners()
Removes all listeners for the given event for the given instance. |
void |
clearPositionChangedListeners()
Removes all listeners for the given event for the given instance. |
void |
clearPovChangedListeners()
Removes all listeners for the given event for the given instance. |
void |
clearResizeListeners()
Removes all listeners for the given event for the given instance. |
void |
clearVisibleChangedListeners()
Removes all listeners for the given event for the given instance. |
static StreetViewPanorama |
create(Node container)
Creates a panorama with the passed StreetViewPanoramaOptions
. |
static StreetViewPanorama |
create(Node container,
StreetViewPanoramaOptions opts)
Creates a panorama with the passed StreetViewPanoramaOptions
. |
|
getControls()
Additional controls to attach to the panorama. |
|
getLinks()
Returns the set of navigation links for the Street View panorama. |
java.lang.String |
getPano()
Returns the current panorama ID for the Street View panorama. |
LatLng |
getPosition()
Returns the current LatLng
position for the Street View panorama. |
StreetViewPov |
getPov()
Returns the current point of view for the Street View panorama. |
boolean |
getVisible()
Returns true
if the panorama is visible. |
void |
registerPanoProvider(StreetViewPanorama.Callback provider)
Set the custom panorama provider called on pano change to load custom panoramas. |
void |
setControls(
Additional controls to attach to the panorama. |
void |
setPano(java.lang.String pano)
Sets the current panorama ID for the Street View panorama. |
void |
setPosition(LatLng latLng)
Sets the current LatLng
position for the Street View panorama. |
void |
setPov(StreetViewPov pov)
Sets the point of view for the Street View panorama. |
void |
setVisible(boolean flag)
Sets to true
to make the panorama visible. |
void |
triggerCloseClick(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerLinksChanged(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerPanoChanged(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerPositionChanged(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerPovChanged(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerResize(JavaScriptObject... varargs)
Triggers the given event. |
void |
triggerVisibleChanged(JavaScriptObject... varargs)
Triggers the given event. |
Methods inherited from class com.google.maps.gwt.client.MVCObject |
---|
bindTo, bindTo, bindTo, bindTo, changed, create, get, notify, set, setValues, setValues, unbind, unbindAll |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected StreetViewPanorama()
Method Detail |
---|
public static StreetViewPanorama create(Node container, StreetViewPanoramaOptions opts)
StreetViewPanoramaOptions
.
public static StreetViewPanorama create(Node container)
StreetViewPanoramaOptions
.
public final void addCloseClickListener(StreetViewPanorama.CloseClickHandler handler)
public final void addCloseClickListenerOnce(StreetViewPanorama.CloseClickHandler handler)
public final void addLinksChangedListener(StreetViewPanorama.LinksChangedHandler handler)
public final void addLinksChangedListenerOnce(StreetViewPanorama.LinksChangedHandler handler)
public final void addPanoChangedListener(StreetViewPanorama.PanoChangedHandler handler)
public final void addPanoChangedListenerOnce(StreetViewPanorama.PanoChangedHandler handler)
public final void addPositionChangedListener(StreetViewPanorama.PositionChangedHandler handler)
public final void addPositionChangedListenerOnce(StreetViewPanorama.PositionChangedHandler handler)
public final void addPovChangedListener(StreetViewPanorama.PovChangedHandler handler)
public final void addPovChangedListenerOnce(StreetViewPanorama.PovChangedHandler handler)
public final void addResizeListener(StreetViewPanorama.ResizeHandler handler)
public final void addResizeListenerOnce(StreetViewPanorama.ResizeHandler handler)
public final void addVisibleChangedListener(StreetViewPanorama.VisibleChangedHandler handler)
public final void addVisibleChangedListenerOnce(StreetViewPanorama.VisibleChangedHandler handler)
public final void clearCloseClickListeners()
public final void clearInstanceListeners()
public final void clearLinksChangedListeners()
public final void clearPanoChangedListeners()
public final void clearPositionChangedListeners()
public final void clearPovChangedListeners()
public final void clearResizeListeners()
public final void clearVisibleChangedListeners()
public finalgetControls()
<div>
to the
MVCArray
corresponding to the
ControlPosition
where it should be rendered.
public finalgetLinks()
public final java.lang.String getPano()
public final LatLng getPosition()
LatLng
position for the Street View panorama.
public final StreetViewPov getPov()
public final boolean getVisible()
true
if the panorama is visible. It does not specify whether Street View
imagery is available at the specified position.
public final void registerPanoProvider(StreetViewPanorama.Callback provider)
public final void setControls(controls)
<div>
to the
MVCArray
corresponding to the
ControlPosition
where it should be rendered.
public final void setPano(java.lang.String pano)
public final void setPosition(LatLng latLng)
LatLng
position for the Street View panorama.
public final void setPov(StreetViewPov pov)
public final void setVisible(boolean flag)
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>
.
public final void triggerCloseClick(JavaScriptObject... varargs)
public final void triggerLinksChanged(JavaScriptObject... varargs)
public final void triggerPanoChanged(JavaScriptObject... varargs)
public final void triggerPositionChanged(JavaScriptObject... varargs)
public final void triggerPovChanged(JavaScriptObject... varargs)
public final void triggerResize(JavaScriptObject... varargs)
public final void triggerVisibleChanged(JavaScriptObject... varargs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |