Map.onLayersAddResult only fires if use Map.addLayers

Discussion created by bb1769 on Mar 21, 2011
Latest reply on Dec 18, 2012 by Mohmmad.Farooq
It seems that the Map's onLayersAddResult gets fired only if you've added layers to the map using addLayers. The function I've set for onLayersAddResult does not get called if I add layers one at a time with the addLayer method. If this is by design, the documentation for onLayersAddResult should say that it only works for layers added with addLayers.