]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/osm.pm
response
[git.ikiwiki.info.git] / IkiWiki / Plugin / osm.pm
index 6ba2524d81c25538671559fed0dcd19daa092b50..764767525485d9df1fda2175ec5e5e0c1f832f0e 100644 (file)
@@ -348,6 +348,7 @@ sub writekml($;$) {
                        DATA_MODE => 1, ENCODING => 'UTF-8');
                $writer->xmlDecl();
                $writer->startTag("kml", "xmlns" => "http://www.opengis.net/kml/2.2");
+               $writer->startTag("Document");
 
                # first pass: get the icons
                foreach my $name (keys %{$waypoints{$map}}) {
@@ -407,6 +408,7 @@ sub writekml($;$) {
                        $writer->endTag();
                }
                $writer->endTag();
+               $writer->endTag();
                $writer->end();
 
                writefile("pois.kml", $config{destdir} . "/$map", $output);