diff options
-rw-r--r-- | IkiWiki/Plugin/osm.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/osm.pm b/IkiWiki/Plugin/osm.pm index aa117bae2..604c15c50 100644 --- a/IkiWiki/Plugin/osm.pm +++ b/IkiWiki/Plugin/osm.pm @@ -351,6 +351,10 @@ sub writejson($;$) { my %marker = ( "type" => "Feature", "geometry" => { "type" => "Point", "coordinates" => [ $waypoints{$map}{$name}{'lon'}, $waypoints{$map}{$name}{'lat'} ] }, "properties" => $waypoints{$map}{$name} ); + # Add the name as a property + $marker{'properties'}{'name'} = $name; + # Rename desc to description (this matches the kml output) + $marker{'properties'}{'description'} = delete $marker{'properties'}{'desc'}; push @{$geojson{'features'}}, \%marker; } foreach my $linestring (@{$linestrings{$map}}) { |