From 7c4f85ffd57604f4b8a299e1cc88c3c0de8eb49e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Mon, 20 Jul 2009 08:42:42 +0000 Subject: [PATCH] Undocumented property 'filter' in Layer.Vector assumed in BBOX Strategy, initial patch from rdewit, no functional change (closes #2061) git-svn-id: http://svn.openlayers.org/trunk/openlayers@9567 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Vector.js | 8 ++++++++ lib/OpenLayers/Strategy/BBOX.js | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Layer/Vector.js b/lib/OpenLayers/Layer/Vector.js index 9db527b700..8ac538eda9 100644 --- a/lib/OpenLayers/Layer/Vector.js +++ b/lib/OpenLayers/Layer/Vector.js @@ -130,6 +130,14 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, { */ features: null, + /** + * Property: filter + * {} The filter set in this layer, + * a strategy launching read requests can combined + * this filter with its own filter. + */ + filter: null, + /** * Property: selectedFeatures * {Array()} diff --git a/lib/OpenLayers/Strategy/BBOX.js b/lib/OpenLayers/Strategy/BBOX.js index 53b171a83f..a43f210982 100644 --- a/lib/OpenLayers/Strategy/BBOX.js +++ b/lib/OpenLayers/Strategy/BBOX.js @@ -217,7 +217,10 @@ OpenLayers.Strategy.BBOX = OpenLayers.Class(OpenLayers.Strategy, { /** * Method: createFilter - * + * Creates a spatial BBOX filter. If the layer that this strategy belongs + * to has a filter property, this filter will be combined with the BBOX + * filter. + * * Returns * {} The filter object. */