-
unit
SystemOrLengthUnit
单位系统(英制、公制)或用于显示距离值的特定单位。可能的值列在unitOptions 中。
例子:
// To create the DistanceMeasurement2D widget that displays distance in yards let measurementWidget = new DistanceMeasurement2D({ view: view, unit: "yards" }); // To display the current measurement unit console.log('Current unit: ', measurementWidget.unit);
基本信息
以下是所在类或对象的基本信息。
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.unit
函数(或属性)的定义如下:
相关用法
- JavaScript ArcGIS DistanceMeasurement2D.unitOptions用法及代码示例
- 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.unit。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。