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.

removeCustomBasemap

Remove custom basemap

Syntax

removeCustomBasemap(basemapName)

Description

example

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.

Examples

collapse all

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)

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 R2019a