lookAtLinearInstant static method

String lookAtLinearInstant(
  1. double latitude,
  2. double longitude,
  3. double zoom,
  4. double tilt,
  5. double bearing,
)

Generates KML code for an instant LookAt element with linear motion.

latitude is the latitude of the location. longitude is the longitude of the location. zoom is the zoom level. tilt is the tilt angle. bearing is the bearing angle.

Returns a string containing the KML code for the instant LookAt element.

Implementation

static String lookAtLinearInstant(double latitude, double longitude, double zoom, double tilt, double bearing) =>
    '<gx:duration>0.5</gx:duration><gx:flyToMode>smooth</gx:flyToMode><LookAt><longitude>$longitude</longitude><latitude>$latitude</latitude><range>$zoom</range><tilt>$tilt</tilt><heading>$bearing</heading><gx:altitudeMode>relativeToGround</gx:altitudeMode></LookAt>';