Here is what I am trying to achieve: Letting the user put a pin on a gmap, select a radious and hit "apply". This should result in a list of nodes within that proximity.
Exposing the dist/prox. filter and setting origin to "lat/long input (use map)" gives the correct setup, but hitting apply never renders any results.
What am I missing?
By the way: When I select "static lat/long" as origin and expose, everything works perfectly, but then the user must type the coordinates by hand which is not very user friendly.
Attaching an export of my view
| Comment | File | Size | Author |
|---|---|---|---|
| commoditylist.txt | 5.47 KB | oskarg |
Comments
Comment #1
ub_freak commentedFacing the exact same problem. Any solution anyone can share...
Comment #2
shpung commentedSeems like that location_views_proximity_get_reference_location doesn't take into account if the option is of type 'latlon_gmap', which the proximity filter sets. I got this working by adding the case to do the same as the static option. Add this line after line 476 in location.views.inc:
case 'static':
> case 'latlon_gmap':
$coordinates['latitude'] = (float) $options['latitude'];
$coordinates['longitude'] = (float) $options['longitude'];
Not fully tested.
Comment #3
ub_freak commentedHey shpung!
adding that line did take care of the issue. Getting proper results here. Thanks
Comment #4
legolasboClosing old D6 issues as D6 is end of life