${iServerJava6R_FindMTSPPathsEventArgs_Title}

${iServerJava6R_FindMTSPPathsEventArgs_Description}

Inheritance: SuperMap.Web.Service.ServiceEventArgs
        private void findMTSPPathsService_ProcessCompleted(object sender, FindMTSPPathsEventArgs e)
        {
            //路径样式
            PredefinedLineStyle simpleLineStyle = new PredefinedLineStyle();
            simpleLineStyle.Stroke = new SolidColorBrush(Colors.Blue);
            simpleLineStyle.StrokeThickness = 2;

            if (e.Result != null && e.Result.MTSPathList != null)
            {
                foreach (ServerPath p in e.Result.MTSPathList)
                {
                    //将要素添加到图层上
                    featuresLayer.Features.Add(new Feature { Geometry = p.Route, Style = simpleLineStyle });
                }
            }
        }
 void mTSPPathsService_ProcessCompleted(object sender, FindMTSPPathsEventArgs e)
 {
     Point2D p = (Point2D)(e.Result.MTSPathList[0].Center);
 }