Geofield Map is an advanced, complete and easy-to-use Geo Mapping solution for Drupal 8+, based on and fully compatible with the Geofield module, that lets you manage the Geofield with an interactive Map both in back-end and in the front-end. It represents the perfect solution to:

>>>> Live Demo <<<<

Technical Functionalities and specifications

The actual module release implements the following components:

Geofield Map widget

An highly customizable Map widget, providing an interactive and very intuitive map on which to perform localization and input of geographic coordinates throughout:

Geofield Map Formatter

An higly customizable Google Map formatter, by which render and expose the Geo contents throughout:

A "Geofield Google Map (static)" formatter is also available, that renders a Google Map, accordingly to the Google Maps Static API (only Points supported, and not Geometries such as Polylines, Polygons, etc.).

Views Integration

A dedicated Geofield Map View style plugin able to render a Views result on a higly customizable Google Map, with Marker and Infowindow specifications and Markers Clustering capabilities.

Advanced Google Map and Markeclustering Features for the front-end maps

Both in Geofield Map Formatter and in the Geofield Map View style it is possible:

Basic Installation and Use

Geofield Map module needs to be installed using Composer to manage Drupal site dependencies, which will also download the required Geofield Module dependency and PHP libraries).

It means simply running the following command from your project root (where the main composer.json file is sited):

$ composer require 'drupal/geofield_map'

Once done, you can setup the following:

Hints for Advanced Use

Geofield Map Dynamic Markers Theming & Legends Specifications

The Geofield Map (since 2.x version) allows the Geofield Map View definition of Custom Markers & Icons Images based on dynamic values of the Map features.

Moreover a custom Geofield Map Legend Block is defined by the module and is able to expose each Map Theming logics in the form of fully configurable and impressive Legends.

Geofield Map introduces the MapThemer Plugin system that allows the definition of MapThemer Plugins able to dinamically differentiate Map Features/Markers based on Contents Types, Taxonomy Terms, Values, etc. Each Plugin Type provides the automatic definition of a related Legend Build, that is able to fill the definition of a Custom GeofieldMapLegend block.

At the moment the following two Geofield Map Themers plugin types have been defined:

As Drupal 8+ Plugin system based, the Geofield MapThemers Plugin and Legend block system is fully extendable and overridable. You, as Drupal 8+ developer, are free to override and extend the existing ones, or create your custom MapThemer based on your specific needs and logics.

New: SVG Image files are now supported for Marker Icons, via the Svg Image module

How to use.

In a Geofield Map View Display, just go into its settings and choose the wanted MapThemer in the new Map Theming Options section/fieldset. It is possible to associate a Drupal Managed File for each MapThemer plugin value and even the Icon Image style the Icon should be rendered on the Map. The Value labels and Icons might have an alias, might be reordered and might be hidden from the correspondent Legend Block.

Once defined and configured the Legend you are free to place it, once or several times, as a normal Drupal 8+ block on the pages, with your logics and contextual rules.

Notes & Warnings