Fix dataview problem for bbox with no query rewrite data

Fixes #457
This commit is contained in:
Javier Goizueta 2016-05-18 17:49:09 +02:00
parent 8628d3b671
commit a1e024e228

View File

@ -149,8 +149,10 @@ DataviewBackend.prototype.getDataview = function (mapConfigProvider, user, param
bbox: params.bbox bbox: params.bbox
} }
}; };
if ( queryRewriteData ) {
queryRewriteData = _.extend(queryRewriteData, { bbox_filter: bbox_filter_definition }); queryRewriteData = _.extend(queryRewriteData, { bbox_filter: bbox_filter_definition });
} }
}
var dataviewFactory = DataviewFactoryWithOverviews.getFactory( var dataviewFactory = DataviewFactoryWithOverviews.getFactory(
overviewsQueryRewriter, queryRewriteData, { bbox: params.bbox } overviewsQueryRewriter, queryRewriteData, { bbox: params.bbox }