scripts/menu.js
/**
 * Reset all changes a simulation made to itself and Google Earth
 * @param {ModelSimulator} simulator The simulator to reset
 */
Reset all changes a simulation made to itself and Google Earth
@param {ModelSimulator} simulator The simulator to reset
Reset all changes a simulation made to itself and Google Earth @param { ModelSimulator } simulator The simulator to reset
function resetSimulation(simulator) {
	if(simulator) {
		simulator.doAnimation = false;
		simulator.ge.getOptions().setFlyToSpeed(initialFlyToSpeed);
		destroyGEFeatures(simulator);
		simulator = null;
	}
}
function resetSimulation ( simulator ) { if ( simulator ) { simulator . doAnimation = false ; simulator . ge . getOptions ( ) . setFlyToSpeed ( initialFlyToSpeed ) ; destroyGEFeatures ( simulator ) ; simulator = null ; } }
Reset all changes a simulation made to itself and Google Earth
 @param {ModelSimulator} simulator The simulator to reset
Reset all changes a simulation made to itself and Google Earth @param { ModelSimulator } simulator The simulator to reset
//Destroying a ModelSimulation is the safest way to reset all properties and values it may have right now or in the future