A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/javascript/latest/sample-code/weather/ below:

Weather component | Sample Code | ArcGIS Maps SDK for JavaScript 4.33

This sample exemplifies how to apply the weather visualization to a Scene component. The clouds and weather effects such as rain can help tell a story in a more realistic and immersive way. Click the "Flooding" button to see the effects of an extreme rainfall event in the city of Utrecht, NL, or explore different weather settings with the Weather component:

Use dark colors for code blocks Copy

1
2
3
4
<arcgis-scene item-id="c56dab9e4d1a4b0c9d1ee7f589343516">
  <!-- include the Weather component inside the Scene component -->
  <arcgis-weather> </arcgis-weather>
</arcgis-scene>

The weather can also be set after initialization of the view and specified as a weather type in the environment property of the Scene component. The five different weather types are sunny, cloudy, rainy, snowy, and foggy. Make sure to check the documentation for the different weather types for weather-specific properties, such as precipitation for rainy weather:

Use dark colors for code blocks Copy

1
2
3
4
5
6
7
const viewElement = document.querySelector("arcgis-scene");
// wait for the view to initialize
await viewElement.viewOnReady();
viewElement.environment.weather = new RainyWeather ({
  cloudCover: 0.7,
  precipitation: 0.3
});

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4