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/NATypes"], function(NATypes) { /* code goes here */ });
require([
"esri/tasks/ClosestFacilityParameters",
"esri/tasks/NATypes",
"esri/tasks/RouteParameters",
"esri/tasks/ServiceAreaParameters"
], function (Map, ClosestFacilityParameters, NATypes, RouteParameters, ServiceAreaParameters){
var closestFacilityParams = new ClosestFacilityParameters();
var routeParams = new RouteParameters();
var serviceAreaParams = new ServiceAreaParameters();
closestFacilityParams.outputLines = NATypes.OutputLine.STRAIGHT;
closestFacilityParams.travelDirection = NATypes.TravelDirection.FROM_FACILITY;
serviceAreaParams.outputPolygons = NATypes.OutputPolygon.DETAILED;
routeParams.restrictUTurns = NATypes.UTurn.ALLOW_BACKTRACK;
});| Name | Type | Summary |
|---|---|---|
| OutputLine | Object | Returns the constants defined by NAOutputLine. |
| OutputPolygon | Object | Returns the constants defined by NAOutputPolygon. |
| TravelDirection | Object | Returns the constants defined by NATravelDirection. |
| UTurn | Object | Returns the constants defined by NAUTurn. |
Object> OutputLineconstants defined by NAOutputLineObject> OutputPolygonconstants defined by NAOutputPolygonObject> TravelDirectionconstants defined by NATravelDirectionObject> UTurnconstants defined by NAUTurn. NAUTurn has no constructor. Should be used in favor of network analysis parameters classes. require(["esri/tasks/RouteParameters", "esri/tasks/NATypes"], function(RouteParameters, NATypes){
var routeParams = new RouteParameters();
routeParams.restrictUTurns = NATypes.UTurn.ALLOW_BACKTRACK;
});