geobasemap
Set or query basemap
Syntax
Description
geobasemap
sets the
basemap
Basemap
property for the current geographic axes or
geographic bubble chart to the value specified by basemap
.
If the current axes is not a geographic axes or geographic bubble chart, or if
there is no current axes, then the function creates a new geographic axes with
the specified basemap. When you use this syntax, you do not need to enclose the
basemap
argument in quotes, for example
geobasemap topographic
.
geobasemap(
sets the basemap
for the current geographic axes or chart. When you use this syntax, enclose the
basemap
)basemap
argument in single or double quotes, for
example geobasemap('topographic')
.
returns the value
of the bmap
= geobasemapBasemap
property for the current geographic axes or
chart.
returns the basemap value for the geographic axes or chart specified by
bmap
= geobasemap(gx
)gx
.
Examples
Input Arguments
Tips
Create custom basemaps from a URL or MBTiles file by using the
addCustomBasemap
(Mapping Toolbox) function.Add a basemap picker to the axes toolbar by using the
addToolbarMapButton
(Mapping Toolbox) function.
Version History
Introduced in R2018bSee Also
geoaxes
| geodensityplot
| geobubble
| geoplot
| geoscatter