Skip to content

Measure (Map Measurement)

Tool class for performing various measurement operations on the map.

Constructor

ts
new ge3d.matter.Measure(options?): Measure

Parameters

ParameterTypeDefaultDescription
idString/Numberuuid()Object id identifier
enabledBooleantrueObject enabled state
hasEditBooleanfalseWhether editable
isAutoEditingBooleantrueWhether to automatically start editing after completing measurement
isContinuedBooleanfalseWhether to continue measurement
labelObject-Style of measurement result text

Properties

PropertyTypeDescription
idanyObject id identifier
enabledanyObject enabled state
featureLayeranyCorresponding vector layer
featureanyCollection of Feature objects within the layer

Methods

distance

Measure spatial distance

ts
distance(opts?): any

Parameters:

  • opts.style: Route style
  • opts.unit: Measurement unit (auto, m, km, mile, zhang)

area

Area measurement (horizontal plane)

ts
area(opts?): any

Parameters:

  • opts.style: Surface style
  • opts.unit: Measurement unit (auto, m, km, mu, ha)

height

Height measurement

ts
height(opts?): any

heightTriangle

Triangular height measurement

ts
heightTriangle(opts?): any

Includes horizontal distance, spatial distance, and height difference.

volume

Volume measurement (cubic analysis)

ts
volume(opts?): any

point

Coordinate measurement

ts
point(opts?): any

clear

Clear vector data

ts
clear(): void