Opened 10 years ago
Last modified 10 years ago
#10813 new enhancement
Use ID for imagery sources in toolbar, image offsets and source-entry for uploads instead of name
Reported by: | rickmastfan67 | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core imagery | Version: | latest |
Keywords: | Cc: |
Description
Just today, somebody updated the 'Tiger 2013' entry for the imagery map to the 'Tiger 2014'. ( http://josm.openstreetmap.de/wiki/Maps/USA?action=diff&version=12 ) I already had the 'Tiger 2013' stored in my toolbar so I would have one click access to it if I needed it while mapping. So, when JOSM automatically updated the imagery list at startup, it broke the toolbar entry for the 'Tiger 2013' imagery instead of updating it to the 'Tiger 2014 automatically.
Since the info change was on the same line, I would have expected JOSM to update my toolbar entry for it. Would there be anyway in the future to allow this to happen without me having to re-add the 'updated' year version?
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2014-12-05 02:34:20 Last Changed Author: Don-vip Revision: 7764 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Relative URL: ^/trunk URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2014-12-05 01:10:47 +0100 (Fri, 05 Dec 2014) Last Changed Rev: 7764 Identification: JOSM/1.5 (7764 en) Windows 7 64-Bit Memory Usage: 222 MB / 1820 MB (110 MB allocated, but free) Java version: 1.7.0_71, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Plugins: - ImageryCache (30738) - OpeningHoursEditor (30737) - buildings_tools (30762) - measurement (30737) - mirrored_download (30762) - notes (v0.9.5) - osmarender (30738) - reverter (30737) - turnrestrictions (30762) - undelete (30762) - utilsplugin2 (30762)
Attachments (0)
Change History (23)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
There was a 'toolbar' error and the icon in the toolbar for it disappeared. Had to manually add back the new '2014' version of it. Wish I would have saved a copy of the error in the CL, but didn't.
comment:3 by , 10 years ago
Milestone: | → 14.12 |
---|
Hmm, maybe we should switch to the entry id for toolbar name when existing. But this needs an fallback for old entries.
comment:4 by , 10 years ago
Milestone: | 14.12 → 15.01 |
---|
comment:5 by , 10 years ago
Milestone: | 15.01 → 15.02 |
---|
move tickets that have not been treated this month to next milestone
comment:6 by , 10 years ago
Just happened again with the Tiger 2014 layer because somebody tweaked the name for it. :(
comment:8 by , 10 years ago
Summary: | Way to update imagery sources in toolbar → Use ID for imagery sources in toolbar and image offsets instead of name |
---|
Id should not only be used for toolbar, but also for imagery offsets.
comment:9 by , 10 years ago
Where can I get the ID so I can edit the config file to make offsets match again and visible?
comment:10 by , 10 years ago
That's nothing you can do. We need to adapt source. In the past our maps data had no specific ID, so we used the name instead. For these where we now have an ID, we need to use it instead of the name, so name changes do no harm.
comment:11 by , 10 years ago
Milestone: | 15.02 → 15.03 |
---|
comment:12 by , 10 years ago
Summary: | Use ID for imagery sources in toolbar and image offsets instead of name → Use ID for imagery sources in toolbar, image offsets and source-entry for uploads instead of name |
---|
comment:13 by , 10 years ago
Also consider using the id in URL parameter: https://josm.openstreetmap.de/mapsview?entry=ID
instead of name, as it is now: https://josm.openstreetmap.de/mapsview?entry=NAME
(linked from wiki page Maps)
comment:15 by , 10 years ago
Using the id for the toolbar is as simple as changing org.openstreetmap.josm.data.imagery.ImageryInfo#getToolbarName
. Then however the old toolbar icons will no longer work. Implementing a migration process is more complex …
comment:18 by , 10 years ago
Milestone: | 15.04 → 15.05 |
---|
comment:19 by , 10 years ago
Milestone: | 15.05 → 15.06 |
---|
comment:22 by , 10 years ago
Milestone: | 15.08 |
---|
removing from milestone as it seems nobody's working on it right now.
comment:23 by , 10 years ago
And it happened once again when the entry for the Tiger data had the date changed from 2014 to 2015.
https://josm.openstreetmap.de/wiki/Maps/USA?version=17
Did capture the exact error that showed up this time unlike in comment:6.
INFO: Could not load tool definition imagery_New & Misaligned TIGER Roads \(2014\)
Using r8692.
How? Was it unaccesible (based on the old name)?