• JMap.Map.Basemap.removeByIds

    Remove basemaps for the given ids.

    If an id doesn't exist it is ignored.

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

    Parameters

    • basemapIds: string[]

      the basemap ids as an array

    Returns void

    Example

    // Remove two basemaps
    JMap.Map.Basemap.removeByIds([ "streets", "lights" ])