This module can generate one of the following as a block when placed on a content type that has an address field:
- a Google static map
- a regular JS Google map that defaults to the static map if Javascript is disabled (with optional KML file upload support)
- a Mapquest static map
You can also just use this module's built-in field formatters if you do not need block-level elements and want your address field to be rendered as a map.
Usage:
- Get an API key from your map provider (note that as of June 2018, Google require no longer allow the use of maps without an API key).
- Go to /admin/config/system/addressfield_staticmap and select the address fields that should be used to populate this block.
- Make the block visible on the content types with those fields.
- To use KML overlay files with the regular Google map, create a file upload field on your content type that only accepts .kml files.
- Go to /admin/config/system/addressfield_staticmap and select the KML file field for the appropriate content type(s) and save.
- Upload your KML file to your node with an address field.
Dependencies:
Note that entity_base_type is a new dependency, introduced with the 7.x-1.6 release.
This project was sponsored in the past by Phase2 Technology. It is currently sponsored by Grindstone Creative.
D6:
Supporting organizations:
Development and Maintenance
Development and Maintenance
Project information
- 499 sites report using this module
- Created by tirdadc on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
7.x-1.7
released 22 August 2018
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Add ability to provide additional parameters (eg, for styling a map).
Development version: 7.x-1.x-dev updated 13 Jun 2019 at 06:13 UTC