|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.mvc.MVCObject<StreetViewPanoramaImpl>
com.google.gwt.maps.client.streetview.StreetViewPanoramaImpl
public class StreetViewPanoramaImpl
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 class extends MVCObject.
See StreetViewPanorama API Doc
Constructor Summary | |
---|---|
protected |
StreetViewPanoramaImpl()
Displays the panorama for a given LatLng or panorama ID. |
Method Summary | |
---|---|
HandlerRegistration |
addCloseClickHandler(CloseClickMapHandler handler)
This event is fired when the close button is clicked. |
HandlerRegistration |
addLinksChangeHandler(LinksChangeMapHandler handler)
This event is fired when the panorama's links change. |
HandlerRegistration |
addPanoChangeHandler(PanoChangeMapHandler handler)
This event is fired when the panorama's pano id changes. |
HandlerRegistration |
addPositionChangeHandler(PositionChangeMapHandler handler)
This event is fired when the panorama's position changes. |
HandlerRegistration |
addPovChangeHandler(PovChangeMapHandler handler)
This event is fired when the panorama's point-of-view changes. |
HandlerRegistration |
addResizeHandler(ResizeMapHandler handler)
Developers should trigger this event on the panorama when its div changes size: google.maps.event.trigger(panorama, 'resize'). |
HandlerRegistration |
addVisibleChangeHandler(VisibleChangeMapHandler handler)
This event is fired when the panorama's visibility changes. |
JsArray<StreetViewLink> |
getLinks()
Returns the set of navigation links for the Street View panorama. |
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. |
static StreetViewPanoramaImpl |
newInstance(Element element,
StreetViewPanoramaOptions options)
creates Displays the panorama for a given LatLng or panorama ID. |
void |
registerPanoProvider(StreetViewPanoramaProvider provider)
Set the custom panorama provider called on pano change to load custom panoramas. |
void |
setControls(MVCArray<Element> controls)
TODO Additional controls to attach to the panorama. |
void |
setPano(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 visible)
Sets to true to make the panorama visible. |
Methods inherited from class com.google.gwt.maps.client.mvc.MVCObject |
---|
bindTo, bindTo, bindTo, changed, createInstanceOfMVCObject, get, notify, set, setValues, unbind, unbindAll |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected StreetViewPanoramaImpl()
<div>
or bound to a Map. This class extends MVCObject.
use newInstance();
Method Detail |
---|
public static StreetViewPanoramaImpl newInstance(Element element, StreetViewPanoramaOptions options)
<div>
or bound to a Map. This class extends MVCObject.
element
- Element
options
- StreetViewPanoramaOptions
StreetViewPanoramaImpl
public final JsArray<StreetViewLink> getLinks()
public final String getPano()
public final LatLng getPosition()
public final StreetViewPov getPov()
public final boolean getVisible()
public final void registerPanoProvider(StreetViewPanoramaProvider provider)
provider
- public final void setPano(String pano)
pano
- public final void setPosition(LatLng latLng)
latLng
- public final void setPov(StreetViewPov pov)
pov
- public final void setVisible(boolean visible)
<div>
.
visible
- public final void setControls(MVCArray<Element> controls)
<div>
to the MVCArray corresponding to the ControlPosition where it should be rendered.
controls
- public final HandlerRegistration addCloseClickHandler(CloseClickMapHandler handler)
handler
- public final HandlerRegistration addLinksChangeHandler(LinksChangeMapHandler handler)
handler
- public final HandlerRegistration addPanoChangeHandler(PanoChangeMapHandler handler)
handler
- public final HandlerRegistration addPositionChangeHandler(PositionChangeMapHandler handler)
handler
- public final HandlerRegistration addPovChangeHandler(PovChangeMapHandler handler)
handler
- public final HandlerRegistration addResizeHandler(ResizeMapHandler handler)
handler
- public final HandlerRegistration addVisibleChangeHandler(VisibleChangeMapHandler handler)
handler
-
|
Follow us on GitHub |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |