Goomap styles example
Goomap field formatter settings
Goomap views style settings

This project is not covered by Drupal’s security advisory policy.

Overview

An alternate Google maps V3 module for geofield.
Not happy with the other maps offerings, I created my own.
It aims to be very simple and easily altered to fit other needs by providing hooks and js events.

This module is for people who are a bit more confident with Javascript (or at least JSON) and want a little more control than other map modules allow for.
This module does not present you with many form controls for map settings, it provides a simple textarea for JSON input (for MapOptions and MarkerOptions objects). This allows for a very large amount of customization by just using JSON.
As an example, you can easily set the markers to be circles by settings the "icon" in the markerOptions JSON. Or you could even change the style of the whole map by sending an array to the styles property of the mapOptions object (copying and pasting styles array data from a site such as https://snazzymaps.com/)
You can pretty much set anything on the mapOptions object and markerOptions object

This module provides (via sub modules):
A views style
A field formatter for geofields.

Goomap js objects are at:
Drupal.settings.goomap

API Key
Google maps has now started to display a warning in the browser console when no api key is included in call to the maps js. But it is just a warning and maps should still work.
This module looks for a variable called 'google_maps_api_key'.
I did not include a page to set this varible but you can add it to your settings.php as detailed HERE.
If you need it, get an api key HERE
eg.
put this into your settings.php file replacing the XXX with your api key

$conf['google_maps_api_key'] = 'XXX';

NOTE

  • This module only works with geofield fields
  • Map may output unexpected results when both ajax and caching is enabled on a view because pre_render is not called before the ajax results are returned.

Similar modules

Project information

Releases