QueryTask (or other types of tasks) with ArcGISDynamicMapServiceLayer

Discussion created by p3tar on Oct 17, 2012
Latest reply on Oct 19, 2012 by drhall001
If someone can answer the question:

For example, if i am using the ArcGISDynamicMapServiceLayer with dynamic map service resource exposed by the ArcGIS Server for displaying very large number of POIs (points, more than 10000, drawn by ArcGIS server) i know i can use Query, QueryTask, FindTask, IdentifyTask for a variety of user interaction with the map (maptips, identify on click etc.)... but my question is... is there a way of querying ArcGISDynamicMapServiceLayer map service resource (on-the-fly) that would filter (show/hide) out some POIs that are drawn iin that dynamic map service resource? For example, initial map displays 1000 POIs (all POIs), after that user want to see only the selected POIs (from some filter/list) on the map...