Rev 41 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
//________________________________________________________________________________________________________________________________________
//
// Definition of KML header and footer elements for documents, placemarks and linestrings
//
//________________________________________________________________________________________________________________________________________
const s8 KML_DOCUMENT_HEADER[] =
{
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"
"<kml xmlns=\"http://earth.google.com/kml/2.2\">\r\n"
"<Document>\r\n"
" <name>Mikrokopter GPS logging</name>\r\n"
" <StyleMap id=\"msn_ylw-pushpin\">\r\n"
" <Pair>\r\n"
" <key>normal</key>\r\n"
" <styleUrl>#sn_ylw-pushpin</styleUrl>\r\n"
" </Pair>\r\n"
" <Pair>\r\n"
" <key>highlight</key>\r\n"
" <styleUrl>#sh_ylw-pushpin</styleUrl>\r\n"
" </Pair>\r\n"
" </StyleMap>\r\n"
" <Style id=\"sn_ylw-pushpin\">\r\n"
" <IconStyle>\r\n"
" <scale>1.1</scale>\r\n"
" <Icon>\r\n"
" <href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>\r\n"
" </Icon>\r\n"
" <hotSpot x=\"20\" y=\"2\" xunits=\"pixels\" yunits=\"pixels\"/>\r\n"
" </IconStyle>\r\n"
" </Style>\r\n"
" <Style id=\"sh_ylw-pushpin\">\r\n"
" <IconStyle>\r\n"
" <scale>1.3</scale>\r\n"
" <Icon>\r\n"
" <href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>\r\n"
" </Icon>\r\n"
" <hotSpot x=\"20\" y=\"2\" xunits=\"pixels\" yunits=\"pixels\"/>\r\n"
" </IconStyle>\r\n"
" </Style>\r\n"
};
//________________________________________________________________________________________________________________________________________
//
// footer of an KML- file.
//
//________________________________________________________________________________________________________________________________________
const s8 KML_DOCUMENT_FOOTER[] =
{
" </Document>\r\n"
"</kml>\r\n"
};
//________________________________________________________________________________________________________________________________________
//
// Header of an placemark
//
//________________________________________________________________________________________________________________________________________
const s8 KML_PLACEMARK_HEADER[] =
{" <Placemark>\r\n"
" <name>flight</name>\r\n"
" <styleUrl>#msn_ylw-pushpin</styleUrl>\r\n"};
//________________________________________________________________________________________________________________________________________
//
// Footer of an placemark
//
//________________________________________________________________________________________________________________________________________
const s8 KML_PLACEMARK_FOOTER[] = {
" </Placemark>\r\n"};
//________________________________________________________________________________________________________________________________________
//
// Footer of an placemark
//
//________________________________________________________________________________________________________________________________________
const s8 KML_LINESTRING_HEADER[] = {
" <LineString>\r\n"
" <extrude>1</extrude>\r\n"
" <tessellate>1</tessellate>\r\n"
" <altitudeMode>relativeToGround</altitudeMode>\r\n"
" <coordinates>\r\n"
};
//________________________________________________________________________________________________________________________________________
//
// Footer of an linestring
//
//________________________________________________________________________________________________________________________________________
const s8 KML_LINESTRING_FOOTER[] = {
"\r\n </coordinates>"
"\r\n </LineString>\r\n"
};