buildOrbit method

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

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);
}