getdata may be called without the layer being added to the map
add listeners to remove layers with a lower load-order when loading the most important one
layer may not have been added yet