Skip to content

Commit

Permalink
Add the image tag to new nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
umonkey committed Jan 9, 2025
1 parent 6319ae2 commit cf284ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/src/services/osm_client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ impl OsmClient {
}
}

// https://wiki.openstreetmap.org/wiki/Key:image
let url = format!("https://yerevan.treemaps.app/tree/{}", tree.id);
xml.push_str(&format!("<tag k=\"image\" v=\"{}\" />", url));

xml.push_str("</node>");
Ok(xml)
}
Expand Down

0 comments on commit cf284ca

Please sign in to comment.