-
Notifications
You must be signed in to change notification settings - Fork 3
/
kmlutils.js
68 lines (62 loc) · 1.86 KB
/
kmlutils.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
export const kmlFileHeader = `<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<name>Paths</name>
<description>Tethered Ring</description>
<Style id="faintGray">
<LineStyle>
<color>FFCFCFCF</color>
<width>1</width>
</LineStyle>
<PolyStyle>
<color>01000000</color>
</PolyStyle>
</Style>
`
export const kmlMainRingPlacemarkHeader = ` <Placemark>
<name>MainRing</name>
<description>Main Ring</description>
<styleUrl>#faintGray</styleUrl>
<LinearRing>
<extrude>0</extrude>
<tessellate>0</tessellate>
<altitudeMode>absolute</altitudeMode>
<coordinates>
`
export const kmlTetherPlacemarkHeader = ` <Placemark>
<name>Tether</name>
<description>Tether</description>
<styleUrl>#faintGray</styleUrl>
<LinearRing>
<extrude>0</extrude>
<tessellate>0</tessellate>
<altitudeMode>absolute</altitudeMode>
<coordinates>
`
export const kmlLauncherPlacemarkHeader = ` <Placemark>
<name>Launcher</name>
<description>Launcher</description>
<styleUrl>#faintGray</styleUrl>
<LinearRing>
<extrude>0</extrude>
<tessellate>0</tessellate>
<altitudeMode>absolute</altitudeMode>
<coordinates>
`
export const kmlRampSupportPlacemarkHeader = ` <Placemark>
<name>Support</name>
<description>Support Strut</description>
<styleUrl>#faintGray</styleUrl>
<LinearRing>
<extrude>0</extrude>
<tessellate>0</tessellate>
<altitudeMode>absolute</altitudeMode>
<coordinates>
`
export const kmlPlacemarkFooter = ` </coordinates>
</LinearRing>
</Placemark>
`
export const kmlFileFooter = ` </Document>
</kml>
`