${iServerJava6R_RouteLocatorEventArgs_Title}

Inheritance: SuperMap.Web.Service.ServiceEventArgs
        private void RouteLocatorService_Complated(object sender, RequestEventArgs args)
        {
            JsonObject json = (JsonObject)JsonObject.Parse(args.Result);

            RouteLocatorResult result = RouteLocatorResult.FromJson(json);

            lastResult = result;
            RouteLocatorEventArgs e = new RouteLocatorEventArgs(result, args.Result, args.UserState);

            if(ProcessCompleted!=null)
            {
                ProcessCompleted(this, e);
            }
        }
        void service_ProcessCompleted(object sender, RouteLocatorEventArgs e)
        {
            if (e.Result.ResultGeometry is GeoLine)
            {
                Feature f = new Feature();
                PredefinedLineStyle style = new PredefinedLineStyle();
                style.Symbol = PredefinedLineStyle.LineSymbol.Solid;
                style.Stroke = new SolidColorBrush(Colors.Blue);
                style.StrokeThickness = 5;
                f.Geometry = e.Result.ResultGeometry;
                f.Style = style;
                _routeLayer.AddFeature(f);

            }
        }
        void service_ProcessCompleted(object sender, RouteLocatorEventArgs e)
        {
            if (e.Result.ResultGeometry is GeoPoint)
            {
                Feature f = new Feature();
                f.Geometry = e.Result.ResultGeometry;

                pushpin.Location = f.Geometry.Bounds.Center;
                pushpin.Background = new SolidColorBrush(Colors.Red);
                pushpin.Content = "O";

                _elementsLayer.AddChild(pushpin);
            }
        }