This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Remove custom basemap





removeCustomBasemap(basemapName) removes the custom basemap specified by basemapName from the list of available basemaps.

If the custom basemap specified by basemapName has not been previously added using the addCustomBasemap function, the removeCustomBasemap function returns an error.


collapse all

Add a custom basemap to view locations of placenames as bubbles on an OpenStreetMap® basemap.

name = 'openstreetmap';
url = '';
copyright = char(uint8(169));
attribution = copyright + "OpenStreetMap contributors";

Use the custom basemap with a geographic bubble chart.

pts = gpxread('boston_placenames');
gb = geobubble(pts.Latitude,pts.Longitude,'Basemap','openstreetmap');
gb.BubbleWidthRange = 25;
gb.MapLayout = 'maximized';
gb.ZoomLevel = 14;

Remove the custom basemap.


Input Arguments

collapse all

Name of the custom basemap to remove, specified as a string scalar or character vector. You define the basemap name when you add the basemap using the addCustomBasemap function.

Data Types: string | char

Introduced in R2018b