When I use ArcGIS Runtime SDK for. NET for network analysis, I report "No styles are specified" error when I execute await RouteTask.CreateAsync(). What steps are wrong?
stops.Add(new Stop((MapPoint)startData.Geometry)); stops.Add(new Stop((MapPoint)endData.Geometry));
RouteTask solveRouteTask = await RouteTask.CreateAsync(new Uri("http://27.154.234.238:6088/arcgis/rest/services/JC/netforspeed2/NAServer/Route")); RouteParameters routeParams = await solveRouteTask.CreateDefaultParametersAsync();
routeParams.DirectionsStyle = DirectionsStyle.Desktop; routeParams.ReturnStops = true; routeParams.ReturnDirections = true; routeParams.SetStops(stops);
RouteResult solveRouteResult = await solveRouteTask.SolveRouteAsync(routeParams);
Hi,
Please can you share your code?
Cheers
Mike
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.