trying to add color on a result

586
0
02-25-2014 06:24 AM
GyeyoungChoi
New Contributor II
function onResults(results) {
 map.graphics.clear();
 var geom = results.features[0].geometry;
 var extent = geom.getExtent();
 var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.sym bol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([80,0,0]), 2), new dojo.Color([255,255,0,0.5]));
 var graphic = results.features[0];
 map.graphics.add(graphic);
 map.setExtent(extent, true);
}

It zooms into the result but no graphic change.

I'm not sure what did I miss here?


Please help me thanks,
0 Kudos
0 Replies