Wolfram Research

Function Repository Resource:

GeoGraphics3D

Source Notebook

A 3D rotatable sphere version of GeoGraphics

Contributed by: Jon McLoone

ResourceFunction["GeoGraphics3D"][primitives,options]

represents a three-dimensional geographical globe.

Details and Options

Most options for GeoGraphics and SphericalPlot3D are supported.

Examples

Basic Examples

Produce a simple globe of the world:

In[1]:=
ResourceFunction["GeoGraphics3D"][{}, GeoZoomLevel -> 3]
Out[1]=

Scope

All primitives and options supported by GeoGraphics are supported by GeoGraphics3D:

In[2]:=
ResourceFunction[
 "GeoGraphics3D"][{EdgeForm[Black], FaceForm[Red], Polygon[Entity["Country", "SouthAfrica"]]}]
Out[2]=

Options

Most options for GeoGraphics and SphericalPlot3D are supported:

In[3]:=
ResourceFunction["GeoGraphics3D"][{}, GeoBackground -> "ReliefMap", Lighting -> "Neutral"]
Out[3]=

Neat Examples

Create a 3D graphic of the world with the countries of the African continent filled in with their flags:

In[4]:=
flags = EntityValue[
   EntityClass["Country", "Africa"], {"Entity", "FlagImage"}];
ResourceFunction[
 "GeoGraphics3D"][{EdgeForm[
   Black], {GeoStyling[{"Image", #2}], Tooltip[Polygon[#1], CommonName[#1]]} & @@@ flags}, GeoBackground -> "StreetMapNoLabels"]
Out[4]=

Use ResourceFunction["SpinShow"] to create a spinning globe:

In[5]:=
ResourceFunction["SpinShow"][
 ResourceFunction["GeoGraphics3D"][{}, GeoZoomLevel -> 4]]
Out[5]=

Resource History

Related Resources

License Information