基本信息
以下是所在类或对象的基本信息。
AMD:
require(["esri/views/3d/environment/SunnyWeather"], (SunnyWeather) => { /* code goes here */ });
ESM:
import SunnyWeather from "@arcgis/core/views/3d/environment/SunnyWeather";
类:
esri/views/3d/environment/SunnyWeather
继承: SunnyWeather > Accessor
自从:用于 JavaScript 4.22 的 ArcGIS API
用法说明
SunnyWeather 类允许您将场景中的天气条件更改为晴天。
例子:
let view = new SceneView({
container: "viewDiv",
map: new Map({
basemap: "satellite",
ground: "world-elevation"
}),
environment: {
weather: {
type: "sunny",
cloudCover: 0.8 // autocasts as new SunnyWeather({ cloudCover: 0.8 })
}
}
});
属性更改后,天气可视化会立即更新:
view.environment.weather = {
type: "sunny",
cloudCover: 0.4 // autocasts as new SunnyWeather({ cloudCover: 0.4 })
}
相关用法
- JavaScript ArcGIS SunLighting.when用法及代码示例
- JavaScript ArcGIS SunLighting用法及代码示例
- JavaScript ArcGIS Sublayer.JoinTableDataSource用法及代码示例
- JavaScript ArcGIS Sublayer.DynamicDataLayer用法及代码示例
- JavaScript ArcGIS SubtypeSublayer.renderer用法及代码示例
- JavaScript ArcGIS Sublayer.opacity用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.on用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.sublayers用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.timeOffset用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.fields用法及代码示例
- JavaScript ArcGIS Sublayer.TableDataSource用法及代码示例
- JavaScript ArcGIS Sublayer.visible用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.maxScale用法及代码示例
- JavaScript ArcGIS Sublayer.labelingInfo用法及代码示例
- JavaScript ArcGIS Sublayer.createFeatureLayer用法及代码示例
- JavaScript ArcGIS Sublayer.DynamicMapLayer用法及代码示例
- JavaScript ArcGIS Sublayer.title用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer layerview-create-error事件用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.layerId用法及代码示例
- JavaScript ArcGIS Sublayer.maxScale用法及代码示例
- JavaScript ArcGIS Sublayer.fields用法及代码示例
- JavaScript ArcGIS Sublayer.getFieldDomain用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer refresh事件用法及代码示例
- JavaScript ArcGIS Sublayer.labelsVisible用法及代码示例
- JavaScript ArcGIS SubtypeGroupLayer.queryFeatureCount用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 SunnyWeather。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。