Appearance
Measure (Map Measurement)
Tool class for performing various measurement operations on the map.
Constructor
ts
new ge3d.matter.Measure(options?): MeasureParameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| id | String/Number | uuid() | Object id identifier |
| enabled | Boolean | true | Object enabled state |
| hasEdit | Boolean | false | Whether editable |
| isAutoEditing | Boolean | true | Whether to automatically start editing after completing measurement |
| isContinued | Boolean | false | Whether to continue measurement |
| label | Object | - | Style of measurement result text |
Properties
| Property | Type | Description |
|---|---|---|
| id | any | Object id identifier |
| enabled | any | Object enabled state |
| featureLayer | any | Corresponding vector layer |
| feature | any | Collection of Feature objects within the layer |
Methods
distance
Measure spatial distance
ts
distance(opts?): anyParameters:
opts.style: Route styleopts.unit: Measurement unit (auto, m, km, mile, zhang)
area
Area measurement (horizontal plane)
ts
area(opts?): anyParameters:
opts.style: Surface styleopts.unit: Measurement unit (auto, m, km, mu, ha)
height
Height measurement
ts
height(opts?): anyheightTriangle
Triangular height measurement
ts
heightTriangle(opts?): anyIncludes horizontal distance, spatial distance, and height difference.
volume
Volume measurement (cubic analysis)
ts
volume(opts?): anypoint
Coordinate measurement
ts
point(opts?): anyclear
Clear vector data
ts
clear(): void