AnsweredAssumed Answered

How to specify layer with layer-add-result event?

Question asked by hodges@rpsgroup.com on Nov 6, 2014
Latest reply on Nov 6, 2014 by jskinner-esristaff

The ArcGIS JavaScript API Map object has the following two events (text taken from the API):

 

layer-add

Fires any time a layer is added to the map. Should be used in favor of onLayerAdd. (Added at v3.5)

 

layer-add-result

Fires after specified layer has been added to the map. Should be used in favor of onLayerAddResult. (Added at v3.5)

 

layer-add does exactly what it says: fires every time a layer is added.  However, layer-add-result says it will fire after specified layer has been added.  How do you specify the layer to trigger this event to fire?

Outcomes