Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

Problem:help,help,help!Arcgis flex api bug in directions modul?please help me!

$
0
0
I use arcgis flex api to develop a function about route direction.everything is ok,but the route isn't along the road,then i debug the code and found this issue:
var routeResult:RouteResult = event.routeSolveResult.routeResults[0];
directionsFS = routeResult.directions;
//var route:Graphic=routeResult.route;
route=routeResult.route;
//map.defaultGraphicsLayer.add(new Graphic(directionsFS.mergedGeometry, routeSymbol));
//edit by lizeping
map.defaultGraphicsLayer.add(new Graphic(route.geometry, routeSymbol));
the sample code use directionsFS.mergedGeometry and the route isn't on the road but if change it to route.geometry it's ok!
now i have a problem: when i want to show the segment of the route,the geometry that from the directionsFS.features all show tow point,when highlinght the segment it's also cannot along the road,some one can help me?thx!

Viewing all articles
Browse latest Browse all 2097

Trending Articles