esri.tasks.TrimExtendParameters
| Constructor | Description |
|---|---|
| esri.tasks.TrimExtendParameters() | Creates a new TrimExtendParameters object. The constructor takes no parameters. |
| Property | Type | Description |
|---|---|---|
| extendHow | String | A flag used with the trimExtend operation. |
| polylines | Polyline[] | The array of polylines to trim or extend. The structure of each geometry in the array is the same as the structure of the JSON polyline objects returned by the ArcGIS REST API. |
| trimExtendTo | Polyline | A polyline used as a guide for trimming or extending input polylines. The structure of the polyline is the same as the structure of the JSON polyline object returned by the ArcGIS REST API. |
var trimExtendParams = new esri.tasks.TrimExtendParameters();
A flag used along with the trimExtend operation.
| DEFAULT_CURVE_EXTENSION |
Default value. The extension considers both ends of the path. The old ends remain and new points are added to the extended ends. The new points have attributes that are extraploated from existing adjacent segments. |
| RELOCATE_ENDS |
When an extension is performed at an end, relocate the end point to the new position. |
| KEEP_END_ATTRIBUTES |
When an extension is performed at an end, do not extrapolate the end segments attributes for the new point. Instead, the attributes will be the same as the current end. |
| NO_END_ATTRIBUTES |
When an extension is performed at an end, do not extraploate the end segments attributes for the new point. Instead the attributes will be empty. |
| NO_EXTEND_AT_FROM |
Do not extend the 'from' end of any path. |
| NO_EXTEND_AT_TO |
Do not extend the 'to' end of any path. |
trimExtendParams.polylines = esri.getGeometries(lateralFL.getSelectedFeatures());