|
Documentation
Installation
FunctionsfetchKml(kmlURL)Load and display a KML file. earthPanel.fetchKml('http://earthatlas.info/kml/statistics/infant_mortality_rate_2005_prism.kmz');findLocation(location)Find/fly to location. earthPanel.findLocation('Oslo');getEarth()Returns Google Earth instance. var earthInstance = earthPanel.getEarth(); getLayersPanel()Returns FormPanel with checkboxes for each Google Earth layer. var layersPanel = earthPanel.getLayersPanel(); getLocationPanel()Returns FormPanel for location search/fly to. var locationPanel = earthPanel.getLocationPanel(); getOptionsPanel()Returns FormPanel with checkboxes for each Google Earth option. var optionsPanel = earthPanel.getOptionsPanel(); setLayers(layersObj)Set Google Earth layers. setOptions(optionsObj)Set Google Earth options. EventsearthLoadedFired when Google Earth panel and instance are ready. earthPanel.on('earthLoaded', function(){
...
});
|
► Sign in to add a comment
Very Good i like your project , Thank you ,
Hi there, it very usefull and nice thinking to develop interactive web application with GE Plugin.
Currently i am using and working on this. but i have one suggestion/idea that when i was add the kml file and load into treepanel, it was just listing the kml placemarks. but one step ahead, i want to make/modify that tree with listners for kmlplacemarks and flytoview on the GE.
is it possible to make this? pl. suggest me?
Thanks.
You need to read documentation about GE-API. There is a command there that makes the camera fly to the view of the KML. Program it into the code.