class.RoadModule
API > RoadModule
Class: RoadModule
Module for handling road spesific parametric data.
Extends
BaseModule
Constructors
constructor
new RoadModule(
worker
,parent
):RoadModule
Parameters
Parameter | Type |
---|---|
worker | MeasureWorker |
parent | MeasureView |
Returns
Inherited from
BaseModule.constructor
Source
@novorender/measure/modules/base.ts:4
Properties
parent
readonly
parent:MeasureView
Inherited from
BaseModule.parent
Source
@novorender/measure/modules/base.ts:4
worker
readonly
worker:MeasureWorker
Inherited from
BaseModule.worker
Source
@novorender/measure/modules/base.ts:4
Methods
getCrossSections
getCrossSections(
roadIds
,profileNumber
):Promise
\<RoadCrossSection
[] >
Get cross sections at a spesific profile in the road.
Parameters
Parameter | Type | Description |
---|---|---|
roadIds | string [] | Unqiue string id for each road, can be found in the data api |
profileNumber | number | Distance along the center line where the cross section should be cut |
Returns
Promise
\< RoadCrossSection
[] >