AnsweredAssumed Answered

Query a feature layer without adding the layer to the map

Question asked by cyber2maro on Sep 24, 2018
Latest reply on Sep 24, 2018 by cyber2maro

hello all,

 

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..

Outcomes