Hi all,
I've already looked for similar problem but I found only very old posts saying that (exposed) filters filtering on the base of proximity results are buggy.
My setup is very simple
Most important modules installed: geofield (dev), leaflet, geolocation (dev), geophp
Node field: geofield (lat/lon) manually filled (let's call it "coordinate")
View:
- Fields: Content: coordinate (field_coordinate) - proximity-
- Filter criterion: Content: coordinate (field_coordinate) - proximity
I was able to get the distance of each node from the origin point (in my case lat/lon of the current node), the problem arises when I would like to filter the results on the base of the calculated distance (in my case between 1 and 30 km). I alway get all the results, meaning that my commands are totally ignored (see figure 1). As the origin point of the filter rules I've used the same criterion employed for the view's content see figure 2 attached
Comment | File | Size | Author |
---|---|---|---|
Figure2.png | 17.46 KB | Rhodungeon | |
figure1.png | 39.75 KB | Rhodungeon |
Comments
Comment #2
Rhodungeon CreditAttribution: Rhodungeon commentedUpdate
I've noticed that the problem consists in using exposed filters: if I set a fixed distance limit (no exposed filter) I get all the correct results. As I expose the proximity filter, the node correctly shows the filtered results after the page has loaded, but unfortunately clicking the "apply" button returns all the results independently of the distance.
Is anyone able to reproduce this behavior?
Thanks in advance!
Comment #3
Rhodungeon CreditAttribution: Rhodungeon commentedI found the solution: see this topic