#5869 closed enhancement (fixed)
history of last edits in download-dialog
Reported by: | malenki | Owned by: | team |
---|---|---|---|
Priority: | major | Milestone: | 17.07 |
Component: | Core | Version: | |
Keywords: | bookmark download home changeset history | Cc: | bastiK, michael2402 |
Description
I'd find it helpful to have the history of the last, let's say ten, edits with comment and the region where one worked at. Maybe this could be put on the bookmark-tab as "automatically saved bookmark".
The number of automatically saved edits could be edited in advanced settings.
Attachments (4)
Change History (15)
follow-up: 3 comment:1 by , 13 years ago
comment:2 by , 13 years ago
It would be sufficient if JOSM stored this data locally from the previous uploads.
comment:3 by , 11 years ago
Replying to simon04:
Unfortunately, this request is not possible with API 0.6
What about GET /api/0.6/changesets ? The response does contain changesets bounding box.
comment:4 by , 7 years ago
Keywords: | bookmark download home changeset history added |
---|
by , 7 years ago
Attachment: | home_osm.PNG added |
---|
by , 7 years ago
Attachment: | home_josm1.PNG added |
---|
by , 7 years ago
Attachment: | hom_josm2.PNG added |
---|
by , 7 years ago
Attachment: | home_bookmark.patch added |
---|
follow-up: 6 comment:5 by , 7 years ago
Cc: | added |
---|
I started to work on this. Before implementing the latest changeset entries I wanted to add a simple bookmark to the "home location" I have defined in my user profile on osm.org website (at zoom level 3):
It works but I couldn't find the right API call to translate the zoom level to expected scale. I found out the factor was about 50000 in my case, can someone please give me a hint to replace this hardcoded value properly?
/** * A specific optional bookmark for the "home location" configured on osm.org website. * @since xxx */ public static class HomeLocationBookmark extends Bookmark { /** * Constructs a new {@code HomeLocationBookmark}. */ public HomeLocationBookmark() { setName(tr("Home location")); setIcon(ImageProvider.get("help", "home", ImageSizes.SMALLICON)); final UserInfo info = JosmUserIdentityManager.getInstance().getUserInfo(); if (info == null) { throw new IllegalStateException("User not identified"); } final LatLon home = info.getHome(); if (home == null) { throw new IllegalStateException("User home location not set"); } final int zoom = info.getHomeZoom(); Projection mercator = Projections.getProjectionByCode("EPSG:3857"); setArea(MapViewState.createDefaultState(430, 400) // Size of map on osm.org user profile settings .usingProjection(mercator) .usingScale(Selector.GeneralSelector.level2scale(zoom) / 50000) .usingCenter(mercator.latlon2eastNorth(home)) .getViewArea() .getLatLonBoundsBox()); } }
comment:6 by , 7 years ago
comment:7 by , 7 years ago
level2scale
returns scale in centimetre per px and usingScale
expects scale argument to be in east/north units per pixel.
comment:8 by , 7 years ago
Milestone: | → 17.07 |
---|
ok thanks, it works now :) I reported the issue to OSM API: https://github.com/openstreetmap/openstreetmap-website/issues/1592
I like the idea! Unfortunately, this request is not possible with API 0.6 and I think that parsing the corresponding HTML page should not be implemented.