Skip to content
导览

Interface: measureConfig

测量参数

Details

主要是否开启特征点、测量精度、单位、测量线样式、测量面样式、显示距离、字体样式、背景框样式。

Properties

snapPoints

snapPoints: null | boolean

Details

是否开启特征点(选填)


Accuracy

Accuracy: null | number

Details

测量精度(选填)

取值范围[0,4]


unit

unit: null | unitConfig

Details

单位对象(选填)


style

style: Object

Details

测量样式(必填)

Type declaration

NameTypeDescription
lineColornull | ColorDetails

测量线颜色(选填)

lineSize?null | numberDetails

测量线大小(三维线半径大小)

polygonColornull | ColorDetails

测量面颜色(选填)

measureLableStyle{ backgroundColor: null | Color ; frameColor: null | Color ; frontStyle: null | fontStyle ; ShowByDistance: null | [0, number] }Details

标签样式

measureLableStyle.backgroundColornull | ColorDetails

标签背景颜色(选填)

measureLableStyle.frameColornull | ColorDetails

标签背景边框颜色(选填)

measureLableStyle.frontStylenull | fontStyleDetails

字体样式(选填)

measureLableStyle.ShowByDistancenull | [0, number]Details

可视距离(选填)