when using BBOX or Fixed strategies, pass on the filter used in the request to the loadstart event. This is mostly important in the case of BBOX, since there is no other way to get the filter used in the request. An example use case is doing a hitCount request using the same filter to find out the true number of features matched on the server-side
This commit is contained in:
@@ -88,7 +88,7 @@ OpenLayers.Strategy.Fixed = OpenLayers.Class(OpenLayers.Strategy, {
|
||||
*/
|
||||
load: function(options) {
|
||||
var layer = this.layer;
|
||||
layer.events.triggerEvent("loadstart");
|
||||
layer.events.triggerEvent("loadstart", {filter: layer.filter});
|
||||
layer.protocol.read(OpenLayers.Util.applyDefaults({
|
||||
callback: OpenLayers.Function.bind(this.merge, this,
|
||||
layer.map.getProjectionObject()),
|
||||
|
||||
Reference in New Issue
Block a user