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:

  1. Fields: Content: coordinate (field_coordinate) - proximity-
  2. 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

CommentFileSizeAuthor
Figure2.png17.46 KBRhodungeon
figure1.png39.75 KBRhodungeon
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Rhodungeon created an issue.

Rhodungeon’s picture

Update

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!

Rhodungeon’s picture

I found the solution: see this topic