I have been hacking away trying to make this happen for several days and I just can't seem to wrap my head around it. I am trying to use IP Geolocation Views and Maps to create a store locator. The locator shows a combined table display (titles and address) and leaflet map display. When an anonymous user lands on the page it needs to ask the user to share their location and then refresh both the map and table display. The table display orders the list based on proximity to the user and the map centre's on the users location displaying only markers within 100km of the user's location. Then if the user decides, they can override these settings using an exposed filter to increase the distance and change the origin location.

I have been able to achieve some the following using different approaches
I can get only the map to work using IP Geolocation Views and Maps but I cannot get the table (views attachment) to inherit this
I can get a proximity filter that allows a user to manually enter some info to be geocoded and then filter by proximity sing geofiled 2.x

I cannot seem to combine the two. I have also tried views global filter as mentioned in one of your other issue threads but that was way over my head.

If you can shed some light on how I can achieve this that would be awesome and very much appreciated. I would even settle for an exposed proximity filter using geofield 2.x that uses IP geolocation and views to prepolulate the point of origin. :)

Comments

rdeboer’s picture

I can get only the map to work using IP Geolocation Views and Maps but I cannot get the table (views attachment) to inherit this
A: I have seen this too. If Views is meant to support Attachments obeying Exposed Filter selections that are in sync with their "parent" View, then I feel this might be a bug in Views -- maybe it's reported already, not sure.
The Views Global Filter module (although not specifically designed for this feature) gets around this. See the last part of my DrupalCon Sydney presentation for an example: http://www.youtube.com/watch?v=iznuDhjAFbg

I believe Geofield 2.x could and should fulfill what you're after... when it's ready... Suggest you contact the maintainer, Brandonian for more info.

Funksmaname and I worked on this proximity issue #1699326: Fix distance filter: some nodes within the specified distance are NOT returned, based on the Geolocation Field module (rather than Geofield module) and at the end of it, he produced a wonderful site that pretty much realises the functionality you're after, see http://stallspot.co.nz/discover
I'm sure he'll be willing to give you a few pointers on how he finalised this functionality.

rdeboer’s picture

Assigned: Unassigned » rdeboer
Status: Active » Closed (fixed)

Assisted through private communication -- closing.