GeoJSON BBox filtering working?

Created on 20 November 2023, about 1 year ago
Updated 21 November 2023, about 1 year ago

The provided module examples do not seem to include a case, illustrating how to implement a GeoJSON source produced by a view - one that would also allow dynamic filtering of features by zooming, or panning the map.

I have succeeded in creating a GeoJSON source using the Views GeoJSON module, and I can also see that it responds as expected if it is fed a bbox. However, I am unable to make the OpenLayers source dynamically emit BBox for the view to act upon.

Is there some trick to make this work?

πŸ› Bug report
Status

Needs review

Version

3.3

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia sano

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @sano
  • πŸ‡ΈπŸ‡°Slovakia sano

    I found out the code responsible for loading features was commented out in the geojson.js file:

            if (this._forceReloadFeatures) {
              this._loadingFeatures = true;
              var projection = (this.getProjection()) ? this.getProjection() : data.map.getView().getProjection();
              // data.opt.loader.call(this, extent, resolution, projection);
              // // This has to be enabled / disabled before each loadFeatures
              // // call.
              // this._forceReloadFeatures = false;
              // // Return an empty list - so the original loader is skipped.
              // return [];
            }
    
    

    In can't find in the file history when was the change made, who did it and why.

  • Status changed to Needs review about 1 year ago
  • πŸ‡ΈπŸ‡°Slovakia sano
  • πŸ‡ΈπŸ‡°Slovakia sano
Production build 0.71.5 2024