Permalink
Browse files

Only attempt fast lane for AND filters

  • Loading branch information...
1 parent be255ed commit 8cc65756bce55504f0458d8dad17fed5b6449742 @ahocevar ahocevar committed Feb 15, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/ol/source/vectorsource.js
View
3 src/ol/source/vectorsource.js
@@ -101,7 +101,8 @@ ol.source.FeatureCache.prototype.getFeaturesObject_ = function(opt_filter) {
for (i in boundsByGeometryType) {
goog.object.extend(features, boundsByGeometryType[i].find(extent));
}
- } else if (opt_filter instanceof ol.filter.Logical) {
+ } else if (opt_filter instanceof ol.filter.Logical &&
+ opt_filter.operator === ol.filter.LogicalOperator.AND) {
var filters = opt_filter.getFilters();
if (filters.length === 2) {
var filter, geometryFilter, extentFilter;

0 comments on commit 8cc6575

Please sign in to comment.