withUri static method
- Uri uri
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 GeoModel.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
Parameters:
uri
— URI of the web scene on ArcGIS Online or ArcGIS Enterprise portal.