Hide Table of Contents
esri
esri/arcgis
esri/dijit
esri/dijit/analysis
esri/dijit/geoenrichment
esri/dijit/geoenrichment/ReportPlayer
esri/geometry
esri/layers
esri/renderers
esri/symbols
esri/tasks
esri/tasks/datareviewer
esri/tasks/geoenrichment
esri/tasks/locationproviders
require(["esri/tasks/DirectionsFeatureSet"], function(DirectionsFeatureSet) { /* code goes here */ });
NOTE: For a more updated approach to working with directions, please see the Working with the Directions Widget topic.
esri/tasks/FeatureSet |_esri/tasks/DirectionsFeatureSet
| Name | Type | Summary |
|---|---|---|
| displayFieldName | String | The name of the layer's primary display field. |
| exceededTransferLimit | Boolean | Typically a layer has a limit on the number of features (i.e., records) returned by the query operation. |
| extent | Extent | The extent of the route. |
| features | Graphic[] | The array of graphics returned. |
| fieldAliases | Object | Set of name-value pairs for the attribute's field and alias names. |
| fields | Object[] | The array of fields. |
| geometryType | String | The geometry type of the FeatureSet. |
| mergedGeometry | Polyline | A single polyline representing the route. |
| routeId | String | The ID of the route returned from the server. |
| routeName | String | Name specified in RouteParameters.stops. |
| spatialReference | SpatialReference | When a FeatureSet is used as input to Geoprocessor, the spatial reference is set to the map's spatial reference by default. |
| strings | Object[] | Lists additional information about the direction depending on the value of directionsOutputType. . |
| totalDriveTime | Number | Actual drive time calculated for the route. |
| totalLength | Number | The length of the route as specified in RouteParameters.directionsLengthUnits. |
| totalTime | Number | The total time calculated for the route as specified in RouteParameters.directionsTimeAttribute. |
String> displayFieldNameBoolean> exceededTransferLimitmaxRecordCount is configured for a layer, exceededTransferLimit will be true if a query matches more than the maxRecordCount features and false otherwise. Supported by ArcGIS Server version 10.1 and later. (Added at v2.8)true | falseExtent> extentGraphic[]> features
require([
"esri/graphic", "esri/tasks/FeatureSet", ...
], function(Graphic, FeatureSet, ... ) {
var graphic = new Graphic( ... );
var features= [];
features.push(graphic);
var featureSet = new FeatureSet();
featureSet.features = features;
...
});
Object> fieldAliasesObject[]> fieldsString> geometryTypePolyline> mergedGeometryString> routeIdSpatialReference> spatialReferenceObject[]> stringsNumber> totalDriveTimeNumber> totalLengthRouteParameters.directionsLengthUnits.Number> totalTimeRouteParameters.directionsTimeAttribute.