For all who experiment with the GE API, here is some information I copied out of the VBA Object Browser of Excel.
I post it here in the KML forum, as there is no "Developer" or "API" forum.
The examples work with my GE Plus, you don't need Pro.
Eamples how to use the API with JavaScript in IE can be found
HERE and
HERE .
If anyone has additional Inforation about the API and how to use the methods, it would be nice if he/she would post it to this thread.
WARNING:
This interface is highly experimental, and is in no way supported by Google. It may be changed or omitted in future or final versions.
So, don't invest any money or time, unless you are willing to lose your investment. But if you want to experiment like me, have fun!
xav
Code:
GoogleEarth API
______________________________________________
Library KEYHOLELib
Keyhole 1.0 Type Library
____________________________
Class KHFeature
element of KEYHOLELib
KHFeature Class
Property hasView As Long
write protected
element of KEYHOLELib.KHFeature
property hasView
Property visibility As Long
element of KEYHOLELib.KHFeature
property visibility
____________________________
Class KHInterface
element of KEYHOLELib
KHInterface Class
Property autopilotSpeed As Double
element of KEYHOLELib.KHInterface
property autopilotSpeed
Function currentView(terrain As Long) As KHViewInfo
element of KEYHOLELib.KHInterface
property currentView
Property currentViewExtents As KHViewExtents
write protected
element of KEYHOLELib.KHInterface
property currentViewExtents
Function getFeatureByName(name As String) As KHFeature
element of KEYHOLELib.KHInterface
method getFeatureByName
Function getPointOnTerrainFromScreenCoords(screen_x As Double, screen_y As Double) As Double()
element of KEYHOLELib.KHInterface
method getPointOnTerrainFromScreenCoords
Sub LoadKml(kmlData As String)
element of KEYHOLELib.KHInterface
method LoadKml
Sub OpenFile(fileName As String)
element of KEYHOLELib.KHInterface
method OpenFile
Sub QuitApplication()
element of KEYHOLELib.KHInterface
method QuitApplication
Sub SaveScreenShot(fileName As String, quality As Long)
element of KEYHOLELib.KHInterface
method SaveScreenShot
Sub setFeatureView(feature As KHFeature, speed As Double)
element of KEYHOLELib.KHInterface
method setFeatureView
Sub SetRenderWindowSize(width As Long, height As Long)
element of KEYHOLELib.KHInterface
method SetRenderWindowSize
Sub setView(view As KHViewInfo, terrain As Long, speed As Double)
element of KEYHOLELib.KHInterface
method setView
Sub setViewParams(lat As Double, lon As Double, range As Double, tilt As Double, azimuth As Double, terrain As Long, speed As Double)
element of KEYHOLELib.KHInterface
method setViewParams
Property streamingProgressPercentage As Long
write protected
element of KEYHOLELib.KHInterface
property streamingProgressPercentage
____________________________
Class KHViewExtents
element of KEYHOLELib
KHViewExtents Class
Property east As Double
write protected
element of KEYHOLELib.KHViewExtents
property east
Property north As Double
write protected
element of KEYHOLELib.KHViewExtents
property north
Property south As Double
write protected
element of KEYHOLELib.KHViewExtents
property south
Property west As Double
write protected
element of KEYHOLELib.KHViewExtents
property west
____________________________
Class KHViewInfo
element of KEYHOLELib
KHViewInfo Class
Property azimuth As Double
element of KEYHOLELib.KHViewInfo
property azimuth
Property latitude As Double
element of KEYHOLELib.KHViewInfo
property latitude
Property longitude As Double
element of KEYHOLELib.KHViewInfo
property longitude
Property range As Double
element of KEYHOLELib.KHViewInfo
property range
Property tilt As Double
element of KEYHOLELib.KHViewInfo
property tilt