${iServerJava6R_ClosestFacilitiesEventArgs_Title}

${iServerJava6R_ClosestFacilitiesEventArgs_Description}

Inheritance: SuperMap.Web.Service.ServiceEventArgs
 void closestFacilitiesService_ProcessCompleted(object sender, FindClosestFacilitiesEventArgs e)
 {
     if (e.Result.FacilityPathList[0].Facility is Point2D)
     {
         Point2D pp = (Point2D)(e.Result.FacilityPathList[0].Facility);
     }
     else
     {
         int i = (int)(e.Result.FacilityPathList[0].Facility);
     }
 }
        private void findclosestFacilitiesService_ProcessCompleted(object sender, FindClosestFacilitiesEventArgs e)
        {
            //路径样式
            PredefinedLineStyle simpleLineStyle = new PredefinedLineStyle();
            simpleLineStyle.Stroke = new SolidColorBrush(Colors.Blue);
            simpleLineStyle.StrokeThickness = 2;

            if (e.Result != null && e.Result.FacilityPathList != null)
            {
                foreach (ServerPath path in e.Result.FacilityPathList)
                {
                    featuresLayer.Features.Add(new Feature { Geometry = path.Route, Style = simpleLineStyle  });
                }
            }
        }