Linking geoaxes using linkprop

I am trying to link together two geoaxes so that they both have the same axes limits and zoom. I have been able to do this with regular axes using linkaxes but this will not work for geoaxes. The following code does not produce any errors but the two axes are not linked.
geolink = linkprop([ax1 ax2], {'LatitiudeLimits', ...
'LongitudeLimits' ,'ZoomLevel'});
ax1.UserData = geolink;
ax2.UserData = geolink;

Respuestas (1)

Amanjeet Pani
Amanjeet Pani el 13 de Jul. de 2022

0 votos

As i understand your main aim is to link the 2 geoaxes
you can do this by using the inbuilt linkaxes() in matlab
aditionally go through this link for more details on how to use it according to your need.

1 comentario

Oleg S
Oleg S el 22 de Jul. de 2025
linkaxes() does not work on geoaxes, only on cartesian axes.

Iniciar sesión para comentar.

Productos

Versión

R2021b

Etiquetas

Preguntada:

el 7 de Jun. de 2022

Comentada:

el 22 de Jul. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by