Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New filter based on current map view #268

Open
jholetschek opened this issue Apr 18, 2023 · 4 comments
Open

New filter based on current map view #268

jholetschek opened this issue Apr 18, 2023 · 4 comments
Labels
Section: Data exploration Has to do with the react components for data exploration Type: Enhancement New feature or request

Comments

@jholetschek
Copy link

In the GBIF portal, it's possible to set a filter based on the current map view ("Explore area""). It would be nice to have the same feature in the hosted portal, i.e. to switch from map view to table or gallery view and get the occurrences I just saw on the map.

@MortenHofft MortenHofft transferred this issue from gbif/hp-land Oct 3, 2023
@MortenHofft
Copy link
Member

For this we need to implement a proper geometry filter. Which we currently do not have and surprisingly few have asked for.
But it should be added. Once we have that we are better positioned to add a filter by map extend feature.

One challenge with it might be to get it working in all projections. Translating the view extend of a polar projection into a usable filter might be tricky i suspect - with straight lines getting curved and crossing the pole i imagine polygons might reverse order turning into holes.

If you have experience with this, then please share

@MortenHofft MortenHofft added Type: Enhancement New feature or request Section: Data exploration Has to do with the react components for data exploration labels Oct 6, 2023
@jholetschek
Copy link
Author

No experience with that so far, I'm afraid!

MortenHofft added a commit to gbif/gbif-web that referenced this issue Mar 7, 2024
@MortenHofft
Copy link
Member

Now that we have geometry filters adding this comes easier. I've disabled the option for polar projections as it honestly was too difficult. Sorry @ymgan ! If anyone has experience with this, then I'm happy to learn. At this point sticking with mercator and wgs84 was far simpler.

The feature would be more user friendly with the geometries drawn on the map, but at least it is now possible to filter based on the map view.

Screenshot 2024-03-07 at 15 40 58

It is not deployed to production yet

@ymgan
Copy link

ymgan commented Mar 7, 2024

This is a great feature, thank you @MortenHofft !!! We all know that you did your best 🥇 please don't apologize!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Section: Data exploration Has to do with the react components for data exploration Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants