How do I create clickable icons on a map?

1 visualización (últimos 30 días)
Leon
Leon el 11 de Mzo. de 2014
Comentada: Salaheddin Hosseinzadeh el 12 de Mzo. de 2014
I have many stations in the ocean, with data links. How do I create icons for each station and make them clickable, so that when my users click on them, they are taken to the data download page?
Thank you.

Respuesta aceptada

Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh el 11 de Mzo. de 2014
Once I used a push button to do that, and in order to cover the push button I used the logo of the company. So by clicking on the logo you will be directed to the company website, or any other links!
function pushbutton1_Callback(hObject, eventdata, handles)
web www.google.com
function pushbutton1_CreateFcn(hObject, eventdata, handles)
try
load logo.mat
set(hObject,'CData',cdata)
catch
msgbox('FILE MISSED!: Locate all files (x.m x.fig logo.mat logo.bmp) in same place(...\Documents\MATLAB) and make sure none of them missing',...
'Files Missing','warn')
end
I hope I understood your problem! Good luck!
  2 comentarios
Leon
Leon el 11 de Mzo. de 2014
Thank you very much for sharing your code.
Salaheddin Hosseinzadeh
Salaheddin Hosseinzadeh el 12 de Mzo. de 2014
I'm glad that it was useful ;)

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by