i have a feature layer which gets queried on each location change,the layer doesnt have anything to draw on the map.
so i wish not to add it to the map view.
the problem is that when i dont add the layer to the map,methods of AGSQueryDelegate doesnt get called,
if i add,the problem is for each location my code gets executed(which has to be) but the same layer gets added to the map again and again,
is there a way to query the layer without adding it to the map,im using esri sdk 10.2.5
please give me an idea to solve this..