基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/views/3d/environment/FoggyWeather"], (FoggyWeather) => { /* code goes here */ });
ESM:
import FoggyWeather from "@arcgis/core/views/3d/environment/FoggyWeather";
類:
esri/views/3d/environment/FoggyWeather
繼承: FoggyWeather > Accessor
自從:用於 JavaScript 4.22 的 ArcGIS API
用法說明
FoggyWeather 類允許您將場景中的天氣條件更改為有霧的天氣。
例子:
let view = new SceneView({
container: "viewDiv",
map: new Map({
basemap: "satellite",
ground: "world-elevation"
}),
environment: {
weather: {
type: "foggy",
fogStrength: 0.8 // autocasts as new FoggyWeather({ fogStrength: 0.8 })
}
}
});
屬性更改後,天氣可視化會立即更新:
view.environment.weather = {
type: "foggy",
fogStrength: 0.4 // autocasts as new FoggyWeather({ fogStrength: 0.4 })
}
相關用法
- JavaScript ArcGIS FormTemplate用法及代碼示例
- JavaScript ArcGIS Font用法及代碼示例
- JavaScript ArcGIS FormTemplate.elements用法及代碼示例
- JavaScript ArcGIS Font.size用法及代碼示例
- JavaScript ArcGIS Font.family用法及代碼示例
- JavaScript ArcGIS FillSymbol3DLayer.outline用法及代碼示例
- JavaScript ArcGIS FeatureLayer.queryExtent用法及代碼示例
- JavaScript ArcGIS FlowRenderer用法及代碼示例
- JavaScript ArcGIS FeatureLayer.when用法及代碼示例
- JavaScript FeatureForm.when用法及代碼示例
- JavaScript ArcGIS FeatureLayer refresh事件用法及代碼示例
- JavaScript Function.displayName屬性用法及代碼示例
- JavaScript ArcGIS FeatureLayer.getFieldDomain用法及代碼示例
- JavaScript ArcGIS FillSymbol3DLayer.castShadows用法及代碼示例
- JavaScript ArcGIS FeatureLayer.queryFeatureCount用法及代碼示例
- JavaScript FloorFilter.headingLevel用法及代碼示例
- JavaScript FeatureForm.getValues用法及代碼示例
- JavaScript FeatureForm.visible用法及代碼示例
- JavaScript FieldColumnConfig.initialSortPriority用法及代碼示例
- JavaScript ArcGIS Feature.visible用法及代碼示例
- JavaScript ArcGIS FeatureLayer.formTemplate用法及代碼示例
- JavaScript ArcGIS Feature用法及代碼示例
- JavaScript FeatureForm.classes用法及代碼示例
- JavaScript ArcGIS FeatureLayer.relationships用法及代碼示例
- JavaScript ArcGIS FindParameters.layerIds用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 FoggyWeather。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。