${iServer2_ServiceAreaEventArgs_Title}

${iServer2_ServiceAreaEventArgs_Description}

Inheritance: SuperMap.Web.Service.ServiceEventArgs
 private void request_Completed(object sender, RequestEventArgs e)
 {
     JsonObject jsonObject = (JsonObject)JsonObject.Parse(e.Result);
     ServiceAreaResult result = ServiceAreaResult.FromJson(jsonObject);
     LastResult = result;
     ServiceAreaEventArgs args = new ServiceAreaEventArgs(result, e.Result, e.UserState);
     OnProcessCompleted(args);
 }
 private void service_ProcessCompleted(object sender, ServiceAreaEventArgs e)
 {
     foreach (ServerGeometry p in e.Result.AreaRegions)
     {
         //显示服务区域
         FillStyle fillStyle = new FillStyle();
         fillStyle.Fill = new SolidColorBrush(Color.FromArgb(120, 179, 235, 246));
         Feature area = new Feature();
         area.Geometry = p.ToGeometry();
         area.Style = fillStyle;
         featuresLayer.AddFeature(area);
     }
 }
 private void OnProcessCompleted(ServiceAreaEventArgs args)
 {
     if (ProcessCompleted != null)
     {
         Application.Current.RootVisual.Dispatcher.BeginInvoke(ProcessCompleted, new object[] { this, args });
     }
 }