ArcGISScene

constructor()

Creates a scene.

Since

200.1.0

See also

GeoModel.load

()


constructor(basemap: Basemap)

Creates a scene with a Basemap.

Since

200.1.0

Parameters

basemap

A basemap object.


constructor(basemapStyle: BasemapStyle)

Creates a scene with a BasemapStyle.

Since

200.1.0

Parameters

basemapStyle

The basemap style.


constructor(item: Item)

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

Since

200.1.0

Parameters

item

The web scene PortalItem.


constructor(tilingScheme: SceneViewTilingScheme)

Creates a scene with a specific tiling scheme. The tiling scheme determines which cached tiled services can render in the scene.

Since

200.1.0

Parameters

tilingScheme

The tiling scheme to use for tiled layers.


constructor(uri: String)

Creates a scene with the URL to a web scene. If the specified URL is a portal item URL, the underlying PortalItem is created and can be accessed through ArcGISScene.item. The URL may be a direct URL to web scene JSON content or the URL of a portal item.

Examples of supported URL formats:

  • The web scene viewer page, for example: https://www.arcgis.com/home/webscene/viewer.html?webscene=579f97b2f3b94d4a8e48a5f140a6639b

  • The web scene item details page, for example: https://www.arcgis.com/home/item.html?id=579f97b2f3b94d4a8e48a5f140a6639b

  • The REST sharing API data, for example: https://www.arcgis.com/sharing/rest/content/items/579f97b2f3b94d4a8e48a5f140a6639b/data

  • The REST sharing API page (with or without the query parameter f=json), for example: https://www.arcgis.com/sharing/rest/content/items/579f97b2f3b94d4a8e48a5f140a6639b?f=json

Since

200.1.0

Parameters

uri

URI of the web scene on ArcGIS Online or ArcGIS Enterprise portal.

See also

PortalItem.PortalItem

(String)