Skip to content

ProfileMeasure (Profile Measurement)

Create and manage a profile measurement object for terrain profile analysis.

Constructor

ts
new ge3d.feature.ProfileMeasure(options?: {}): ProfileMeasure

Parameters (StyleOptions)

ParameterTypeDefaultDescription
splitNumNumber200Number of interpolation steps
hasEditBooleanfalseWhether editable
asynBooleanfalseWhether to calculate asynchronously
maxPointNumNumber-Maximum number of points (drawing ends automatically after reaching this number)
has3dtilesBooleanfalseWhether to consider 3D tiles in calculation
styleObject-Route style
style.clampToGroundBooleantrueWhether to clamp to ground
style.materialTypege3d.MaterialType-Material type
style.colorString-Color
style.opacityNumber1.0Opacity
style.outlineBooleanfalseWhether to have outline
style.outlineColorString-Outline color
style.outlineWidthNumber1Outline width
labelObject-Style of measurement result text
label.colorString-Text color
label.font_familyString-Font family
label.font_sizeNumber-Font size
label.backgroundBooleanfalseWhether to show background

Properties

PropertyTypeDescription
optionsObjectConstruction parameters
typeStringMeasurement type

Methods

updateSectionForTerrain

Calculate profile for terrain

ts
updateSectionForTerrain(event: any): void

fromDraw

Create vector object through plotting

ts
static fromDraw(layer: GraphicLayer, options: Object): ProfileMeasure

Parameters:

  • layer: Layer
  • options: Construction parameters for vector object

Returns: ProfileMeasure object