[OpenLayers-Commits] r7367 - sandbox/topp/almanac/lib/OpenLayers/Strategy

commits at openlayers.org commits at openlayers.org
Mon Jun 16 18:48:41 EDT 2008


Author: sbenthall
Date: 2008-06-16 18:48:41 -0400 (Mon, 16 Jun 2008)
New Revision: 7367

Modified:
   sandbox/topp/almanac/lib/OpenLayers/Strategy/BBOX.js
Log:
Allowing BBOX to take a params property on the class


Modified: sandbox/topp/almanac/lib/OpenLayers/Strategy/BBOX.js
===================================================================
--- sandbox/topp/almanac/lib/OpenLayers/Strategy/BBOX.js	2008-06-16 22:13:45 UTC (rev 7366)
+++ sandbox/topp/almanac/lib/OpenLayers/Strategy/BBOX.js	2008-06-16 22:48:41 UTC (rev 7367)
@@ -24,6 +24,8 @@
      *     dimension).
      */
     ratio: 2,
+
+    params: null,
     
     /**
      * Constructor: OpenLayers.Strategy.BBOX
@@ -85,9 +87,13 @@
      * {XMLHttpRequest} The request issued.
      */
     triggerRead: function(params) {
+        
         params = OpenLayers.Util.extend(params || {}, {
             bbox: this.bounds.toArray()
         });
+        params = OpenLayers.Util.extend(OpenLayers.Util.extend({}, this.params),
+                                        params);
+        
         return this.layer.protocol.read({
             params: params,
             callback: function(features) {



More information about the Commits mailing list