Hi,

I'm trying to define a Views results list based on the latitiude and longitude values of node items. I want the user to be able to select a location on Gmap and then be shown node items within a choosen radius of the centre.

In order to do this I have exposed the 'Location: Distance / Proximity' filter and choosen 'Latitude / Longitude input (use map)' with the 'Proximity (Circular)' option.

However, the results always show node, no matter which location and 'Distance' parameters I set when filtering the view.

Any help getting this working will be appreciated! :)

Thanks,
Mark

Comments

mrtwister’s picture

Typo:
However, the results always show every node, no matter which location and 'Distance' parameters I set when filtering the view.

mrtwister’s picture

This posting has been up for over a day without one single reply :( other than my own ;)
Surely I'm not attempting to do anything out of this world here.

All I want to do is allow site visitors to set an origin point on a GMap and search radius then have Drupal return all the nodes within that radius.

Has anybody got this working?
I'm pretty new to Location and GMap, so any pointers at all would be appreciated.

Thanks,
Mark

carnau’s picture

I want to do the same except that the origin point is the user defined location. Get the same results as #1.

jangolden’s picture

I was having the same issues with the location proximity filter showing results when the page is initially displayed.
I found the solution here. http://drupal.org/node/358546#comment-1492012
Here is a recap of what I did to fix:
Add an argument of global: null.
Action to take if argument is not present: provide default argument
Default argument type: php code
Php argument code:
if (count($view->exposed_input)) {
return FALSE;
}
Validator options: basic validation
Action to take if argument does not validate: display empty text

I hope this helps!

saranyamohan’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Category: support » bug
Priority: Normal » Critical

Location proximity filter not filtering destinations whose latitudes,longitudes are known,which are at definite distance( say ,distance may be 100km or.... miles )from start or source point whose latitudes and longitudes are known in view results.I want to get the count and also thelatitude and longitude of nodes of destinations at that particular distance selected by user in view results.

podarok’s picture

Priority: Critical » Major

it is not critical at all