-
unitOptions
SystemOrLengthUnit[]
用於顯示距離值的可用單位和單位係統(英製、公製)列表。默認情況下,包含以下單位:
metric
,imperial
,inches
,feet
,us-feet
,yards
,miles
,nautical-miles
,meters
,kilometers
。可能的單位值隻能是該列表的子集。例子:
// To display the available units to the console let measurementWidget = new DistanceMeasurement2D({ view: view }); console.log('All units: ', measurementWidget.unitOptions.join(", "));
基本信息
以下是所在類或對象的基本信息。
AMD:
require(["esri/widgets/DistanceMeasurement2D"], (DistanceMeasurement2D) => { /* code goes here */ });
ESM:
import DistanceMeasurement2D from "@arcgis/core/widgets/DistanceMeasurement2D";
類:
esri/widgets/DistanceMeasurement2D
繼承: DistanceMeasurement2D > Widget > Accessor
自從:用於 JavaScript 4.10 的 ArcGIS API
用法說明
DistanceMeasurement2D.unitOptions
函數(或屬性)的定義如下:
相關用法
- JavaScript ArcGIS DistanceMeasurement2D.unit用法及代碼示例
- JavaScript ArcGIS DistanceMeasurement2D.view用法及代碼示例
- JavaScript ArcGIS DistanceMeasurement2D.when用法及代碼示例
- JavaScript ArcGIS DistanceMeasurement2D.viewModel用法及代碼示例
- JavaScript ArcGIS DistanceMeasurement2D.on用法及代碼示例
- JavaScript ArcGIS DistanceMeasurement2D.container用法及代碼示例
- JavaScript ArcGIS DistanceMeasurement2D.visible用法及代碼示例
- JavaScript ArcGIS DistanceMeasurement2D.classes用法及代碼示例
- JavaScript ArcGIS DistanceMeasurement2D用法及代碼示例
- JavaScript ArcGIS Directions.visible用法及代碼示例
- JavaScript ArcGIS DirectLineMeasurementAnalysisView3D用法及代碼示例
- JavaScript ArcGIS Directions.routeServiceUrl用法及代碼示例
- JavaScript ArcGIS DirectLineMeasurement3D.when用法及代碼示例
- JavaScript ArcGIS DirectLineMeasurement3D.on用法及代碼示例
- JavaScript ArcGIS DimensionalDefinition用法及代碼示例
- JavaScript ArcGIS DictionaryRenderer.visualVariables用法及代碼示例
- JavaScript ArcGIS DictionaryRenderer.clone用法及代碼示例
- JavaScript ArcGIS DirectionPoint用法及代碼示例
- JavaScript ArcGIS DirectLineMeasurementAnalysis用法及代碼示例
- JavaScript ArcGIS DictionaryRenderer.fieldMap用法及代碼示例
- JavaScript ArcGIS Directions.when用法及代碼示例
- JavaScript ArcGIS DictionaryRenderer.url用法及代碼示例
- JavaScript ArcGIS Directions.apiKey用法及代碼示例
- JavaScript ArcGIS Directions.container用法及代碼示例
- JavaScript ArcGIS DirectLineMeasurement3D.classes用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 DistanceMeasurement2D.unitOptions。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。