For D6 I used gmap, which allowed me to easily create map-based views and include proximity filters and sorts. With D7 I've been tempted to move to OpenLayers - I like the idea of learning one powerful mapping tool that can be used to solve more problems than presumably gmap could. However I can't for the life of me find anything that looks close to stable for proximity filters and sorts. I find this a bit surprising - does anyone know of anything I've missed? The best lead I've found so far is this sandbox project, but I haven't given it a go yet.

So can anyone recommend a way, with or without OpenLayers, to have Views-based mapping and proximity filters on D7?

  • Generally speaking, it is not the mapping solution that provides the proximity searching functionality, it is the geo-data storage module. For example, if you use the geofield module to store your location data and openlayers and views to display your data and provide data filtering, the filtering and searching functionality is provided by the geofield module. The open layers module is just displaying the data that gets sent to it. In the case you mention with gmap, it is actually the location module doing the proximity search, not the gmap module.
    – rooby
    Commented Jul 2, 2019 at 7:11

1 Answer 1


As of writing this, jpstrikesback's sandbox: Proximity is really solid. I have it running on a few production sites without issues. Once he feels it's 100% it is either going to be released as the D7 version of OpenLayers Proximity or use the new namespace "Proximity" (as it really does not require OpenLayers to function).

I recently wrote up a walkthrough of how to get this up and running for another question on stack exchange. See Need a simple Google Maps solution; lost in the labyrinth of modules.

As you mentioned GMap was ok in D6, but using OpenLayers is much more robust and flexible. It's worth spending the extra time to get it set up. Good luck


Not the answer you're looking for? Browse other questions tagged or ask your own question.