Class: RouteCalculateMeasureParameters

ol.supermap.RouteCalculateMeasureParameters

The parameter class that is based on the route object to calculate the M value of a specified point. Provides parameter information by this class.

new ol.supermap.RouteCalculateMeasureParameters(options)

RouteCalculateMeasureParameters.js, line 5
Name Type Description
options Object

The parameters.

Name Type Default Description
sourceRoute ol.supermap.Route | L.Polyline | ol.geom.LineString

route object. This object can be route objects generated by users or route objects gotten from the datasource query.

point ol.supermap.Geometry.Point | L.LatLng | L.Point | ol.geom.Point

2D geographic coordinates point object, including attribute objects of the x and y coordinate values.

tolerance float optional

Tolerance.

isIgnoreGap boolean false optional

Whether to ignore the distance between child objects.

Members

isIgnoreGapboolean

Whether to ignore the distance between child objects.

2D geographic coordinates point object, including attribute objects of the x and y coordinate values.

route object. This object can be route objects generated by users or route objects gotten from the datasource query.

tolerancefloat

Tolerance.

Methods

destroy()

RouteCalculateMeasureParameters.js, line 50

Disposes the resource. The property that references resource is set to null.