Geocluster

Last updated on
30 April 2025

Update: There is an updated make file from the module maintainer here

The Geocluster module provides server-side clustering for mapping in Drupal 7 based on Geohash.

Installation

Geocluster has been tested with a certain set of modules and patches. These are included in the make file. You can either apply those patches manually, integrate them into your development workflow or just use the following procedure to set up a geocluster demo:

wget http://drupalcode.org/project/geocluster.git/blob_plain/refs/heads/7.x-1.x:/modules/geocluster_demo/geocluster_demo.make.example

Prepare drupal and all required modules using the make file.

drush make geocluster_demo.make.example

Install drupal, for example using drush; install the geocluster demo feature and (this needs to be a separate step) import demo content.

Without solr:

drush site-install -y 
drush en geocluster_demo -y 
drush en geocluster_demo_content -y

With solr:
The demo expects a solr 3.x instance to be running at localhost:8123.

drush site-install -y
drush en geocluster_solr_demo -y
drush en geocluster_demo_content -y

UPDATE: The pantheon demo site no longer exsists.
Finally, visit your site, it should look similar to http://dev.geocluster.gotpantheon.com/

Patches

The following patches are required for Geocluster to work properly. They are also included in the geocluster_demo.make.example patched geocluster_demo.make.example file.

Core:
#691932: Add hook_field_schema_alter()

Views:
#1791796: Allow to inject a custom aggregation implementation
#1362524: add GROUP_CONCAT aggregate function; and move aggregate function helpers to a query extender?

Views GeoJSON:
#1799870: Add hook views_geojson_feature_alter

UUID Features
#1849668: Add support for Bean exporting (deployable bean instances).

Search API:
#1832586: Add hook_search_api_views_pre_execute

Search API Solr:
#1744250: Support location based search
#1721262: Field collapsing

Further issues

#1772192: Add a geohash widget
#1641870: Bounding Box support with Search API views

GeoPHP:
Polygon->centroid() doesn't work for 1-dimensional polygons

Help improve this page

Page status: Not set

You can: