Download & Extend

Exposed proximity filter using gmap doesn't filter results

Project:Location
Version:7.x-3.x-dev
Component:Location_views
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

Title:The exposed Latitude / Longitude input (use map) option of the proximity filter doesn't filter results» Exposed proximity filter using gmap doesn't filter results
Status:active» fixed

Fixed 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 :)

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.