${iServerJava6R_GetFeaturesEventArgs_Title}
${iServerJava6R_GetFeaturesEventArgs_Description}
void ser_ProcessCompleted(object sender , GetFeaturesEventArgs e) { if (e.Result != null) { featureslayer.AddFeatureSet(e.Result.Features); } }
private void ser_ProcessCompleted(object sender , GetFeaturesEventArgs e) { flayer.ClearFeatures(); if (e.Result != null) { flayer.AddFeatureSet(e.Result.Features); } else { MessageBox.Show("查询结果为空"); } }
private void getFeaturesByGeometryServiceInSelectEditTool_ProcessCompleted(object sender, GetFeaturesEventArgs e) { if (e.Result == null || e.Result.FeatureCount < 1) { MessageBox.Show("很抱歉,没有查询到结果!\n" + "请重试!"); return; } Feature addingFeature = e.Result.Features[0]; this.MyMap.ZoomTo(addingFeature.Geometry.Bounds); featuresLayer.AddFeature(addingFeature); }
void ser_ProcessCompleted(object sender, GetFeaturesEventArgs e) { _routeLayer.Features.Clear(); foreach (var f in e.Result.Features) { PredefinedLineStyle style = new PredefinedLineStyle(); style.StrokeThickness = 5; style.Stroke = new SolidColorBrush(Colors.Red); style.Symbol = PredefinedLineStyle.LineSymbol.Dash; f.Style = style; _routeLayer.AddFeature(f); } }
//查询成功高亮显示选中地物,并显示相关属性信息 private void query_ProcessCompleted(object sender, GetFeaturesEventArgs e) { //点击处没有地物的情况 if (e.Result == null) { MessageBox.Show("查询结果为空"); return; } //判断是否存在当前选择 if (featureIDs.Contains(Convert.ToInt32(e.Result.Features[0].Attributes["SMID"].ToString()))) { return; } featureIDs.Add(Convert.ToInt32(e.Result.Features[0].Attributes["SMID"].ToString())); //点击处存在地物时,用蓝色边显示该地物 drawLayer.AddFeatureSet(e.Result.Features); }
private void request_Completed(object sender, RequestEventArgs e) { JsonObject jsonObject = (JsonObject)JsonObject.Parse(e.Result); GetFeaturesResult result = GetFeaturesResult.FromJson(jsonObject); LastResult = result; GetFeaturesEventArgs args = new GetFeaturesEventArgs(result, e.Result, e.UserState); OnProcessCompleted(args); }
private void OnProcessCompleted(GetFeaturesEventArgs args) { if (ProcessCompleted != null) { this.ProcessCompleted(this, args); } }
void queryFeaturesService_ProcessCompleted(object sender, GetFeaturesEventArgs e) { //if (e.Result != null && e.Result.Features != null && e.Result.Features.Count > 0) //{ // flayer.AddFeatureSet(e.Result.Features); //} }