When looping through the map's layers, is there a way to tell what type of layer it is? I can get the layer ids, but some added layers (via a gp service) have generic ids (i.e. layer0, layer1, etc.) -- I'd like to be able to tell which is which.
Thanks,
Glen