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 ...

답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

질문:

2020년 3월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by