Be a good XML citizen and always write out schemaLocation. Use serialize on ol.parser.XML so that we don't have to set xmlns manually.
27 lines
844 B
XML
27 lines
844 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/kml/2.2 http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd">
|
|
<Document>
|
|
<name>Polygon.kml</name>
|
|
<open>0</open>
|
|
<Placemark>
|
|
<name>SF Marina Harbor Master</name>
|
|
<MultiGeometry>
|
|
<LineString>
|
|
<!-- north wall -->
|
|
<coordinates>
|
|
-122.4425587930444,37.80666418607323,0
|
|
-122.4428379594768,37.80663578323093,0
|
|
</coordinates>
|
|
</LineString>
|
|
<LineString>
|
|
<!-- south wall -->
|
|
<coordinates>
|
|
-122.4425509770566,37.80662588061205,0
|
|
-122.4428340530617,37.8065999493009,0
|
|
</coordinates>
|
|
</LineString>
|
|
</MultiGeometry>
|
|
</Placemark>
|
|
</Document>
|
|
</kml>
|