I am trying to make a GUI which can display map data on the Title of the App.

2 vues (au cours des 30 derniers jours)
Kunal Khosla
Kunal Khosla le 20 Mar 2021
Commenté : Kunal Khosla le 1 Avr 2021
I am trying to make a GUI which can display map data on the Title of the App.
However, i am unable to access basic geoaxes functionalities like pan, zoomin and zoomout at the same time. Can anybody help me here. I created a callback function as shown below:
funcion mousemove(app,~,~,handle)
C=handle.CurrentPoint
title('C(1,1),',',C(1,2));
end
Once I hover the mouse over the map, i am not able to pan,zoom in/out using the mouse scollbar.
Thanks

Réponses (1)

Reshma Nerella
Reshma Nerella le 31 Mar 2021
Hi Kunal,
The Pan and Zoom interactivities for Geographic axes can be set using the Interactions property.
For example,
gx = geoaxes;
gx.Interactions = [panInteraction zoomInteraction];
This peice of code enables only the pan and zoom interactions.
For more information, refer to the documentation page of Geographic axes properties.
Hope this helps!

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by