基本信息
以下是所在类或对象的基本信息。
AMD:
require(["esri/views/3d/environment/RainyWeather"], (RainyWeather) => { /* code goes here */ });
ESM:
import RainyWeather from "@arcgis/core/views/3d/environment/RainyWeather";
类:
esri/views/3d/environment/RainyWeather
继承: RainyWeather > Accessor
自从:用于 JavaScript 4.22 的 ArcGIS API
用法说明
RainyWeather 类允许您将场景中的天气条件更改为下雨天气。
例子:
let view = new SceneView({
container: "viewDiv",
map: new Map({
basemap: "satellite",
ground: "world-elevation"
}),
environment: {
weather: {
type: "rainy",
cloudCover: 0.8 // autocasts as new RainyWeather({ cloudCover: 0.8 })
}
}
});
属性更改后,天气可视化会立即更新:
view.environment.weather = {
type: "rainy",
cloudCover: 0.4 // autocasts as new RainyWeather({ cloudCover: 0.4 })
}
相关用法
- JavaScript ArcGIS RasterShadedReliefRenderer.clone用法及代码示例
- JavaScript ArcGIS RasterColormapRenderer.createFromColormap用法及代码示例
- JavaScript ArcGIS RasterInfo.multidimensionalInfo用法及代码示例
- JavaScript ArcGIS RasterFunction.functionArguments用法及代码示例
- JavaScript ArcGIS RasterStretchRenderer.statistics用法及代码示例
- JavaScript ArcGIS RasterFunction.outputPixelType用法及代码示例
- JavaScript ArcGIS RasterFunction用法及代码示例
- JavaScript ArcGIS RadioButtonsInput用法及代码示例
- JavaScript ArcGIS RasterColormapRenderer.clone用法及代码示例
- JavaScript ArcGIS RasterInfo.RasterMultidimensionalInfo用法及代码示例
- JavaScript ArcGIS RasterInfo.attributeTable用法及代码示例
- JavaScript ArcGIS RasterFunction.variableName用法及代码示例
- JavaScript ArcGIS RasterFunction.functionName用法及代码示例
- JavaScript ArcGIS RasterStretchRenderer.clone用法及代码示例
- JavaScript ArcGIS RelationshipQuery.orderByFields用法及代码示例
- JavaScript ArcGIS RouteParameters.findBestSequence用法及代码示例
- JavaScript ArcGIS RouteLayer.solve用法及代码示例
- JavaScript ArcGIS RouteLayer layerview-create事件用法及代码示例
- JavaScript Reflect.get()用法及代码示例
- JavaScript ArcGIS RouteLayer.stops用法及代码示例
- JavaScript Reflect.ownKeys()用法及代码示例
- JavaScript ArcGIS RouteParameters.travelMode用法及代码示例
- JavaScript ArcGIS RouteLayer.opacity用法及代码示例
- JavaScript ArcGIS RouteLayer.visible用法及代码示例
- JavaScript Reflect.construct()用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 RainyWeather。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。