MATLAB: Plotting data labels with the mapping toolbox

data labellabel;Mapping ToolboxMATLABplot browser

I am making a GUI that allows users to search for cities, select the ones they would like to plot, and have it show the cities as a red circle on the map. I also need to give the user the option to deselect and/or copy and paste cities in the plot browser. Right now I am using the following code to plot the cities:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

for e= 1:length(plotcity.name)
texthandles{e} = textm(plotcity.loc(e,1),plotcity.loc(e,2),plotcity.name{e},'DisplayName',[plotcity.name{e} '(label)']);
cityhandles{e} = plotm(plotcity.loc(e,:),'or','DisplayName',plotcity.name{e});
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
where:
plotcity.name is a 1xn cell array,
plotcity.loc is a nx2 matrix where each row contains the latitude and longitude of the city,
and texthandles and cityhandles are empty cell arrays.
This plots exactly what I want it to, however if I hide a city in the plot browser, it only hides the point at the city's location, the text remains printed on the map with no easy way to remove it.
I have tried making cityhandles and texthandles hggroup objects, making one the parent of the other, playing with the annotation, visibility, tag, and displayname properties, without success.
If someone could recommend a way to plot the cities on the map in such a fashion that they could be copied or removed (with their label) to another plot, I would greatly appreciate it.

Best Answer

Perhaps linkprop() of the Visible property for the point and its corresponding label.
Related Question