scripts/menu.js
/**
 * Remove certain features a simulation may have placed on Google Earth
 
 * Note: it is possible to modify this method to simply remove _all_ features that may have
 * been placed on a Google Earth instance. To be conservative, by default we will only
 * remove the features we explicitly want to get rid of. To remove all features,
 * simply iterate through and remove every last child
 
 * @param {ModelSimulator} simulator The simulator that placed features on Google Earth
 */
Remove certain features a simulation may have placed on Google Earth
Note: it is possible to modify this method to simply remove _all_ features that may have
been placed on a Google Earth instance. To be conservative, by default we will only
remove the features we explicitly want to get rid of. To remove all features,
simply iterate through and remove every last child

@param {ModelSimulator} simulator The simulator that placed features on Google Earth
Remove certain features a simulation may have placed on Google Earth Note : it is possible to modify this method to simply remove _all_ features that may have been placed on a Google Earth instance . To be conservative by default we will only remove the features we explicitly want to get rid of . To remove all features simply iterate through and remove every last child @param { ModelSimulator } simulator The simulator that placed features on Google Earth
function destroyGEFeatures(simulator) {
	if(simulator.lineStringPlacemark) {
		simulator.ge.getFeatures().removeChild(simulator.lineStringPlacemark);
	}
	if(simulator.kmzModelPlacemark) {
		simulator.ge.getFeatures().removeChild(simulator.kmzModelPlacemark);
	}
}
function destroyGEFeatures ( simulator ) { if ( simulator . lineStringPlacemark ) { simulator . ge . getFeatures ( ) . removeChild ( simulator . lineStringPlacemark ) ; } if ( simulator . kmzModelPlacemark ) { simulator . ge . getFeatures ( ) . removeChild ( simulator . kmzModelPlacemark ) ; } }
Remove certain features a simulation may have placed on Google Earth
 Note: it is possible to modify this method to simply remove _all_ features that may have
 been placed on a Google Earth instance.
Remove certain features a simulation may have placed on Google Earth Note : it is possible to modify this method to simply remove _all_ features that may have been placed on a Google Earth instance .