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

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

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

A class specifying which major viewing modes are enabled. By default all major viewing modes are enabled.

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

Constructor Summary
protected StreetviewFeatures()
          Protected constructor required for JS overlay.
 
Method Summary
static StreetviewFeatures newInstance()
          Returns a new instance of StreetviewFeatures class.
 StreetviewFeatures setStreetView(boolean streetView)
          The streetView viewing mode shows panoramic images taken from street level.
 StreetviewFeatures setUserPhotos(boolean userPhotos)
          The userPhotos viewing mode allows viewing of user generated 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

StreetviewFeatures

protected StreetviewFeatures()
Protected constructor required for JS overlay.

Method Detail

newInstance

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


setStreetView

public final StreetviewFeatures setStreetView(boolean streetView)
The streetView viewing mode shows panoramic images taken from street level. This is the standard viewing mode of StreetviewPanoramaWidget

Parameters:
streetView - set to false to disable streetView viewing mode.
Returns:
this StreetviewFeatures object, for convenience when using the Builder pattern.

setUserPhotos

public final StreetviewFeatures setUserPhotos(boolean userPhotos)
The userPhotos viewing mode allows viewing of user generated photos. When both this feature and the streetView feature is enabled, photos will automatically appear when available as thumbnails in the top right corner of the Street View panorama. Photos may also be displayed programmatically using the StreetviewPanoramaWidget.setUserPhoto(PhotoSpec) function.

Parameters:
userPhotos - set to false to disable userPhoto viewing mode.
Returns:
this StreetviewFeatures object, for convenience when using the Builder pattern.