I am using this sample: https://developers.arcgis.com/en/javascript/jssamples/query_buffer.html and I'm doing something similar, where a user clicks the map and a buffer is drawn and points selected in that buffer. If I use map.graphics.clear(), the buffer gets cleared, but the selected points remain until you click the map again, which causes another buffer and selection. Is there a similar function I can call to get rid of the queried points? Or do I need to reload the map? I did some searching but couldn't find a solution. Thanks.
In the example you linked, a graphic representation is added to the map which shows the 1 mile buffer. The code "map.graphics.clear" just removes that graphic and doesn't do anything with respect to any selected features.
In the example you linked, a graphic representation is added to the map which shows the 1 mile buffer. The code "map.graphics.clear" just removes that graphic and doesn't do anything with respect to any selected features.