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

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

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

A class uniquely identifying a user contributed photo in Street View.

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

Constructor Summary
protected PhotoSpec()
          Protected constructor required for JS overlay.
 
Method Summary
static PhotoSpec newInstance()
          Returns a new instance of PhotoSpec class.
 PhotoSpec setId(java.lang.String id)
          Sets a string that uniquely identifies the photo given its repository.
 PhotoSpec setRepository(java.lang.String repository)
          Sets the repository storing the photo.
 
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

PhotoSpec

protected PhotoSpec()
Protected constructor required for JS overlay.

Method Detail

newInstance

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


setId

public final PhotoSpec setId(java.lang.String id)
Sets a string that uniquely identifies the photo given its repository. For Panoramio, this is the string representation of the panoramio 'photo_id'. See the panoramio API for information about how to obtain photo IDs given a lat/long bounding box.

Parameters:
id - a string that uniquely identifies the photo given its repository.
Returns:
this PhotoSpec object, for convenience when using the Builder pattern.

setRepository

public final PhotoSpec setRepository(java.lang.String repository)
Sets the repository storing the photo. Currently, only the value 'panoramio' is supported.

Parameters:
repository - string identifying the repository storing the photo.
Returns:
this PhotoSpec object, for convenience when using the Builder pattern.