Basemap

constructor(item: Item)

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

Since

200.1.0


constructor(baseLayer: Layer)

Creates a basemap with a single base layer.

Since

200.1.0


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

Creates a basemap with collections of base and reference layers.

Since

200.1.0


constructor(uri: String)

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

Since

200.1.0

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