com.google.gwt.maps.client.streetview
Class StreetviewPanoramaOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.streetview.StreetviewPanoramaOptions

public class StreetviewPanoramaOptions
extends com.google.gwt.core.client.JavaScriptObject

A class representing the options passed to the StreetviewPanoramaWidget constructor.

See Also:
"http://code.google.com/apis/maps/documentation/reference.html#GStreetviewPanoramaOptions"

Constructor Summary
protected StreetviewPanoramaOptions()
          Protected constructor required for JS overlay.
 
Method Summary
static StreetviewPanoramaOptions newInstance()
          Returns a new instance of StreetviewPanoramaOptions class.
 StreetviewPanoramaOptions setEnableFullScreen(boolean enableFullScreen)
          By default, the panorama viewer features a full-screen control in the upper right corner.
 StreetviewPanoramaOptions setFeatures(StreetviewFeatures features)
          By default, the panorama viewer will enable all major viewing modes.
 StreetviewPanoramaOptions setLatLng(LatLng latLng)
          Sets the LatLng at which to open the flash viewer.
 StreetviewPanoramaOptions setPov(Pov pov)
          The camera orientation with which to open the flash viewer.
 StreetviewPanoramaOptions setUserPhotosOptions(StreetviewUserPhotosOptions userPhotosOptions)
          Specifies options for displayed user photos.
 
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

StreetviewPanoramaOptions

protected StreetviewPanoramaOptions()
Protected constructor required for JS overlay.

Method Detail

newInstance

public static StreetviewPanoramaOptions newInstance()
Returns a new instance of StreetviewPanoramaOptions class.


setEnableFullScreen

public final StreetviewPanoramaOptions setEnableFullScreen(boolean enableFullScreen)
By default, the panorama viewer features a full-screen control in the upper right corner. To exclude the full-screen control, set this flag to false.

Parameters:
enableFullScreen - if false full-screen control will be disabled, it will be enabled otherwise.
Returns:
this StreetviewPanoramaOptions object, for convenience when using the Builder pattern.

setFeatures

public final StreetviewPanoramaOptions setFeatures(StreetviewFeatures features)
By default, the panorama viewer will enable all major viewing modes. This flag may be used to selectively enable or disable certain modes.

Parameters:
features - the StreetviewFeatures instance to specify viewing modes to enable.
Returns:
this StreetviewPanoramaOptions object, for convenience when using the Builder pattern.

setLatLng

public final StreetviewPanoramaOptions setLatLng(LatLng latLng)
Sets the LatLng at which to open the flash viewer.

Parameters:
latLng - the LatLng at which to open the flash viewer.
Returns:
this StreetviewPanoramaOptions object, for convenience when using the Builder pattern.

setPov

public final StreetviewPanoramaOptions setPov(Pov pov)
The camera orientation with which to open the flash viewer.

Parameters:
pov - the camera orientation with which to open the flash viewer.
Returns:
this StreetviewPanoramaOptions object, for convenience when using the Builder pattern.

setUserPhotosOptions

public final StreetviewPanoramaOptions setUserPhotosOptions(StreetviewUserPhotosOptions userPhotosOptions)
Specifies options for displayed user photos. This optional property is ignored unless the userPhotos feature is enabled using setFeatures(StreetviewFeatures) method.

Parameters:
userPhotosOptions - the StreetviewUserPhotosOptions instance to specify user photos options.
Returns:
this StreetviewPanoramaOptions object, for convenience when using the Builder pattern.