Appearance
ProfileMeasure (Profile Measurement)
Create and manage a profile measurement object for terrain profile analysis.
Constructor
ts
new ge3d.feature.ProfileMeasure(options?: {}): ProfileMeasureParameters (StyleOptions)
| Parameter | Type | Default | Description |
|---|---|---|---|
| splitNum | Number | 200 | Number of interpolation steps |
| hasEdit | Boolean | false | Whether editable |
| asyn | Boolean | false | Whether to calculate asynchronously |
| maxPointNum | Number | - | Maximum number of points (drawing ends automatically after reaching this number) |
| has3dtiles | Boolean | false | Whether to consider 3D tiles in calculation |
| style | Object | - | Route style |
| style.clampToGround | Boolean | true | Whether to clamp to ground |
| style.materialType | ge3d.MaterialType | - | Material type |
| style.color | String | - | Color |
| style.opacity | Number | 1.0 | Opacity |
| style.outline | Boolean | false | Whether to have outline |
| style.outlineColor | String | - | Outline color |
| style.outlineWidth | Number | 1 | Outline width |
| label | Object | - | Style of measurement result text |
| label.color | String | - | Text color |
| label.font_family | String | - | Font family |
| label.font_size | Number | - | Font size |
| label.background | Boolean | false | Whether to show background |
Properties
| Property | Type | Description |
|---|---|---|
| options | Object | Construction parameters |
| type | String | Measurement type |
Methods
updateSectionForTerrain
Calculate profile for terrain
ts
updateSectionForTerrain(event: any): voidfromDraw
Create vector object through plotting
ts
static fromDraw(layer: GraphicLayer, options: Object): ProfileMeasureParameters:
layer: Layeroptions: Construction parameters for vector object
Returns: ProfileMeasure object