openforis / sepal

Geographical Data Processing in the Cloud
https://sepal.io/
MIT License
207 stars 46 forks source link

Display source grid in optical mosaic when the aoi is small #152

Open dfguerrerom opened 2 years ago

dfguerrerom commented 2 years ago

Is your feature request related to a problem? Please describe. When you're creating an optical mosaic and you select a small area of interest (i.e. Colombia > Risaralda), the source grid doesn't show the circle with the number of scenes available unless you zoom out beyond your AOI:

image

New users could find it difficult to follow the tutorial if they don't see these circles.

Describe the solution you'd like It would be useful to display the circles even if the area of interest is small or perhaps highlight each scene that covers the AOI without hovering the circles.

12rambau commented 2 years ago

I bumped into this issue as well while doing webinar on gridded areas.

I thought of another option: zoom on AOI after selecting scenes on min(min_zoom_to_see_numbers, zomm_on_object) to make sure that the users see it at least once

cdanielw commented 2 years ago

This is a bit tricky.

Changing zoom - in the normal workflow, you would already be zoomed into your AOI at the time you enabling manual data collection. I don't want to trigger a change in zoom level at that point.

Highlight the scene-area without hovering over the scene area marker (circle) - it would cause all clicks to the map to open up the scene selection panel. It's pretty easy to click by mistake on the map when zooming/dragging.

Ensure the scene area marker is always visible - we have to know when no marker is visible on the screen, to trigger this repositioning, which is tricky. Then we have to decide where to place them. You can imagine being zoomed in to an intersection between multiple scene areas, or even worse, an area where two scene areas overlap completely.

I don't know if there are more options that this. The second one is probably the most feasible one to implement, but I cannot say that I like it particularly.