-
visualVariables
VisualVariable[]
autocast
VisualVariable 對象的數組。每個對象必須指明要應用的可視變量的類型(例如 SizeVisualVariable 、RotationVisualVariable )、驅動可視化的數字字段或表達式,以及映射到數據的可視值。
為 VectorFieldRenderer 上設置的可視變量設置字段時,請使用
Magnitude
和Direction
字段。Magnitude
將返回第一個波段的像素值。Direction
將從第二個波段返回值。如果數據代表 u(緯向)和 v(經向)速度分量,則值會自動轉換為Magnitude
和Direction
。例子:
const renderer = new VectorFieldRenderer({ style: "beaufort-kn", // Beaufort point symbol (knots) flowRepresentation: "flow-from", // show flow to angle for wind direction symbolTileSize: 10, // controls the density of the displayed vector symbols. visualVariables: [ { type: "size", field: "Magnitude", // values read from the first band maxDataValue: 32, maxSize: "100px", minDataValue: 0.04, minSize: "8px" }, { type: "rotation", field: "Direction", // values read from the second band rotationType: "geographic" } ] });
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/renderers/VectorFieldRenderer"], (VectorFieldRenderer) => { /* code goes here */ });
ESM:
import VectorFieldRenderer from "@arcgis/core/renderers/VectorFieldRenderer";
類:
esri/renderers/VectorFieldRenderer
繼承: VectorFieldRenderer > Accessor
自從:用於 JavaScript 4.17 的 ArcGIS API
用法說明
VectorFieldRenderer.visualVariables
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS VectorFieldRenderer.clone用法及代碼示例
- JavaScript ArcGIS VectorFieldRenderer用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.apiKey用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.customParameters用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.opacity用法及代碼示例
- JavaScript ArcGIS VectorTileLayer用法及代碼示例
- JavaScript ArcGIS VectorTileLayer layerview-create-error事件用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.setPaintProperties用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.setSpriteSource用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.visible用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.getStyleLayerVisibility用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.url用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.setStyleLayerVisibility用法及代碼示例
- JavaScript ArcGIS VectorTileLayer layerview-create事件用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.when用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.setLayoutProperties用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.setStyleLayer用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.portalItem用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.style用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.deleteStyleLayer用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.maxScale用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.minScale用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.effect用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.on用法及代碼示例
- JavaScript ArcGIS VectorTileLayer.fullExtent用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 VectorFieldRenderer.visualVariables。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。