Download & Extend

Simple Google Maps

This module is about the simplest way to get a Google Map, and/or a link to a Google Map, displayed with your content. It provides a field formatter for Drupal 7 text fields. With this formatter, you can enter a single-line address that Google Maps would recognize into a plain text field, such as:
100 Madison Ave, New York, NY
And then on your Manage Display screen (or in Views field setup), you can choose to display the field with an embedded iframe Google Map, a link to a Google Maps map, or both; with or without the original address text.

No Google Maps API, JavaScript downloads, etc. are required. This just uses Google Maps' iframe embedding capability to embed a map at a given address that Google Maps can recognize, or to make a link to a Google Map.

To install and use:
- Upload/unzip to your Drupal 7 sites/all/modules directory (or sites/default/modules or whatever).
- Enable the module.
- Add a plain Text field to your content type. You probably should add some Help text to the field to explain that a one-line address that Google Maps can recognize needs to be entered, and that the output will be formatted with a map (or a link or both, depending on how you are using this field).
- On the Manage Display screen, or when adding this field to Views, choose the provided mapping formatter.
- If desired, click the button to change the field settings.

You can also override the display output of this formatter in your theme, by overriding the simple-gmap-output.tpl.php file in the usual way.

NOTE: If you downloaded a "sandbox" version of this module, and update to the "real" released version of this module, you will need to visit your Manage Display screen (or Views) for fields using this formatter, and update them to use the new provided formatter. The "sandbox" version had 3 formatters and the released version only has one (with more options and a different name).

Downloads

Version Downloads Date Links
7.x-1.0-rc1 tar.gz (9.88 KB) | zip (10.92 KB) 2012-Feb-13 Notes

Project Information


Maintainers for Simple Google Maps

  • jhodgdon - 6 commits
    last: 14 weeks ago, first: 17 weeks ago

Issues for Simple Google Maps

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports