當前位置: 首頁>>代碼示例 >>用法及示例精選 >>正文


JavaScript ArcGIS PointCloudLayer.outFields用法及代碼示例


基本信息

以下是所在類或對象的基本信息。

AMD: require(["esri/layers/PointCloudLayer"], (PointCloudLayer) => { /* code goes here */ });

ESM: import PointCloudLayer from "@arcgis/core/layers/PointCloudLayer";

類: esri/layers/PointCloudLayer

繼承: PointCloudLayer > Layer > Accessor

自從:用於 JavaScript 4.2 的 ArcGIS API

用法說明

PointCloudLayer.outFields函數(或屬性)的定義如下:

outFields String[]


服務中要包含在每個函數中的字段名稱數組。要從圖層中的所有字段獲取值,請使用 ["*"]outFields 中指定的字段將與渲染和過濾所需的字段一起請求。必填字段和 outFields 用於填充 PointCloudLayerView.availableFields

默認值:null

例子:

// Includes all fields from the service in the layer
pcl.outFields = ["*"];
// Get the specified fields from the service in the layer
// These fields will be added to FeatureLayerView.availableFields
// along with rendering and labeling fields. Use these fields
// for client-side filtering and querying.
pcl.outFields = ["ELEVATION", "RGB", "CLASS_CODE];

相關用法


注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 PointCloudLayer.outFields。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。