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

CommentFileSizeAuthor
commoditylist.txt5.47 KBoskarg

Comments

ub_freak’s picture

Facing the exact same problem. Any solution anyone can share...

shpung’s picture

Seems 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.

ub_freak’s picture

Hey shpung!
adding that line did take care of the issue. Getting proper results here. Thanks

legolasbo’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing old D6 issues as D6 is end of life