Basemap

constructor(item: Item)

Creates a basemap with a portal item of type com.arcgismaps.portal.PortalItemType.WebMap. The PortalItem automatically loads when the Basemap loads. If the loaded Item is not a portal item of type com.arcgismaps.portal.PortalItemType.WebMap, the basemap fails to load.

Since

200.1.0

Parameters

item

A web map PortalItem.


constructor(baseLayer: Layer)

Creates a basemap with a single base layer.

Since

200.1.0

Parameters

baseLayer

A layer object.


constructor(baseLayers: Iterable<Layer> = listOf(), referenceLayers: Iterable<Layer> = listOf())

Creates a basemap with collections of base and reference layers.

Since

200.1.0

Parameters

baseLayers

A collection of layers that serve as base layers.

referenceLayers

A collection of layers that serve as reference layers.


constructor(uri: String)

Creates a basemap with the URI. If the specified URI is a portal item URL (see PortalItem.PortalItem for the supported URL formats), the underlying PortalItem will be created and accessible through Basemap.item.

Since

200.1.0

Parameters

uri

URI of the basemap, commonly the URL of a web map portal item.

See also

PortalItem.PortalItem

(String)


constructor(basemapStyle: BasemapStyle, basemapStyleParameters: BasemapStyleParameters? = null)

Creates a basemap from an initial BasemapStyle with optional BasemapStyleParameters to control settings such as language. These basemaps are secured and access requires either an API key or an authenticated user.

The initial state of the Basemap is LoadStatus.NotLoaded. When the Basemap is loaded, the values specified in the BasemapStyleParameters are evaluated. See BasemapStyleParameters for information about the expected behavior for each parameter when the Basemap is loaded.

Since

200.3.0

See also