Proximity map based on current node

BWPanda - September 19, 2008 - 01:19
Project:Location Views
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I used to have a taxonomy list for node locations as well as a gmap for showing all nodes on one, main map.
I now trying to get rid of this extra work (entering locations twice) and thought I'd try using the proximity view to allow users to find nodes close to the current one (I figure they can just use the main map to find nodes anywhere else) as opposed to selecting taxonomy terms.

What I'd like to know is how to do this.
I can setup a view in a block to display on node pages with the proximity filter, but how do I set the lat./long. to the current node automatically?

Any help would be much appreciated!

#1

BWPanda - October 6, 2008 - 23:38

Still looking for help with this if possible...

#2

BWPanda - November 3, 2008 - 04:42

Anyone?

#3

malcomio - June 4, 2009 - 17:14

I was hoping to achieve the same, possibly by using relationships or arguments, but none of the location stuff appears in arguments

haven't managed to figure it out yet - can anyone help?

#4

chaosprinz - June 11, 2009 - 06:44

Subscribing
I am searchin for a similar solution for user-locations. I tried with arguments, and i tried to give relationship to the filter, but nothing worked.

#5

andrewsuth - June 12, 2009 - 14:08
Component:Miscellaneous» Code
Category:support request» feature request

You're right, I am using the current dev version and the options for this are:

Origin:

  • User's location (blank if unset)
  • User's location (fall back to static if unset)
  • Static location
  • Use Distance / Proximity filter

And below these options there is a tiny FIXME written .. perhaps this has already been thought about?

+1 for current node added to Origin. I'd just love to be able to inform the users of the distance from the current node to other nodes.

This idea makes too much sense not to be added to the module.

#6

srobert72 - August 11, 2009 - 13:34

Subscribing

I'd want to show GMap for my current node.
On this map I'd like to show only other nodes with less a certain distance from current node.

Views proximity filter from current node would be great !

#7

dpatte - November 10, 2009 - 03:16

I have just suceeded at being able to calculate the distance from users to any node, using the user location feature. Unfortunately, if the user provides no location in his profile it seems to show no distance even with the fallback option selected.
If this is what you want, maybe I can help.

 
 

Drupal is a registered trademark of Dries Buytaert.