The Geocluster module provides server-side clustering for mapping in Drupal 7 based on Geohash.
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:
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.
drush si -y && drush en geocluster_demo admin_menu -y && drush dis toolbar -y && drush en geocluster_demo_content -y
the demo expects a solr 3.x instance to be running at localhost:8123.
drush si -y && drush en geocluster_solr_demo admin_menu -y && drush dis toolbar -y && drush en geocluster_demo_content -y
Geolocation provides a Drupal 7 field for storing Longitude/Latitude pairs.
It is a light-weight alternative for the Geofield module, since it does not automatically enables own widgets, but implements the widgets in submodules.
Other helper modules:
Leaflet currently offers:
- Field formatter that can show a map for fields that contain geospatial data
- Views integration that plots data on a map (using the sub module Leaflet Views)
- API for displaying data on a map
Leaflet extension modules
- Leaflet Markercluster - Provides Beautiful Animated Marker Clustering functionality for Leaflet using the Leaflet MarkerCluster library.
- Leaflet Widget for Geofield - a Geofield widget that uses the Leaflet widget plugin for adding and removing geometries.
- Leaflet More Maps - adds over 20 attractive map styles such as MapBox, Stamen, Thunderforest and Esri.
- Leaflet MapBox - use your own MapBox map tiles in your map views.
- Leaflet Google Maps - adds the possibility to choose Google Maps layers in leaflet maps.
Openlayers Locator is a feature module that sets up the basic functionality for a map based proximity search. It creates a content type "Location"; a view to list all these locations, a map and the search option; as well as a link to it in the main menu.
This is a screenshot of an example proximity search results.
Installing and enabling the required modules
- Install all required modules listed on the Openlayers Locator project page.
- Enable the Openlayers Proximity feature module either from the modules admin page (admin/modules) or the features admin page (admin/structure/features).
Once the feature is enabled, a new content type and the proximity search view are created and configured for you.
Create geolocated content
- Go to the 'add content' page and choose to create a new Location.
- You will find the usual title and body fields plus an address field set, fill it in and save.
- If the geolocator module was able to geolocate your address it will be shown in a map in the node page.
Geofield Map is a sub module of Geofield and offers a basic mapping implementation for it. It is intended as a simple way to get site builders up and going with the Geofield module.
Enable Geofield Map at /admin/modules
Go to /admin/structure/types, choose the desired content type and click Manage display to use a Geofield Map as output formatter.
Geofield Map is also available as a format in Views. To use this, create a page display in Views and add a field that contains geospatial data. Then choose Geofield Map as format. In the format settings you define which field contains the geospatial data and what the map looks like.
Alternatives to Geofield Map
Geocoder is a Drupal 7 module that will extract (geocode) geographical data from just about anything you throw at it such as addresses, GPX files, Geotags from EXIF data in photos, and KML files.
Geocoder uses the external geocoding services from Google, Yahoo and Yandex.
Don't confuse the Geocode and Geocoder modules. Geocode is only available for Drupal 6.
Install and enable the Geocoder module and its required modules geoPHP and Chaos tool suite in the usual way. Install and enable the optional modules Addressfield and Geofield.
Learn more about installing Drupal modules.
Assign the necessary permissions at /admin/people/permissions#module-geocoder
If you have enabled the modules Addressfield and Geofield you can start using Geocoder in a content type, e.g., an event.Read more