@novorender/web_app / RoadModule
Class: RoadModule
Module for handling road spesific parametric data.
Extends
BaseModule
Constructors
new RoadModule()
new RoadModule(worker, parent): RoadModule
Parameters
Parameter | Type |
---|---|
worker | MeasureWorker |
parent | MeasureView |
Returns
Inherited from
BaseModule.constructor
Defined in
@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
[]>
Defined in
@novorender/measure/modules/road/module.ts:32
Properties
parent
readonly parent: MeasureView;
Inherited from
BaseModule.parent
Defined in
@novorender/measure/modules/base.ts:4
worker
readonly worker: MeasureWorker;
Inherited from
BaseModule.worker