oops. need to show/hide the layer when we change it.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1609 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-10-05 20:11:53 +00:00
parent ad545a0280
commit 46b0402b0b

View File

@@ -695,6 +695,7 @@ OpenLayers.Map.prototype = {
var inRange = layer.calculateInRange();
if (layer.inRange != inRange) {
layer.inRange = inRange;
layer.display(layer.visibility && layer.inRange);
this.events.triggerEvent("changelayer");
}