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
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Fields, Location
- Reported installs: 1327 sites currently report using this module. View usage statistics.
- Downloads: 1,148
- Last modified: February 14, 2012