Sometimes you add a bunch of notes and need to look at them later. Or someone adds notes and you need to look at their notes. Or someone does something with a lot of notes like closing without a good reason or leaving useless comments and you need to look at them. How do you do it? There is a link from the profile page to user’s notes. You go there and you’ll see a list of notes with their opening comments and current statuses. The problem is it’s cumbersome to use. You don’t get to see where the notes are located unless you click each one separately, then you’ll see only that one note.
What if we want to see all of the notes? Actually, how about we just see everything known about the notes on one page? That’s what I’ve done here. You can enter a username and load as many notes as you need. They are going to be displayed in a table with all their comments and status changes. Also their markers are going to be added to a map on the same page. You can find the marker corresponding to a table entry by clicking it and vice versa. There are also some commands available below the table, like loading selected notes into an editor with remote control.
Another problem with the notes page on the osm website is when we don’t want to see all of the user’s notes. What are the user’s notes anyway? Note records in the database don’t have direct references to users. The references are found in comment and action records. So the user’s notes are the ones opened, closed or commented by the user. But what if you only want to see only the notes that you’ve opened? On my notes page you still have to load all your notes because that’s how the OSM API works. After that you can use the filter to hide unwanted notes. To see only notes you created yourself, use this filter expression:
user = YourName, action = opened
It’s possible to do more elaborate filtering. Maybe you want to check if someone closed notes opened by you. Here’s a filter for that:
user = YourName, action = opened * user != YourName, action = closed
Now let’s talk about the limitations of this tool. Displaying everything on one page may slow down the browser if there’s too much information. Normally, the next batch of notes is downloaded when you scroll down to the end of the table. This feature is turned off after a large enough number of notes is fetched. You can also turn it off yourself using the checkbox in the download form. Also because the data is stored in the browser’s local storage, it’s possible to run out of available space there. Couple of thousand notes should be fine though. And it’s assumed that there’s only one instance is open, so only one set of notes is remembered by the browser. All of these limitations are fixable and probably soon will no longer exist.
Here’s the source code.
Here’s a post in Russian describing one of the applications of this tool.