BBOX Strategy is active for an inactive vector layer, r=pgiraud (pullup #3383)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@12126 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
bartvde
2011-06-24 18:21:49 +00:00
parent d1009b92ad
commit d7d90b20e3
2 changed files with 12 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ OpenLayers.Strategy.BBOX = OpenLayers.Class(OpenLayers.Strategy, {
"refresh": this.update,
scope: this
});
if(this.layer.visibility == true) {
if(this.layer.visibility === true && this.layer.inRange === true) {
this.update();
} else {
this.layer.events.on({