In Map.setCenter, only call Layer.moveTo if Layer.getVisibility returns true.

In Layer.setVisibility, call Layer.moveTo with zoomChanged = true, so that the
grid tiles are reloaded. In an ideal world, the grid tiles would only be loaded
if they haven't been loaded yet. This would spare us the split second wait
while the browser reloads those images from the cache, but we want to release
today, so it'll have to wait.



git-svn-id: http://svn.openlayers.org/trunk/openlayers@1448 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Schuyler Erle
2006-09-14 16:16:50 +00:00
parent 24381c2f37
commit c0fc945824
2 changed files with 2 additions and 2 deletions

View File

@@ -606,7 +606,7 @@ OpenLayers.Map.prototype = {
var bounds = this.getExtent();
for (var i = 0; i < this.layers.length; i++) {
var layer = this.layers[i];
if ((layer == this.baseLayer) || !layer.isBaseLayer) {
if (layer.getVisibility()) {
layer.moveTo(bounds, zoomChanged, minor);
}
}