mapping

Geocluster

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 si -y && drush en geocluster_demo admin_menu -y && drush dis toolbar -y && drush en geocluster_demo_content -y

With solr:
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
Read more

Geolocation

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.

Users of Address field can use Geolocation field to geocode their address using the Geocoder helper module.

Other helper modules:

Leaflet

The Drupal 7 Leaflet module provides integration with Leaflet, the modern open-source JavaScript library for mobile-friendly interactive maps.

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.
Read more

Proximity search with Openlayers Locator

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.

Example proximity list

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.

Example use

Create geolocated content

  1. Go to the 'add content' page and choose to create a new Location.
  2. You will find the usual title and body fields plus an address field set, fill it in and save.
  3. If the geolocator module was able to geolocate your address it will be shown in a map in the node page.
Read more

Geofield Map - Basic mapping for Geofield

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.

The module itself uses the Google Maps v3 Javascript API. It provides a basic field formatter and Views module integration, both of which have basic configuration settings and allows to display Geofield data on Google Maps street, satellite, hybrid and terrain tiles.

Enable

Enable Geofield Map at /admin/modules

Configure

Go to /admin/structure/types, choose the desired content type and click Manage display to use a Geofield Map as output formatter.

Views

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

If you need more than basic mapping needs, please use the OpenLayers module and library or the module Leaflet which is under development.

Geocoder

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.

A convenient way to allow users to enter an address and have it automatically geocoded is to use it in combination with the Addressfield and Geofield modules.

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

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.

Configure

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
Subscribe with RSS Syndicate content
nobody click here