Skip to content

[feature] Search spatial filter would zoom to the current collection extent #592

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

Open
luipir opened this issue Apr 25, 2025 · 3 comments
Open

Comments

@luipir
Copy link

luipir commented Apr 25, 2025

Would be a good feature to set default extent of the spatial filter to the extent of the current shown collection or catalog.
e.g. clicking on search button, the Search.vue and SearchFilter.vue would have knowledge of the current selected catalog or collection and set default zoom of the spatial filter to the extent of this oens.
e.g. like in this schreenshot where the current catalog would lead to a default spatial extent to the extent of the catalog or collection.

Image

@m-mohr
Copy link
Collaborator

m-mohr commented Apr 25, 2025

This can certainly be done for when a specific colleciton is chosen in the Search page and for search withing a specific collection, but I think your usecase is a bit out of scope. What happens if you have 1000 paginated collection? It won't work, so for this case you'd then need to configure #591 manually.

@luipir
Copy link
Author

luipir commented Apr 25, 2025

This can certainly be done for when a specific collection is chosen in the Search page and for search withing a specific collection, but I think your usecase is a bit out of scope. What happens if you have 1000 paginated collection? It won't work, so for this case you'd then need to configure #591 manually.

I agree, in that case could setup some fallback rules.
BTW because of this, and because pgstac can't store collections of collections and or it's hierarchical organisation, I did a specific modification to my stac-browser instance that add a filter to the /collections endpoint luipir@5b66b07
The reason is to inject a CQL filter to show only "high level" collections, where "high level" depends specifically on how catalog or catalogs are organised.
It was not presented as PR because it is based on specific user requirements.

do you mind could be a interesting feature to be proposed as PR?
here an example of configurable value for the filter
collectionsCQLFilter: '?query={"id": {"eq": "fotoindici"}}',

@luipir
Copy link
Author

luipir commented Apr 25, 2025

BTW collection filter as talked in the comment above (luipir/stac-browser@5b66b07) could be now solved with https://github.com/developmentseed/stac-auth-proxy/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants