function showResults(results) {//This bounds the results into the data grid from doFind() function var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([98,194,204]), 200), new dojo.Color([98,194,204,0.5])); for(var i=0; i < results.features.length; i++){ //map.graphics.add(results.features); var graphic = results.features; graphic.setSymbol(symbol); map.graphics.add(graphic); } }
Solved! Go to Solution.
what type of geometry are you returning?
Your Subject says "points" but your code is using a fill symbol, which is polygon
symbols are now showing up on their proper location on the map. I had to put in this line of code again (thanks @Odoe!):
query.outSpatialReference = map.spatialReference;
Thank you all very much! I think next I will need to work out zoom map location from a result grid--but that is a different topic.
great! if you could mark either odoe's or my post as the answer (since we each got half, doesnt matter whom) that would be appreciated (just click the check mark on the right).
Marked--it was really 50/50 solution between the two of you (Jeff.pace and @Odoe). Without specifying the correct symbol the map wouldn't show the symbol and without inputting the correct spatial info the symbols would show but--in Africa--which I would have missed.
Thank you both again!