6
$\begingroup$

How can I get the country name when I put the mouse on the map?

CountryData["World", {"Shape", {"Equirectangular", {0, 180}}}]
$\endgroup$
6
$\begingroup$

Slightly 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}
 ]
$\endgroup$
  • $\begingroup$ Here's a nice alternative: GeoGraphics[{GrayLevel[1, 0], Tooltip[CountryData[#, "SchematicPolygon"], #] & /@ CommonName[CountryData[]]}, GeoBackground -> GeoStyling["CountryBorders"], GeoProjection -> "Equirectangular", GeoRange -> "World"] $\endgroup$ – J. M. will be back soon Nov 1 '17 at 5:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.