|KmlVec2||project (double lat, double lng, double alt, KmlAltitudeModeEnum altitudeMode)|
|void||setAbstractView (KmlAbstractView view)|
|KmlLookAt||copyAsLookAt (KmlAltitudeModeEnum altitudeMode)|
|KmlCamera||copyAsCamera (KmlAltitudeModeEnum altitudeMode)|
|GEHitTestResult||hitTest (float x, KmlUnitsEnum xUnits, float y, KmlUnitsEnum yUnits, GEHitTestModeEnum mode)|
Controls the behavior of the camera that views the scene in Google Earth.
Member Function Documentation
Returns the screen x,y coordinates of a given point on the globe.
- Returns a KmlVec2 object defining the current coordinates of a geographic point, or null if the lat/lng/alt is not currently on screen. Tip:
project()is the inverse of
Sets the camera that views the scene in Google Earth.
Returns a bounding box that completely contains the region of the globe that is currently visible. The returned box will be larger than what is strictly visible, if that is necessary to include everything that is visible.
- Returns a KmlLatLonBox corresponding to the bounding box of the current viewport or null if no part of the globe is visible.
Given a point on the screen in pixel coordinates, returns a GEHitTestResult with information about the geographic location corresponding to the point on the screen. Tip:
hitTest() is the inverse of
- Returns a GEHitTestResult, or null if the screen point is not over anything selected by mode. Note that for HIT_TEST_GLOBE, resulting altitude values will always be 0.
Event fired when the view begins changing in Earth. This event will be fired once, followed by successive viewchange events, and ending with a viewchangeend event.
Event fired when the view stops changing in Earth.
Event fired while the view is changing in Earth. This event will be triggered in rapid succession while the camera is in motion.