-
headingLevel
Number
- 自從:ArcGIS 適用於 JavaScript 4.20 的 API
指示用於圖例標題的標題級別。默認情況下,圖例標題呈現為 3 級標題(例如
<h3>Legend title</h3>
)。根據應用中的圖例位置,您可能需要調整此標題以獲得正確的語義。這對於滿足可訪問性標準很重要。默認值:3
例子:
// legend title will render as an <h2> legend.headingLevel = 2;
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/widgets/Legend"], (Legend) => { /* code goes here */ });
ESM:
import Legend from "@arcgis/core/widgets/Legend";
類:
esri/widgets/Legend
繼承: Legend > Widget > Accessor
自從:用於 JavaScript 4.0 的 ArcGIS API
用法說明
Legend.headingLevel
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS Legend.hideLayersNotInCurrentView用法及代碼示例
- JavaScript ArcGIS Legend.classes用法及代碼示例
- JavaScript ArcGIS Legend.style用法及代碼示例
- JavaScript ArcGIS Legend.container用法及代碼示例
- JavaScript ArcGIS Legend.basemapLegendVisible用法及代碼示例
- JavaScript ArcGIS Legend.when用法及代碼示例
- JavaScript ArcGIS Legend.on用法及代碼示例
- JavaScript ArcGIS Legend.visible用法及代碼示例
- JavaScript ArcGIS Legend.respectLayerVisibility用法及代碼示例
- JavaScript ArcGIS Legend用法及代碼示例
- JavaScript ArcGIS LabelClass.repeatLabelDistance用法及代碼示例
- JavaScript ArcGIS LineOfSight.on用法及代碼示例
- JavaScript ArcGIS LineOfSight.classes用法及代碼示例
- JavaScript ArcGIS LabelSymbol3D.callout用法及代碼示例
- JavaScript ArcGIS Layer.opacity用法及代碼示例
- JavaScript ArcGIS Locate.locate用法及代碼示例
- JavaScript ArcGIS LabelSymbol3D.verticalOffset用法及代碼示例
- JavaScript ArcGIS LayerList.classes用法及代碼示例
- JavaScript ArcGIS Locator.addressesToLocations用法及代碼示例
- JavaScript ArcGIS LineSymbol3DLayer.size用法及代碼示例
- JavaScript ArcGIS Locate.visible用法及代碼示例
- JavaScript ArcGIS LabelSymbol3D用法及代碼示例
- JavaScript ArcGIS LineOfSightAnalysis用法及代碼示例
- JavaScript ArcGIS LineOfSightAnalysisView3D用法及代碼示例
- JavaScript ArcGIS LabelClass.clone用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 Legend.headingLevel。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。