Skip to content
Snippets Groups Projects

issue 3402843 - GeoJSON BBox filtering working?

Open sano requested to merge issue/openlayers-3402843:7.x-3.x into 7.x-3.x
1 file
+ 6
6
Compare changes
  • Side-by-side
  • Inline
@@ -41,12 +41,12 @@ var openlayers_source_internal_geojson = {
@@ -41,12 +41,12 @@ var openlayers_source_internal_geojson = {
if (this._forceReloadFeatures) {
if (this._forceReloadFeatures) {
this._loadingFeatures = true;
this._loadingFeatures = true;
var projection = (this.getProjection()) ? this.getProjection() : data.map.getView().getProjection();
var projection = (this.getProjection()) ? this.getProjection() : data.map.getView().getProjection();
// data.opt.loader.call(this, extent, resolution, projection);
data.opt.loader.call(this, extent, resolution, projection);
// // This has to be enabled / disabled before each loadFeatures
// This has to be enabled / disabled before each loadFeatures
// // call.
// call.
// this._forceReloadFeatures = false;
this._forceReloadFeatures = false;
// // Return an empty list - so the original loader is skipped.
// Return an empty list - so the original loader is skipped.
// return [];
return [];
}
}
// If bbox is used return proper extent.
// If bbox is used return proper extent.
if (data.opt.useBBOX) {
if (data.opt.useBBOX) {
Loading