EnMAP-Box / enmap-box

EnMAP-Box source code repository. See https://enmap-box.readthedocs.io for documentation
GNU General Public License v3.0
36 stars 16 forks source link

[Identify map tool] add "Live update" option #491

Open janzandr opened 1 year ago

janzandr commented 1 year ago

Requested by @dpoursanidis.

Currently, the user has to click a location inside the map view to update the pixel profile and the cursor location values: image

It is proposed to add a "Live update" option for the identify map tool, that triggers the update while hovering over the map view.

Depending on the datasources, a fluent live update may not be possible (due to data IO limitations), but for exploring a single image, it should work. At least I found a similar live update functionality in the SNAP Toolbox (at timestamp 3:10): https://youtu.be/5znAQH6vrLs?t=190

Implementation should be very simple, just add a checkable toolbar button indicating live update on/off here: image If live update is on, every hover event will be forwarded to the left mouse clicked event.

janzandr commented 1 year ago

@jakimowb, what do you think?

jakimowb commented 1 year ago

I expect performance bottlenecks if much data has to be loaded for each cursor position. In that case a timer could ensure that heavby-data loading tasks are triggered with longer intervals compared to updates of the GUI (e.g. the mouse cursor position)

janzandr commented 1 year ago

a timer could ensure that heavby-data loading tasks are triggered with longer intervals

Good idea. This should be a user-setting, so that I can crank it up for fast SSD drives, and slow it down for network drives.