The bbox filter is not working. All results are being returned, instead of only the results in the bounding box.

Also, the arg_id is not being used, it is always set as "bbox"

Another related warning message I was getting is:

Strict warning: Declaration of views_geojson_bbox_argument::query() should be compatible with views_handler_argument::query($group_by = false) in require_once() (line 11 of /var/www/clients/client0/web20/web/sites/all/modules/views_geojson/views/views_geojson_bbox_argument.inc).

Changing line 91 of the file /views_geojson/views/views_geojson_bbox_argument.inc to :
function query($group_by = FALSE) {
fixes this warning message, but the bounding box and arg_id are still not working.

Comments

apt94jesse’s picture

I was having some issues getting the bbox working too. I have a geofield that I'm using for the location in the WKT format. As I was digging through the code, I found a comment that said "no support for WKT yet." Soooo, I output the geofield twice in the view, set one to display as latitude and one as longitude, then mapped them correctly in the settings, and voila, it works like magic.

FYI, that's in modules/views_geojson/views/views_geojson_bbox_argument.inc, line 115 of the current dev release.

This module seems like a great start but the poor documentation is a real sore spot. Hope that helps, I have not encountered the error message you mentioned.

clemens.tolboom’s picture

Status: Active » Closed (duplicate)

This is similar to #1839554: BBox argument handler fixes

See also #1839462: BBox argument handler doesn't work with GROUP BY for the strict warning.

Both issues have patches. Therefor I close this one to speed up the work for the maintainer.

clemens.tolboom’s picture