Map interactivity : controling zoom with mouse scrolling

Hello,
I use Matlab r2019b.
I am trying to use Matlab Appdesigner to have an interactive map. For now, I just have a graphic display (UiAxes).
In the startupFcn Callback, I use the "imshow" function to display a stored map picture, .tif or .ppm (haven't tried .png yet, but I guess it is the same).
So far, I can use the mouse scroll to zoom in and out and I can move my point of view by clicking and moving the cursor (all like google map ...). No use of the Control Chart Interactivity is needed here.
However, when I create a UIFigureWindowButtonUp callback (even if empty), I can no longer use the mouse scroll to zoom in (and clicking and moving doesn't work either). Is it possible to retrieve this functionnality ? How ?
Please note that I (= my boss) would like to avoid using the Control Chart interactivity ; indeed, using directely the mouse scroll to zoom and dragging to move the picture make it more comfortable ...

Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Asked:

on 25 Mar 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!