Class Index | File Index

Classes


Namespace GEarthExtensions#view


Defined in: extensions.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
This class/namespace hybrid contains various camera/view related.
Method Summary
Method Attributes Method Name and Description
<static>  
GEarthExtensions#view.createBoundsView(bounds, options)
Creates a KmlAbstractView from a bounding box.
<static>  
GEarthExtensions#view.createVantageView(cameraPoint, lookAtPoint)
Creates an abstract view with the viewer at the given camera point, looking towards the given look at point.
<static>  
GEarthExtensions#view.deserialize(viewString)
Sets the current plugin viewport to the view represented by the given string.
<static>  
GEarthExtensions#view.serialize()
Serializes the current plugin viewport into a modified base64 alphabet string.
<static>  
GEarthExtensions#view.setToBoundsView()
Creates a bounds view and sets it as the Earth plugin's view.
Namespace Detail
GEarthExtensions#view
This class/namespace hybrid contains various camera/view related.
Method Detail
<static> {KmlAbstractView} GEarthExtensions#view.createBoundsView(bounds, options)
Creates a KmlAbstractView from a bounding box.
Parameters:
{geo.Bounds} bounds
The bounding box for which to create a view.
{Object} options
The parameters of the bounds view.
{Number} options.aspectRatio
The aspect ratio (width : height) of the plugin viewport.
{Number} options.defaultRange Optional, Default: 1000
The default lookat range to use when creating a view for a degenerate, single-point bounding box.
{Number} options.scaleRange Optional, Default: 1.5
A scaling factor by which to multiple the lookat range.

<static> {KmlAbstractView} GEarthExtensions#view.createVantageView(cameraPoint, lookAtPoint)
Creates an abstract view with the viewer at the given camera point, looking towards the given look at point. For best results, use ALTITUDE_ABSOLUTE camera and look at points.
Parameters:
{PointOptions|geo.Point} cameraPoint
The viewer location.
{PointOptions|geo.Point} lookAtPoint
The location to look at/towards.

<static> GEarthExtensions#view.deserialize(viewString)
Sets the current plugin viewport to the view represented by the given string.
Parameters:
{String} viewString
The modified base64 alphabet string representing the view to fly to. This string should've previously been calculated using GEarthExtensions#view.serialize.

<static> {String} GEarthExtensions#view.serialize()
Serializes the current plugin viewport into a modified base64 alphabet string. This method is platform and browser agnostic, and is safe to store and distribute to others.
Returns:
{String} A string representing the current viewport.
See:
http://code.google.com/apis/maps/documentation/include/polyline.js for inspiration.

<static> GEarthExtensions#view.setToBoundsView()
Creates a bounds view and sets it as the Earth plugin's view. This function takes the same parameters as GEarthExtensions#view.createBoundsView.

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 30 2012 11:34:31 GMT-0700 (PDT)