%% Remove Custom Basemap
% Add a custom basemap to view locations on an OpenStreetMap® basemap.

name = 'openstreetmap';
url = 'a.tile.openstreetmap.org';
copyright = char(uint8(169));
attribution = copyright + "OpenStreetMap contributors";
addCustomBasemap(name,url,'Attribution',attribution)

%
% Use the custom basemap with a geographic player.

data = load('geoSequence.mat');
player = geoplayer(data.latitude(1),data.longitude(1),'Basemap',name);
plotRoute(player,data.latitude,data.longitude);

%
% Remove the custom basemap. The custom basemap associated with the specified name remains stored in this geographic player. However, this basemap is no longer available for use with new players.

removeCustomBasemap(name)

% Copyright 2018 The MathWorks, Inc.