Follow us on GitHub

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

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

public class StreetViewPov
extends JavaScriptObject

A point of view object which specifies the camera's orientation at the Street View panorama's position. The point of view is defined as heading, pitch and zoom.


Constructor Summary
protected StreetViewPov()
          A point of view object which specifies the camera's orientation at the Street View panorama's position.
 
Method Summary
 int getHeading()
          gets The camera heading in degrees relative to true north.
 int getPitch()
          gets The camera pitch in degrees, relative to the street view vehicle.
 int getZoom()
          gets The zoom level.
static StreetViewPov newInstance()
          creates A point of view object which specifies the camera's orientation at the Street View panorama's position.
 void setHeading(int heading)
          sets The camera heading in degrees relative to true north.
 void setPitch(int pitch)
          sets The camera pitch in degrees, relative to the street view vehicle.
 void setZoom(int zoom)
          sets The zoom level.
 
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

StreetViewPov

protected StreetViewPov()
A point of view object which specifies the camera's orientation at the Street View panorama's position. The point of view is defined as heading, pitch and zoom. use newInstance();

Method Detail

newInstance

public static final StreetViewPov newInstance()
creates A point of view object which specifies the camera's orientation at the Street View panorama's position. The point of view is defined as heading, pitch and zoom.


setHeading

public final void setHeading(int heading)
sets The camera heading in degrees relative to true north. True north is 0°, east is 90°, south is 180°, west is 270°.

Parameters:
heading -

getHeading

public final int getHeading()
gets The camera heading in degrees relative to true north. True north is 0°, east is 90°, south is 180°, west is 270°.


setPitch

public final void setPitch(int pitch)
sets The camera pitch in degrees, relative to the street view vehicle. Ranges from 90° (directly upwards) to -90° (directly downwards).

Parameters:
pitch -

getPitch

public final int getPitch()
gets The camera pitch in degrees, relative to the street view vehicle. Ranges from 90° (directly upwards) to -90° (directly downwards).


setZoom

public final void setZoom(int zoom)
sets The zoom level. Fully zoomed-out is level 0, zooming in increases the zoom level.

Parameters:
zoom -

getZoom

public final int getZoom()
gets The zoom level. Fully zoomed-out is level 0, zooming in increases the zoom level.



Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.