Geographic globe objects created using the geoglobe
function plot
data over basemaps and terrain. You can access different basemap and terrain choices in
different ways.
MathWorks® offers a selection of basemaps, including two-tone, color terrain, and
high-zoom-level displays. Six of the basemaps are tiled data sets created using
Natural Earth. Five of the basemaps are high-zoom-level maps provided by Esri®. For more information about basemap options, see geobasemap
.
The 'darkwater'
basemap is installed with MATLAB®. The other basemaps are not installed with MATLAB, but you can access them over an Internet connection.
To work offline or to improve map responsiveness, you can download the basemaps created using Natural Earth onto your local system. The basemaps provided by Esri are not available for download.
Download basemaps using the Add-On Explorer.
On the MATLAB Home tab, in the Environment section, click Add-Ons > Get Add-Ons.
In the Add-On Explorer, scroll to the MathWorks Optional Features section, and click Show All to find the basemap add-ons. You can also search for the basemap add-ons by name (listed in the following table) or click Optional Features in Filter by Type.
Select the basemap add-ons that you want to download.
Basemap Name | Basemap Data Package Name |
---|---|
'bluegreen' | MATLAB Basemap Data - bluegreen |
'grayland' | MATLAB Basemap Data - grayland |
'colorterrain' | MATLAB Basemap Data - colorterrain |
'grayterrain' | MATLAB Basemap Data - grayterrain |
'landcover' | MATLAB Basemap Data - landcover |
Add custom basemaps using the addCustomBasemap
function. An active Internet connection is required
to add and use custom basemaps.
By default, the geographic globe uses terrain data hosted by MathWorks and derived from the GMTED2010 model by the USGS and NGA. You need an active Internet connection to access this terrain data, and you cannot download it.
To work offline or to improve terrain responsiveness, add custom terrain from DTED
files using the addCustomTerrain
function. You do not need an active Internet
connection to add or use custom terrain.
Alternatively, you can set the Terrain
property of the
geographic globe object to 'none'
.
To specify a basemap for a geographic globe, you can either:
Use the geobasemap
function. Specify the
geographic globe as the first
argument.
uif = uifigure;
g = geoglobe(uif);
geobasemap(g,'streets')
Set the Basemap
property of the
GeographicGlobe
object. You can set this property
by using a name-value pair or by using dot
notation.
uif = uifigure; g = geoglobe(uif,'Basemap','streets'); g.Basemap = 'topographic';
To specify terrain for the geographic globe, set the Terrain
property of the GeographicGlobe
object. You can set this property
by using a name-value pair or by using dot
notation.
uif = uifigure; g = geoglobe(uif,'Terrain','none'); g.Terrain = 'gmted2010';
addCustomBasemap
| addCustomTerrain
| geobasemap
| geoglobe