scripts/main.js
/**
 * The callback function run if GEPlugin Instance creation is successful
 * @param {GEPlugin} instance The Google Earth Instance Object, returned when
 * 		  			 google.earth.createInstance() calls the initCB
 *					 callback function
 */
The callback function run if GEPlugin Instance creation is successful
@param {GEPlugin} instance The Google Earth Instance Object, returned when
google.earth.createInstance() calls the initCB
callback function
The callback function run if GEPlugin Instance creation is successful @param { GEPlugin } instance The Google Earth Instance Object returned when google . earth . createInstance () calls the initCB callback function
function initCB(instance) {
	ge = instance; 
	preGEInitializationTasks();
	ge.getWindow().setVisibility(true); 
	ge.getLayerRoot().enableLayerById(ge.LAYER_BORDERS, true); 
	ge.getLayerRoot().enableLayerById(ge.LAYER_ROADS, true); 
	ge.getLayerRoot().enableLayerById(ge.LAYER_BUILDINGS, true); 
	ge.getLayerRoot().enableLayerById(ge.LAYER_TERRAIN, true); 
	ge.getLayerRoot().enableLayerById(ge.LAYER_TREES, true); 
	postGEInitializationTasks();
}
function initCB ( instance ) { ge = instance ; preGEInitializationTasks ( ) ; ge . getWindow ( ) . setVisibility ( true ) ; ge . getLayerRoot ( ) . enableLayerById ( ge . LAYER_BORDERS , true ) ; ge . getLayerRoot ( ) . enableLayerById ( ge . LAYER_ROADS , true ) ; ge . getLayerRoot ( ) . enableLayerById ( ge . LAYER_BUILDINGS , true ) ; ge . getLayerRoot ( ) . enableLayerById ( ge . LAYER_TERRAIN , true ) ; ge . getLayerRoot ( ) . enableLayerById ( ge . LAYER_TREES , true ) ; postGEInitializationTasks ( ) ; }
The callback function run if GEPlugin Instance creation is successful
 @param {GEPlugin} instance The Google Earth Instance Object, returned when
                                       google.earth.createInstance() calls the initCB
                                       callback function
The callback function run if GEPlugin Instance creation is successful @param { GEPlugin } instance The Google Earth Instance Object returned when google . earth . createInstance () calls the initCB callback function
//Assign the GEPlugin object to our global variable //Make the Google Earth Plugin visible inside its div /* Draw the various Layers relevant to the Simulation application */ //Country/Area Borders, City/State/Country/Ocean/etc Labels //Roads and Road Names //3D Buildings (where available) //3D Terrain (where available) //3D Tree Models (where available)