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


JavaScript ArcGIS LayerOptions用法及代碼示例

基本信息

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

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

ESM: import LayerOptions from "@arcgis/core/popup/LayerOptions";

類: esri/popup/LayerOptions

繼承: LayerOptions > Accessor

自從:用於 JavaScript 4.11 的 ArcGIS API

用法說明

LayerOptions 類定義了可以為層的 PopupTemplate 定義的附加選項。

例子:

popupTemplate: {
  "title": "ScientificData/SeaTemperature:{ProductName}",
  content: [{
    type: "fields",
    "fieldInfos": [{
      "fieldName": "Raster.ItemPixelValue",
      "label": "Item Pixel Value",
      "isEditable": false,
      "visible": true,
      "format": {
        "places": 2,
        "digitSeparator": true
      }
    }],
  "layerOptions": {
    "showNoDataRecords": true
  }
  }]
}

相關用法


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