I want to place labels on a geographic map. I can do this with individual points as in the code below
Show[
CountryData["France", {"Shape", "Mercator"}],
Frame -> True,
Epilog ->
{PointSize[0.01], Red, Point[mercPoints],
Text[Abbeville, {3, 47},
BaseStyle -> {FontWeight -> "Bold", FontSize -> 12}],
Text[Agen, {3, 50}]}]
But this is not my aim. I have a list containing the names I want to label the points with (say stationNames
). How do I attach each of the label names in stationNames
to its respective point given by mercPoints
, which is the list giving the longitude and latitude of each point.
MapThread[Text[#1, #2], {names, mercPoints}]
$\endgroup$ – m_goldberg Oct 3 '16 at 2:16MapThread[Text[#1, #2]&, {names, mercPoints}]
$\endgroup$ – m_goldberg Oct 3 '16 at 2:48