Rev 24 | Rev 85 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 24 | Rev 41 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | const s8 KML_DOCUMENT_HEADER[] = |
8 | const s8 KML_DOCUMENT_HEADER[] = |
9 | { |
9 | { |
10 | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n" |
10 | "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n" |
11 | "<kml xmlns=\"http://earth.google.com/kml/2.2\">\r\n" |
11 | "<kml xmlns=\"http://earth.google.com/kml/2.2\">\r\n" |
12 | "<Document>\r\n" |
12 | "<Document>\r\n" |
13 | " <name>Mikrokopter GPS logging</name>\r\n" |
13 | "<name>Mikrokopter GPS logging</name>\r\n" |
14 | " <StyleMap id=\"msn_ylw-pushpin\">\r\n" |
- | |
15 | " <Pair>\r\n" |
- | |
16 | " <key>normal</key>\r\n" |
- | |
17 | " <styleUrl>#sn_ylw-pushpin</styleUrl>\r\n" |
- | |
18 | " </Pair>\r\n" |
- | |
19 | " <Pair>\r\n" |
14 | "\r\n" |
20 | " <key>highlight</key>\r\n" |
- | |
21 | " <styleUrl>#sh_ylw-pushpin</styleUrl>\r\n" |
- | |
22 | " </Pair>\r\n" |
- | |
23 | " </StyleMap>\r\n" |
- | |
24 | " <Style id=\"sn_ylw-pushpin\">\r\n" |
15 | "<Style id=\"MK_gps-style\">\r\n" |
25 | " <IconStyle>\r\n" |
- | |
26 | " <scale>1.1</scale>\r\n" |
- | |
27 | " <Icon>\r\n" |
- | |
28 | " <href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>\r\n" |
- | |
29 | " </Icon>\r\n" |
- | |
30 | " <hotSpot x=\"20\" y=\"2\" xunits=\"pixels\" yunits=\"pixels\"/>\r\n" |
- | |
31 | " </IconStyle>\r\n" |
- | |
32 | " </Style>\r\n" |
16 | "<LineStyle>\r\n" |
33 | " <Style id=\"sh_ylw-pushpin\">\r\n" |
- | |
34 | " <IconStyle>\r\n" |
- | |
35 | " <scale>1.3</scale>\r\n" |
17 | "<color>ff0000ff</color>\r\n" |
36 | " <Icon>\r\n" |
- | |
37 | " <href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>\r\n" |
- | |
38 | " </Icon>\r\n" |
18 | "<width>2</width>\r\n" |
39 | " <hotSpot x=\"20\" y=\"2\" xunits=\"pixels\" yunits=\"pixels\"/>\r\n" |
- | |
40 | " </IconStyle>\r\n" |
19 | "</LineStyle>\r\n" |
41 | " </Style>\r\n" |
20 | "</Style>\r\n" |
42 | }; |
21 | }; |
Line 51... | Line 30... | ||
51 | //________________________________________________________________________________________________________________________________________ |
30 | //________________________________________________________________________________________________________________________________________ |
Line 52... | Line 31... | ||
52 | 31 | ||
53 | 32 | ||
54 | const s8 KML_DOCUMENT_FOOTER[] = |
33 | const s8 KML_DOCUMENT_FOOTER[] = |
55 | { |
34 | { |
56 | " </Document>\r\n" |
35 | "</Document>\r\n" |
Line 64... | Line 43... | ||
64 | // Header of an placemark |
43 | // Header of an placemark |
65 | // |
44 | // |
66 | //________________________________________________________________________________________________________________________________________ |
45 | //________________________________________________________________________________________________________________________________________ |
Line 67... | Line 46... | ||
67 | 46 | ||
- | 47 | const s8 KML_PLACEMARK_HEADER[] = |
|
68 | const s8 KML_PLACEMARK_HEADER[] = |
48 | { |
69 | {" <Placemark>\r\n" |
49 | "<Placemark>\r\n" |
70 | " <name>flight</name>\r\n" |
50 | "<name>Flight</name>\r\n" |
- | 51 | "<styleUrl>#MK_gps-style</styleUrl>\r\n" |
|
Line 71... | Line 52... | ||
71 | " <styleUrl>#msn_ylw-pushpin</styleUrl>\r\n"}; |
52 | }; |
72 | 53 | ||
73 | //________________________________________________________________________________________________________________________________________ |
54 | //________________________________________________________________________________________________________________________________________ |
74 | // |
55 | // |
75 | // Footer of an placemark |
56 | // Footer of an placemark |
Line 76... | Line 57... | ||
76 | // |
57 | // |
- | 58 | //________________________________________________________________________________________________________________________________________ |
|
77 | //________________________________________________________________________________________________________________________________________ |
59 | |
- | 60 | const s8 KML_PLACEMARK_FOOTER[] = |
|
Line 78... | Line 61... | ||
78 | 61 | { |
|
79 | const s8 KML_PLACEMARK_FOOTER[] = { |
62 | "</Placemark>\r\n" |
80 | " </Placemark>\r\n"}; |
63 | }; |
81 | 64 | ||
82 | 65 | ||
Line 83... | Line 66... | ||
83 | //________________________________________________________________________________________________________________________________________ |
66 | //________________________________________________________________________________________________________________________________________ |
- | 67 | // |
|
84 | // |
68 | // Footer of an placemark |
85 | // Footer of an placemark |
- | |
86 | // |
69 | // |
87 | //________________________________________________________________________________________________________________________________________ |
70 | //________________________________________________________________________________________________________________________________________ |
88 | 71 | ||
89 | const s8 KML_LINESTRING_HEADER[] = { |
72 | const s8 KML_LINESTRING_HEADER[] = |
Line 90... | Line 73... | ||
90 | " <LineString>\r\n" |
73 | { |
91 | " <extrude>1</extrude>\r\n" |
74 | "<LineString>\r\n" |
92 | " <tessellate>1</tessellate>\r\n" |
75 | "<tessellate>1</tessellate>\r\n" |
93 | " <altitudeMode>relativeToGround</altitudeMode>\r\n" |
76 | "<altitudeMode>relativeToGround</altitudeMode>\r\n" // also possible "absolute" |
94 | " <coordinates>\r\n" |
77 | "<coordinates>\r\n" |
Line 95... | Line 78... | ||
95 | }; |
78 | }; |
- | 79 | ||
96 | 80 | //________________________________________________________________________________________________________________________________________ |
|
97 | //________________________________________________________________________________________________________________________________________ |
81 | // |
98 | // |
82 | // Footer of an linestring |