sendTour method
KML services:
Visualizing the uploaded KML on LG command: echo "http://lg1:81/$projectname.kml" > /var/www/html/kmls.txt'
Sending tour to the Google Earth using the KML file and the tourname ex: Orbit
Sends and starts a tour
into the Google Earth.
Implementation
///Visualizing the uploaded KML on LG command: echo "http://lg1:81/$projectname.kml" > /var/www/html/kmls.txt'
///Sending tour to the Google Earth using the KML file and the tourname ex: Orbit
/// Sends and starts a `tour` into the Google Earth.
Future<void> sendTour(String tourKml, String tourName) async {
final fileName = '$tourName.kml';
try {
final kmlFile = await _fileService.createFile(fileName, tourKml);
await _sshData.uploadKml(kmlFile, fileName);
await _sshData
.execute('echo "\n$_url/$fileName" >> /var/www/html/kmls.txt');
} catch (e) {
// ignore: avoid_print
print(e.toString());
}
}