Class: RegionPlaceInfo

RegionPlaceInfo()

new RegionPlaceInfo()

区放置样式
Source:

Methods

(async, static) createObj() → {Promise.<RegionPlaceInfo>}

创建一个新的RegionPlaceInfo对象
Source:
Returns:
Type
Promise.<RegionPlaceInfo>

(async, static) getDuplicateType() → {int}

获取重复类型
Source:
Returns:
重复类型,例:DuplicateType.OneLabelPreFeaturePart的值0
Type
int

(async, static) getLimitLabelSmallRegion() → {boolean}

获取是否限制小区标注
Source:
Returns:
Type
boolean

(async, static) getSmallRegionMaxArea() → {double}

获取限制小区标注的最大面积(设备单位 * 设备单位,小于该面积则小区不标注)
Source:
Returns:
Type
double

(async, static) getTryLabelOutside() → {boolean}

当区内部无法标注时,是否尝试水平标注在区的外面
Source:
Returns:
Type
boolean

(async, static) getType() → {int}

获取区标注类型
Source:
Returns:
区标注类型,例:RegPlaceType.HorizationPlace
Type
int

(async, static) setDuplicateType(duplicateType) → {Promise.<Void>}

设置重复类型
Parameters:
Name Type Description
duplicateType int 重复类型,例:DuplicateType.OneLabelPreFeaturePart
Source:
Returns:
Type
Promise.<Void>

(async, static) setLimitLabelSmallRegion(limitLabelSmallRegion) → {Promise.<Void>}

设置是否尝试水平标注在区的外面
Parameters:
Name Type Description
limitLabelSmallRegion boolean 是否限制小区标注
Source:
Returns:
Type
Promise.<Void>

(async, static) setSmallRegionMaxArea(smallRegionMaxArea) → {Promise.<Void>}

设置限制小区标注的最大面积(设备单位 * 设备单位,小于该面积则小区不标注)
Parameters:
Name Type Description
smallRegionMaxArea double 是限制小区标注的最大面积
Source:
Returns:
Type
Promise.<Void>

(async, static) setTryLabelOutside(tryLabelOutside) → {Promise.<Void>}

设置是否尝试水平标注在区的外面
Parameters:
Name Type Description
tryLabelOutside boolean 是否尝试水平标注在区的外面
Source:
Returns:
Type
Promise.<Void>

(async, static) setType(regPlaceType) → {Promise.<Void>}

设置区标注类型
Parameters:
Name Type Description
regPlaceType int 区标注类型,例:RegPlaceType.HorizationPlace
Source:
Returns:
Type
Promise.<Void>