Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using the location proximity views filter, exposed with the "Latitude / Longitude input (use map)" option, the filter does nothing. It always returns all locations and doesn't filter anything.
As suggested in #1190908-4: "Use Distance / Proximity Filter" Not Working in when an Exposed Views Filter by Vandrico
The problem is there is nothing like:
case 'latlon_gmap':
$coordinates['latitude'] = (float) $options['latitude'];
$coordinates['longitude'] = (float) $options['longitude'];
break;
in the location_views_proximity_get_reference_location() function in location.views.inc
so the lat/lon is not set.
This is a problem in all versions of location.
Comments
Comment #1
rooby CreditAttribution: rooby commentedFixed in 6 & 7.
http://drupalcode.org/project/location.git/commit/c179769
http://drupalcode.org/project/location.git/commit/20d62eb
http://drupalcode.org/project/location.git/commit/7f93484
- The first commit with your name in the message Vandrico :)