My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Documentation  
Updated Feb 4, 2010 by bj...@turban.no

Installation

  1. Download and unzip Ext.ux.GEarthPanel-1.1.1.zip: http://code.google.com/p/ext-js-google-earth-api/downloads/list
  2. Click on example.html

Functions

fetchKml(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.


Events

earthLoaded

Fired when Google Earth panel and instance are ready.

earthPanel.on('earthLoaded', function(){
  ...
});
Comment by develop....@gmail.com, Sep 19, 2009

Very Good i like your project , Thank you ,

Comment by prakshepbjani@gmail.com, Nov 19, 2011

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.

Comment by mger...@gmail.com, Dec 13, 2011

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.


Sign in to add a comment
Powered by Google Project Hosting