Active
Project:
Location
Version:
7.x-3.x-dev
Component:
Location_views
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Mar 2011 at 15:13 UTC
Updated:
14 Mar 2013 at 15:40 UTC
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
Comment #1
mrtwister commentedTypo:
However, the results always show every node, no matter which location and 'Distance' parameters I set when filtering the view.
Comment #2
mrtwister commentedThis 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
Comment #3
carnau commentedI want to do the same except that the origin point is the user defined location. Get the same results as #1.
Comment #4
jangolden commentedI 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!
Comment #5
saranyamohan commentedLocation 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.
Comment #6
podarokit is not critical at all