Posted by webmayin on April 5, 2012 at 10:07am
I am struggling with the process of creating a proximity locator for D7. There are several tutorials on the net, some for gmap proximity, but they are outdated. Even the gmap API key generation seems screwy, as google has updated it's keys to v3.
Another promising module is OpenLayers Locator module, which has very strange dependencies, and once I tracked them all down and installed the module, my site content was erased.
Has anyone successfully created a proximity search in d7, and have any resources that may help me?
Or something that will allow a zip code to be entered, and a list of nearby locations. Preferably with a map.
Comments
Hi webmayin, I've got one
Hi webmayin,
I've got one working by adding the location cck and gmap location modules, and updating the gmap module to the v3 api as described here:
http://drupal.org/node/1459606
To make this give you a search based on the current location of the user as opposed to the contents of a user or content field, I tried using SmartIP and this method:
http://envisioninteractive.com/drupal/user-targeted-content-with-drupal-...
That aspect is not really working. I am going to try using the geolocation field module instead. I don't know if you need that functionality.
For Drupal 7 check out the
For Drupal 7 check out the Geofield module. After some discussion proximity filtering support via Views was added to the 2.x branch (see http://drupal.org/node/1360260). Personally I stay away from Location + Gmap. Address field, Geocoder, Geofield and OpenLayers work well together, are modern (field based) and have a much better separation of concerns, making it easy to only use what you need and customize your solution.
All the best with your project!
Your post on
Your post on geofield/OpenLayers was very helpful. I have it running here:
http://concertwm.com/advisor-map
There are two issues remaining: If there are no results, it gives a map near Fiji, and when there are multiple nodes at a location, only one shows in the popup from the marker.
Can you please provide some detail
Your example is really nice and I have been trying to figure out how to do something similar with OpenLayers. I'm not a developer but technically proficient. I have not been able to glean enough details from these posts to figure it out. Could you please provide some info on how you got to the point of your example? Have you been able to figure out fixes for the issues you mentioned above?