fetchBasemaps

suspend fun fetchBasemaps(): Result<List<Basemap>>

Gets the collection of Basemap objects in the portal's basemap gallery group.

The portal's basemap gallery group is defined by the portal's administrator and contains the basemaps that are displayed in the Map Viewer basemap gallery if a user logs in with an ArcGIS Online or ArcGIS Enterprise account. Note that if the value of PortalInfo.useVectorBasemaps is true, the Map Viewer will display the basemaps collection returned by Portal.fetchVectorBasemaps and it's recommended that you use that collection instead.

The basemaps in this collection are not loaded, but you can access their PortalItem metadata from Basemap.item.

Return

a Result containing a list of Basemaps

Since

200.0.0

See also