• JMap.Map.Basemap.removeById

    Remove a basemap for a given id.

    If id doesn't exist do nothing.

    If the active basemap is removed, no basemap will be displayed anymore.

    Parameters

    • basemapId: string

      the basemap id

    Returns void

    Throws

    if missing basemap parameter

    Example

    // Remove the "streets" basemap
    JMap.Map.Basemap.removeById("streets")