AnsweredAssumed Answered

Feature Layer vs Query Task

Question asked by huntesri on Feb 11, 2015
Latest reply on Apr 21, 2015 by rscheitlin

I'm using ArcGIS Javascript API, and I need to query the GIS and show the results on the map.  Currently I have used a Query Task by specifying the layer,  the "where" statement,  graphic symbol, InfoTemplate etc. and it works well.  I'm wondering however whether I should be using a Feature Layer with a Definition Expression, rather than the Query Task.  Using a Feature Layer would enable the drawing information from the server to be used.  Also the symbol would show in the legend.  When is it better to use a Query Task rather then a Feature Layer?

Outcomes