aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Gauthier <philippe.gauthier@deuxpi.ca>2012-08-09 02:23:10 +0000
committerJoey Hess <joey@kitenet.net>2012-08-24 23:24:47 -0400
commitd5b2dfd0e4fa3416f8396bb07f35c365e056648b (patch)
tree0169166f39a68d2e995a66efdc0e319fd6e346ad
parent3da366b44bb4a8e5c863e91adbc93158bc548e60 (diff)
downloadikiwiki-d5b2dfd0e4fa3416f8396bb07f35c365e056648b.tar
ikiwiki-d5b2dfd0e4fa3416f8396bb07f35c365e056648b.tar.gz
Add Document tag to OSM plugin KML output
(cherry picked from commit 519d35368e2f1e7fe1fce577fe7d71ef9bd5c07e)
-rw-r--r--IkiWiki/Plugin/osm.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/osm.pm b/IkiWiki/Plugin/osm.pm
index 6ba2524d8..764767525 100644
--- a/IkiWiki/Plugin/osm.pm
+++ b/IkiWiki/Plugin/osm.pm
@@ -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);