6
$\begingroup$

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

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

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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