Hide green pins (optional) - show only red pins
What is the user problem or growth opportunity you want to see solved?
In the vast majority of cases, only the red pins are of interest to me (to contribute missing photos).
In this respect, I would like to be able to hide the green pins as an option.
How do you know that this problem exists today? Why is this important?
This would also improve clarity in areas with a large number of pins.
Who will benefit from it?
all users
Anything else you would like to add?
No response
Hi! I’m Aurora, new to open source and I’d love to work on this enhancement as my first issue. Is anyone already working on it, or may I take it?
Thanks Aurora!
I recommend implementing this as a new item Show only places with no picture/Show all places in the ... menu, after Save as KML.
@Kota-Jagadeesh , @nicolas-raoul ,
What happened to this issue? It would really improve clarity, and it’s my top priority right now.
@jpcookie Any progress on this? 🙂
Could someone else take care of this topic?
https://commons.wikimedia.org/wiki/File:20260825_xl_1209-Commons_App_Screenshot,_hide_Red_pins.png
Here is an extreme example: if only the red pins were displayed, there would likely be very few of them.
I'd like to work on this issue. Has the team reached a consensus on the scope and UI design (such as the toggle suggested by @nicolas-raoul to show only places with no picture vs. show all places)? If so, I'd be happy to take this on if you're open to assigning it to me.
If it were up to me, I would (optionally) only want to see red pins. In my opinion, that would be the clearest layout, and hopefully it would load much faster (in places with a lot of objects).
@devendrachoudharycodes Do you have 5 merged bugs pull requests? See https://github.com/commons-app/commons-app-documentation/blob/master/android/Volunteers-welcome!.md#developers for reference, and if not would you mind finding a bug? Thanks a lot for your interest! :-)
Thanks for the reminder, @nicolas-raoul I'd forgotten about the requirement of merged bug PRs before taking on features. I'll work on some bug issues first and come back to this one once I've got them merged.
Hi @jpcookie! Any progress to share? Even if you don't have a solution yet, would you mind sharing what you found, what you checked/tried, maybe what did not work? I assume you still intend to work on this, but if not please let us know. :-)
Hi @jpcookie, any progress to share on this? If you're not working on it anymore, no worries.
@nicolas-raoul if it's free, I'd like to take it. Here's what I'd do:
Most of the filter is already there. filterMarkersByLabels in NearbyParentFragment.kt has a branch that keeps only places with no picture, but displayNeedsPhoto is hardcoded to false (~line 2370), so it never runs. Every redraw goes through setFilterState(), even when place details finish loading, so pins that turn green later get hidden too.
Plan:
- Add
Show only places with no picture/Show all placesto the...menu afterSave as KML file. - Hook that toggle into the existing branch, including the early return when no labels are selected.
- Keep the choice in
NearbyFilterState.needPhotoSelected(already there, unused), same as the other Nearby filters. - Strings in
valuesandvalues-qq, plus a unit test for the filter.
Like the label filter, this only changes the map pins, not the List view.
#6570 touches the same files, so I'll keep this small and easy to rebase.
Thanks a lot for your interest and for the detailed plan, @Medhansh-741! This issue is currently still assigned to @jpcookie, so I can not assign it to you just yet.
@jpcookie Are you still actively working on this? If not, would you mind letting us know so that the issue can be unassigned? Thanks! :-)
I would suggest an icon at the left of the refresh icon, showing either a small green pin and a small red pin (default), or only a small red pin, allowing the user to toggle the setting.
Opened #7398 for this, with the pin button left of Refresh like you suggested @nicolas-raoul.
I'm really glad this issue is finally being addressed. (As always, the long loading times in areas with lots of pins and the cluttered layout are the things that bother me most about the Commons app.) If there's an option to display only red pins, I hope this will make the app much clearer and significantly reduce loading times when I want to contribute missing images.
@OpenGreenStreet thanks! #7398 adds a button that shows only the red pins, so the map gets much less crowded.
It won't make loading faster yet though. The app still downloads every place in the area first and only hides the green ones after. In central Paris that's about 70% of the places.
Making it load faster is a separate change, so I opened #7407 for it and will open a PR there shortly. It would be great if you and @nicolas-raoul could try it and tell me what you think.