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


constructor(basemapStyle: BasemapStyle)

Creates a scene with a BasemapStyle.

Since

200.1.0


constructor(item: Item)

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

Since

200.1.0


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


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

See also

PortalItem.PortalItem

(String)