scripts/routeCreation.js
/**
 * Append a KML Line String to the Google Earth Instance
 * @param {String} kmlLineString A KML Line String comprised of all the necessary information needed to create
 *				   a KmlObject
 * @param {ModelSimulator} simulator The simulator to create a route for
 */
Append a KML Line String to the Google Earth Instance
@param {String} kmlLineString A KML Line String comprised of all the necessary information needed to create
a KmlObject
@param {ModelSimulator} simulator The simulator to create a route for
Append a KML Line String to the Google Earth Instance @param { String } kmlLineString A KML Line String comprised of all the necessary information needed to create a KmlObject @param { ModelSimulator } simulator The simulator to create a route for
function appendKmlLineStringToEarth(kmlLineString, simulator) {
	var parsedKmlLineString = ge.parseKml(kmlLineString); 
	simulator.lineStringPlacemark = ge.createPlacemark(''); 
	simulator.lineStringPlacemark.setGeometry(parsedKmlLineString); 
	simulator.lineStringPlacemark.setStyleSelector(
		ModelSimulator.geHelper.createLineStyle(
			{
				width: 10,
				color: '88F07814'
			}
		)
	);
	ge.getFeatures().appendChild(simulator.lineStringPlacemark); 
}
function appendKmlLineStringToEarth ( kmlLineString , simulator ) { var parsedKmlLineString = ge . parseKml ( kmlLineString ) ; simulator . lineStringPlacemark = ge . createPlacemark ( '' ) ; simulator . lineStringPlacemark . setGeometry ( parsedKmlLineString ) ; simulator . lineStringPlacemark . setStyleSelector ( ModelSimulator . geHelper . createLineStyle ( { width : 10 , color : '88F07814' } ) ) ; ge . getFeatures ( ) . appendChild ( simulator . lineStringPlacemark ) ; }
Append a KML Line String to the Google Earth Instance
 @param {String} kmlLineString A KML Line String comprised of all the necessary information needed to create
                                 a KmlObject
 @param {ModelSimulator} simulator The simulator to create a route for
Append a KML Line String to the Google Earth Instance @param { String } kmlLineString A KML Line String comprised of all the necessary information needed to create a KmlObject @param { ModelSimulator } simulator The simulator to create a route for
//Built a KmlObject from the kmlLineString //Create a KmlPlacemark to be placed on Google Earth //Associate the KmlObject with the KmlPlacemark //Add the KmlPlacemark to Google Earth