I've been playing with the views and proximity search. I can get a view that show all location nodes as markers. However when ever I add a proximity/ distance filter the map disappears.

The end result I'm after is to show a map of user locations. Then have the visitor click on a googlemap to set a location and then search within X miles of that location - I'd rather use miles then postcodes I order to do this.

I've tried to use a separate map as a views attachment but once again whenever I add the proximity/ distance filter the map disappears.

does anyone have any idea how to go about this?

Comments

Mixologic’s picture

Im pretty sure this is related to all the issues surrounding proximity in the location module. There's a boatload of issues in the issue queue, but the big ol 'FIXME' at the bottom of the filter input clued me in.

Brian294’s picture

The exact same thing is happening to my client's website.

itserich’s picture

Issue tags: +proximity

I don't understand how there can be so many proximity possibilities and none that have a fully developed tutorial.

I did get Location module to work, the Location table turned out to have incorrect lat / longitude because it was not being input properly by the node. Added a street name field to the node and Google found the correct location. May not be relevant to your situation.

goldlilys’s picture

Doing almost exactly this except not for user locations but a node location. I have two views (a page and a block).
The first view is a table list of location and event name depending on proximity filter search.

Want the 2nd views block, a gmap, to take in the arguments coming from the first proximity filter. Except whenever I add the arguments, the map disappears. Is it supposed to be an argument or using the views proximity filter search php code to determine lat and long? But it said that the map won't work if it's not exposed. That is not how I want it to work. Why have multiple exposed search fields on one page?

Has anyone been able to create a gmap view along with a table view on the same page using the same proximity exposed filter?

itserich’s picture

After a great deal of research I ended up using OpenLayers and OL Proximity.

Now working with D7 I think it is still the best option.

Here is a tutorial I wrote on making aggregate maps in OL in D6.

http://www.drupaldoes.com/content/tutorial-openlayers-mapping-nodes-and-...

I have not written a tutorial for OL Proximity but it works fine for me.

As to #4 I do not know how to do that yet but anyone working in D7 for proximity this appears to be the most promising thread for a working solution. I am just now trying it out.

http://drupal.org/node/1013450