buildOrbit method
Builds an orbit animation around a specific latitude and longitude.
This method computes an orbit animation based on provided latitude
, longitude
, zoom
level,
tilt
, and bearing
.
Upon creating the orbit, it automatically initiates the orbit by calling startOrbit
.
Implementation
Future<void> buildOrbit(double latitude, double longitude, double zoom,
double tilt, double bearing) async {
// Build the orbit KML
final orbit = OrbitKml.buildOrbit(
OrbitKml.tag(latitude, longitude, zoom, tilt, bearing));
// Start the orbit
await startOrbit(orbit);
}