Show progress dialog if layer loading takes a long time