How can I use numbers as Markers in geoshow maplots
3 views (last 30 days)
Show older comments
figure
ax = worldmap([32.5 42],[-125 -114]);
load coast
geoshow(ax, lat, long,...
'DisplayType', 'polygon', 'FaceColor', [.45 .60 .30])
states = shaperead('usastatelo', 'UseGeoCoords', true);
faceColors = makesymbolspec('Polygon',...
{'INDEX', [1 numel(states)], 'FaceColor', polcmap(numel(states))});
geoshow(ax, states, 'DisplayType', 'polygon', 'SymbolSpec', faceColors)
Map = xlsread('Locations.xlsx');
Map(:,3) = Cali_info(:,1);
Map(:,4) = Cali_info(:,2);
geoshow(Map(:,1),Map(:,2), 'DisplayType','Point','Marker','+','Color', 'red','Markersize',12);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/152179/image.jpeg)
0 Comments
Answers (1)
Rohit Kudva
on 16 Jul 2015
Hi Juan,
Unfortunately 'geoshow' function does not have any property that will allow you to use numerical markers on the map. You can instead use 'textm' function to display numerical markers. Refer to the following link to know more about the 'textm' function:
You can also refer to the following link which may help you resolve this issue:
I hope the above links will help you to get the desired output. All the best!
- Rohit
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!