Is there anyway to plot a button in a matlab using longitude and latitude instead of x and y coordinates?
I'm trying to plot a button on a 3D globe. I have the longitude and latitude coordinates of the location that I want. I used textm to plot points on it and I'm trying to do the same with the button. I want the user to be able to click on a specific location on the globe and get information back. I figured that the best way was with buttons.
Unfortunately, I have no idea how to plot them using longitude and latitude so they can move when the user rotates the globe.
Please help. Any suggestions will be greatly appreciated.
Here's how I graphed a point on the globe using longitude and latitude (matlab 3D map)
textm(29.547816, -57.300522, '*', 'color', 'red')
Here's the code for the button. I'm trying to graph it with the above longitude and latitude but it uses x,y,length and height instead.
btn = uicontrol('Style', 'pushbutton', 'String', 'click',...
'Position', [200 250 50 20],...
'Callback', 'cla');
Here's an image of the globe and the button. globe