tag static method
Implementation
static tag(double latitude, double longitude, double range, double tilt,
double bearing) {
double heading = bearing;
int orbit = 0;
String content = '';
while (orbit <= 36) {
if (heading >= 360) heading -= 360;
content += '''
<gx:FlyTo>
<gx:duration>1.2</gx:duration>
<gx:flyToMode>smooth</gx:flyToMode>
<LookAt>
<longitude>$longitude</longitude>
<latitude>$latitude</latitude>
<heading>$heading</heading>
<tilt>$tilt</tilt>
<range>$range</range>
<altitude>0</altitude>
<gx:altitudeMode>relativeToGround</gx:altitudeMode>
</LookAt>
</gx:FlyTo>
''';
heading += 10;
orbit += 1;
}
return content;
}