How can I get the country name when I put the mouse on the map?
CountryData["World", {"Shape", {"Equirectangular", {0, 180}}}]
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communitySlightly modified from the first example in the "Properties & Relations" section of the CountryData
entry:
GeoGraphics[{
EdgeForm[Gray],
Tooltip[Polygon[GeoVariant[#, "SimplifiedArea"]], CommonName[#]] & /@
CountryData["Countries"]
},
GeoBackground -> None,
GeoProjection -> "Equirectangular",
GeoCenter -> {0, 180}
]
GeoGraphics[{GrayLevel[1, 0], Tooltip[CountryData[#, "SchematicPolygon"], #] & /@ CommonName[CountryData[]]}, GeoBackground -> GeoStyling["CountryBorders"], GeoProjection -> "Equirectangular", GeoRange -> "World"]
$\endgroup$
Nov 1, 2017 at 5:24