openlayers/openlayers — pull request #196 by ahocevar (2012-02-02 12:56:18+00:00)
Title: Making sure that a new base layer becomes visible

When switching base layers, the new base layer may previously have been out of range, in which case setVisibility(true) would do nothing if the layer was visible already. So we check if it was previously out of range, and redraw it if necessary.