function removeCustomBasemap(basemapName)
%

% removeCustomBasemap Remove use of custom basemap
%
% removeCustomBasemap(basemapName) removes use of the custom basemap
% specified by basemapName.  basemapName is a scalar string or character
% vector. An error is issued if the basemap specified by basemapName has
% not been previously added.
%
%   Example 1
%   ---------
%   % View locations of placenames as bubbles on an OpenStreetMap basemap.
%   name = 'openstreetmap';
%   url = 'a.tile.openstreetmap.org';
%   copyright = char(uint8(169));
%   attribution = copyright + "OpenStreetMap contributors";
%   addCustomBasemap(name,url,'Attribution',attribution)
%
%   pts = gpxread('boston_placenames');
%   gb = geobubble(pts.Latitude,pts.Longitude,'Basemap','openstreetmap');
%   gb.BubbleWidthRange = 25;
%   gb.MapLayout = 'maximized';
%   gb.ZoomLevel = 14;
%
%   % Remove use of OpenStreetMap basemap.
%   removeCustomBasemap(name)
%
%   See also addCustomBasemap, GEOAXES, GEOBASEMAP, GEOBUBBLE, GEODENSITYPLOT, 
%   GEOPLOT, GEOSCATTER, WEBMAP

% Copyright 2018-2022 The MathWorks, Inc.

    narginchk(1,1)
    try
        removeCustomBasemapImpl(basemapName)
    catch e
        throwAsCaller(e)
    end
end
