lookAtLinear static method

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

Generates KML code for a 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 LookAt element.

Implementation

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