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.
24 lines
695 B
XML
24 lines
695 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>LineString.kml</name>
|
|
<open>1</open>
|
|
<Placemark>
|
|
<name>unextruded</name>
|
|
<LineString>
|
|
<coordinates>
|
|
-122.364383,37.824664,0 -122.364152,37.824322,0
|
|
</coordinates>
|
|
</LineString>
|
|
</Placemark>
|
|
<Placemark>
|
|
<name>extruded</name>
|
|
<LineString>
|
|
<coordinates>
|
|
-122.364167,37.824787,50 -122.363917,37.824423,50
|
|
</coordinates>
|
|
</LineString>
|
|
</Placemark>
|
|
</Document>
|
|
</kml>
|