I'm attempting to modify the service area tool to accept multiple input locations (supplied by multiple drawEvent's) using a multipoint feature. I've created a geoprocessing task that accepts the input location parameter as a multipoint. I've verified that this works by running the published task in ArcMap. However, the flex application seems to supply only the first point added to the multipoint to the geoprocessing task. I have verified that the multipoint infact has multiple points by supplying it to a graphic, and displaying this graphic in the flex application.
Does anyone have experience using multiple input locations?
Here is the related code:
(creating the multipoint)
....
var locPoint:Multipoint;
locPoint = new Multipoint([firstPoint, SecondPoint]);
(supplying input parameter)
....
var graphic:Graphic = new Graphic(locPoint, locSym); //***graphic displays both points correctly in the app***
var featureSet:FeatureSet = new FeatureSet([graphic]);
....
var params:Object =
{
"Input_Facilities": featureSet,
"Drive_Time_Values": driveTimes
};
Any advice would be a help,
Thank you