Main Content

removeToolbarMapButton

Remove map button from toolbar

    Description

    example

    removeToolbarMapButton(tb) removes all map buttons from the axes toolbar tb.

    removeToolbarMapButton(tb,"basemap") remove the basemap picker from the axes toolbar.

    Examples

    collapse all

    Create a figure by using the uifigure function. Place a geographic axes in the figure.

    uif = uifigure;
    gx = geoaxes(uif);

    Create a custom axes toolbar. Add all map buttons to the toolbar.

    tb = axtoolbar(gx,"default");
    addToolbarMapButton(tb)

    Remove all map buttons from the toolbar.

    removeToolbarMapButton(tb)

    Input Arguments

    collapse all

    Axes toolbar, specified as an AxesToolbar object or an array of AxesToolbar objects.

    Introduced in R2021b