environment

Represents settings that affect the environment in which the web scene is displayed. It is entirely stored as part of the initial state of the web scene, and partially in the slides in the presentation.

Referenced by: initialState, slide

Properties

Property Details
atmosphereEnabled Whether the atmosphere should be visualized. This includes sky and haze effects.
background The background is what is displayed behind any scene objects, stars and atmosphere.
lighting Object containing information on how the scene is lit.
starsEnabled Whether stars should be displayed in the sky.
weather Indicates the type of weather visualization in the scene.
Must be one of the following values:

environment Example

{
  "atmosphereEnabled": true,
  "background": {
    "type": "color",
    "color": [
      0,
      0,
      0
    ],
    "transparency": 0
  },
  "starsEnabled": true
}

environment with weather Example

{
  "atmosphereEnabled": true,
  "weather": {
    "type": "rainy",
    "cloudCover": 0.7,
    "precipitation": 1
  },
  "starsEnabled": true
}

environment with virtual lighting Example

{
  "atmosphereEnabled": true,
  "background": {
    "type": "color",
    "color": [
      0,
      0,
      0
    ],
    "transparency": 0
  },
  "lighting": {
    "type": "virtual"
  },
  "starsEnabled": true
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close