#16301 closed enhancement (fixed)
Add filter and icon for map types
Reported by: | stoecker | Owned by: | Don-vip |
---|---|---|---|
Priority: | normal | Milestone: | 19.05 |
Component: | Core imagery | Version: | |
Keywords: | Cc: |
Description (last modified by )
See #16103
The list of imagery in prefs should allow to filter for the types.
If possible the different types should be displayed with a small icon.
Category is already added to all entries in the wiki.
Attachments (0)
Change History (81)
comment:1 by , 7 years ago
comment:4 by , 7 years ago
June is too early (first data needs to be added to Maps) and in July I will have no time...
follow-up: 6 comment:5 by , 7 years ago
The wiki doesn't yet allow the category attribute.
Warnung: Ungültige Wiki-Seite: XML validation for map failed: Element '{http://josm.openstreetmap.de/maps-1.0}entry', attribute 'category': The attribute 'category' is not allowed.
comment:6 by , 7 years ago
Replying to Klumbumbus:
The wiki doesn't yet allow the category attribute.
Warnung: Ungültige Wiki-Seite: XML validation for map failed: Element '{http://josm.openstreetmap.de/maps-1.0}entry', attribute 'category': The attribute 'category' is not allowed.
Tried
<category>xxx</category>
and it worked fine. Where exactly did you try?
comment:7 by , 7 years ago
I tried <entry category="photo">
cause it is listed under attributes at wiki:Maps
comment:9 by , 7 years ago
Description: | modified (diff) |
---|
comment:10 by , 7 years ago
Description: | modified (diff) |
---|
comment:11 by , 7 years ago
Description: | modified (diff) |
---|
comment:12 by , 7 years ago
Description: | modified (diff) |
---|
comment:13 by , 7 years ago
Description: | modified (diff) |
---|
comment:14 by , 7 years ago
Description: | modified (diff) |
---|
comment:15 by , 6 years ago
Milestone: | 18.08 → 18.09 |
---|
comment:16 by , 6 years ago
Milestone: | 18.09 → 18.10 |
---|
comment:17 by , 6 years ago
Milestone: | 18.10 → 18.11 |
---|
comment:18 by , 6 years ago
Description: | modified (diff) |
---|
comment:19 by , 6 years ago
Description: | modified (diff) |
---|
comment:20 by , 6 years ago
Description: | modified (diff) |
---|
comment:21 by , 6 years ago
Milestone: | 18.11 → 18.12 |
---|
comment:22 by , 6 years ago
We should icons now (also to honor Klumbumbus work). Any proposals for icons?
follow-up: 25 comment:24 by , 6 years ago
Replying to Don-vip:
Ideas.
Nice.
That one is not recognizable at 16px though. At least I didn't understand what that is until I opened the full size.
What about using the same icons for photo and historicphoto and for map and historicmap while the normal variant is coloured and the historic variant greyscale?
comment:25 by , 6 years ago
Replying to Klumbumbus:
Replying to Don-vip:
Ideas.
Nice.
That one is not recognizable at 16px though. At least I didn't understand what that is until I opened the full size.
Same for me. Also the historicmap is not really obvious.
What about using the same icons for photo and historicphoto and for map and historicmap while the normal variant is coloured and the historic variant greyscale?
I like that.
comment:26 by , 6 years ago
Description: | modified (diff) |
---|
comment:27 by , 6 years ago
Description: | modified (diff) |
---|
comment:28 by , 6 years ago
Description: | modified (diff) |
---|
comment:29 by , 6 years ago
All categories are added. We have:
303x photo
70x historicphoto
63x map
93x historicmap
42x osmbasedmap
154x other
In total 725 active (i.e. not disabled) entries.
comment:30 by , 6 years ago
Can we please have a check either in SyncEditorLayerIndex.groovy or make it mandatory in the xml checks in the wiki that every entry has an category property?
follow-up: 32 comment:31 by , 6 years ago
154 other? That's a huge number, do you think we could add a new category? What are all these sources about?
comment:32 by , 6 years ago
Replying to Don-vip:
154 other? That's a huge number, do you think we could add a new category? What are all these sources about?
Mostly overlays of one feature (streets, buildings, administrative boundaries,...), but also elevation modells (hill shading), contour lines, OSM validation overlays, WMTS/wms_endpoint sources containing layers of different categories.
follow-up: 38 comment:35 by , 6 years ago
I'm not so happy to make these attributes mandatory. That may be true for our wiki, but not necessary elsewhere. Making them mandatory prevents loading when the attributes aren't there.
I'd rather test them with the Sync script.
comment:36 by , 6 years ago
Hmm, seems minOccurs does not do anything at all. You can remove all these arguments without an error.
follow-up: 39 comment:38 by , 6 years ago
Replying to stoecker:
I'm not so happy to make these attributes mandatory.
OK, I thought maps.xsd is only for the wiki. Please change it to a better solution.
comment:39 by , 6 years ago
Replying to Klumbumbus:
Replying to stoecker:
I'm not so happy to make these attributes mandatory.
OK, I thought maps.xsd is only for the wiki. Please change it to a better solution.
No. These XSD are the files JOSM uses for validation.
But as said it seems minOccurs doesn't have an effect. The Sync script now screams if these fields are missing :-)
comment:40 by , 6 years ago
Milestone: | 18.12 → 19.01 |
---|
comment:41 by , 6 years ago
Milestone: | 19.01 → 19.02 |
---|
comment:42 by , 6 years ago
Milestone: | 19.02 → 19.03 |
---|
comment:43 by , 6 years ago
Milestone: | 19.03 → 19.04 |
---|
comment:44 by , 6 years ago
Milestone: | 19.04 → 19.05 |
---|
comment:45 by , 6 years ago
@Dirk: do you plan to work on this? I didn't touch it because I thought when you created the ticket that it was your intention.
comment:47 by , 6 years ago
@Stefan: I'd like to use https://www.iconfinder.com/icons/1587506/internet_line_satellite_icon for the first icon but the SVG file is 2Mb. I can't reduce it using svg-cleaner, do you know how we can improve it? It shouldn't be more than a few kilobytes.
comment:49 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:51 by , 6 years ago
TODO:
- add tooltip above icon, displaying name and description of the imagery category. Probably requires custom renderers
- add tooltip above country, using Java Locale class
- add filter text field searching on all columns (category, country, title, url)
comment:52 by , 6 years ago
@Dirk the icon script is not happy with my dynamic loading:
https://josm.openstreetmap.de/jenkins/job/JOSM-Integration/3078/warnings4Result/
How can we ignore these warnings?
comment:53 by , 6 years ago
Simply add /* ICON(data/imagery/) */ in front of the names in ImageryInfo.java ;-)
comment:56 by , 6 years ago
It's worse now: https://josm.openstreetmap.de/jenkins/job/JOSM-Integration/3082/warnings4Result/
What did I do wrong?
comment:57 by , 6 years ago
You took ImageryType enum. You should have used ImageryCategory enum. :-)
I saw your commit first and though: Ah, he implemented type image display as well. Fine. But found no related change :-)
comment:58 by , 6 years ago
Appfff I was so tired I shouldn't have committed this xD My eyes were probably half-closed already :)
follow-up: 61 comment:60 by , 6 years ago
You should go to your boss and say: "I make silly mistakes in my open source free time coding - I need a vacation". He sure will grant it :-)
comment:61 by , 6 years ago
Replying to stoecker:
You should go to your boss and say: "I make silly mistakes in my open source free time coding - I need a vacation". He sure will grant it :-)
Or maybe not when you use your free time coding for JOSM...
comment:62 by , 6 years ago
:D I was on vacation and exhausted because of it, just got back to work today so it does not work ;)
comment:66 by , 6 years ago
Thats great, thanks!
One thing: the map on the right side in the preferences displays only error tiles for me. It seems that got broken.
comment:68 by , 6 years ago
the console says Failed loading https://c.tile.openstreetmap.org/3/5/2.png: class java.io.IOException: Server returned HTTP response code: 429 for URL: https://a.tile.openstreetmap.org/3/5/2.png
however in browser i can load https://a.tile.openstreetmap.org/3/5/2.png without problems.
comment:70 by , 6 years ago
Replying to stoecker:
429 is "rate limit".
Seems justified. JOSM is doing strange things. See attached gifs.
comment:71 by , 6 years ago
Seems justified. JOSM is doing strange things. See attached gifs.
Please open a ticket for that for the TMS image loader (assigned to wiktorn?).
comment:72 by , 6 years ago
Ahh, I think we need a hotfix:
What steps will reproduce the problem?
- type "cy" in the filter box above the list in the imagery preferences
- select the cyprus entry on position 5
- click activate
What is the expected result?
the cyprus entry is added to the list below
What happens instead?
the entry which is on position 5 in the unfiltered list is added (Digital Globe Standard Imagery)
comment:73 by , 6 years ago
follow-up: 76 comment:75 by , 6 years ago
BTW, not only the "Activate" button but also the "Edit" button from the xml bounds plugin is affected. Not sure if the plugin needs an own fix.
comment:76 by , 6 years ago
Replying to Klumbumbus:
also the "Edit" button from the xml bounds plugin is affected.
Thanks, plugin fixed in [o35023:35024].
And a filter by text please too, (similar to the filterbox for projections), which allows to e.g. filter entries by country (filtertext "de") or city (filtertext "berlin").