OpenStreetMap

GSoC iD notes ... linking the API with SVG

Posted by Thomas_Hervey on 3 June 2018 in English (English)

Week 3

The end to the academic year is always frantic, but working on iD has made the last two weeks more enjoyable. I’m continually impressed by the amount of time, effort, and collaboration that has gone into making OSM what it is today. I think I’ve only scratched the surface of the codebase.

Anyways, I am currently working on linking the notes API service to an SVG display layer. I’ve hit a few bumps, but I’ve found that most things are pretty straightforward. Notes are now successfully retrieved and parsed when the map is moved, and I’ve begun working on caching. Additionally, the map data UI now has a button for toggling map notes, and a placeholder button for adding notes (just like osm.org) has been added to the map-control list. It’s a placeholder because I haven’t quite finished adding the SVG to iD’s sprite sheet.

If you have any suggestions regarding notes or the notes UI, please reach out!

New map data toggle and map-control button

Cheers and happy almost summer (northern hemisphere),

Thomas

Comment from SimonPoole on 4 June 2018 at 08:30

Given that you are making good progress (as expected :-)).

When you are done (soon), it might be a good idea to attack https://github.com/openstreetmap/iD/issues/1502

Comment from Thomas_Hervey on 4 June 2018 at 17:39

Hi SimonPoole,

Thanks for your comment. Hmm… add photos is an interesting idea. I have several other ideas floating around as well. Later on this week, I’ll check in with my mentors and see what they think about adding photos. I think my work may focus more on expanding note capabilities via tagging & categorization, or streamlining notes communication. However, adding photos is desirable as well. Stay tuned!

Login to leave a comment