scripts/modelCreation.js
/**
 * Fetch a KMZ Model and parse it into a KmlObject for use in Google Earth
 * @callback resultParserCallback A callback function that parses the returned KmlObject in order to display it in Google Earth
 * @param {ModelSimulator} simulator The simulator to create a model for
 */
Fetch a KMZ Model and parse it into a KmlObject for use in Google Earth
@callback resultParserCallback A callback function that parses the returned KmlObject in order to display it in Google Earth
@param {ModelSimulator} simulator The simulator to create a model for
Fetch a KMZ Model and parse it into a KmlObject for use in Google Earth @callback resultParserCallback A callback function that parses the returned KmlObject in order to display it in Google Earth @param { ModelSimulator } simulator The simulator to create a model for
function fetchKMZModel(resultParserCallback, simulator) {
	google.earth.fetchKml(
		simulator.ge,
		simulator.modelURL,
		function(kmlObject){
			resultParserCallback(kmlObject, simulator);
		}
	);
}
function fetchKMZModel ( resultParserCallback , simulator ) { google . earth . fetchKml ( simulator . ge , simulator . modelURL , function ( kmlObject ) { resultParserCallback ( kmlObject , simulator ) ; } ) ; }
Fetch a KMZ Model and parse it into a KmlObject for use in Google Earth
 @callback resultParserCallback A callback function that parses the returned KmlObject in order to display it in Google Earth
 @param {ModelSimulator} simulator The simulator to create a model for
Fetch a KMZ Model and parse it into a KmlObject for use in Google Earth @callback resultParserCallback A callback function that parses the returned KmlObject in order to display it in Google Earth @param { ModelSimulator } simulator The simulator to create a model for