AnsweredAssumed Answered

Identify difference between ArcGISDynamicLayer and GraphicsLayer on layer-add-result event?

Question asked by bforbhavin on Jul 21, 2014
Latest reply on Jul 21, 2014 by bforbhavin

I am using ArcGISDynamicLayer on my map and executing some code when this layer is added to the map in layer-add-result event. Now, I have few GraphicsLayer too on my map, whenever they are added then same layer-add-result event is getting fired. But I want to avoid this event to fire when GraphicsLayer is added Or identify type of the layer in the callback function of this event so, I can control execution of the code in the callback function depends upon the type of the layer. What is the best way to identify that? Is there any property that can say type of the layer?

Outcomes