flyTo method

Future<void> flyTo(
  1. double latitude,
  2. double longitude,
  3. double zoom,
  4. double tilt,
  5. double bearing,
)

Flies to a specific location on the Liquid Galaxy.

the latitude and longitude are the coordinates of the location. zoom is the zoom level and tilt and bearing are the angles.

Implementation

Future<void> flyTo(double latitude, double longitude, double zoom,
    double tilt, double bearing) async {
  if (!await sshConnection.isConnected()) {
    return;
  }
  await sshConnection.sendCommand(
      'echo "flytoview=${KMLMakers.lookAtLinear(latitude, longitude, zoom, tilt, bearing)}" > /tmp/query.txt');
}