function showRoute(results, messages) { var features = results[0].value.features; for(var i = 0;i < features.length;i++) { var graphic = features; graphic.setSymbol(routeSymbols); map.graphics.add(graphic); } }
Map should be map
function showRoute(results, messages) { var features = results[0].value.features; for(var i = 0;i < features.length;i++) { var graphic = features; graphic.setSymbol(routeSymbols); map.graphics.add(graphic); } }
thank you very much!but I try it,I am sorry it is does not work.
Map should be map
function showRoute(results, messages) { var features = results[0].value.features; for(var i = 0;i < features.length;i++) { var graphic = features; graphic.setSymbol(routeSymbols); map.graphics.add(graphic); } }