Skip to main content

@novorender/web_app / RoadModule

Class: RoadModule

Module for handling road spesific parametric data.

Extends

  • BaseModule

Constructors

new RoadModule()

new RoadModule(worker, parent): RoadModule

Parameters

ParameterType
workerMeasureWorker
parentMeasureView

Returns

RoadModule

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

ParameterTypeDescription
roadIdsstring[]Unqiue string id for each road, can be found in the data api
profileNumbernumberDistance 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

Defined in

@novorender/measure/modules/base.ts:4