Article

Google map display, view or block using address or location from Taxonomy Terms

Use Taxonomy Term Google Maps module to get a Google Map from fields using Taxonomy Terms. It simply provides an option to select the terms defined under each vocabulary. This just uses Google APIs. The APIs return the geometry.location of term title and marking its position on Google map

Scenario / Useful if you have:

  • Content Type with a location or address field
  • Location field using terms from a taxonomy
  • Terms are custom listing from a standard country listing, with added hierarchical terms for targeted cities down to states, municipalities, etc. Manage display uses simple hierarchical select (SHS module)

Some options:

Simple Google Maps

https://www.drupal.org/project/simple_gmap

While this seems very workable and easy to use, this is not workable as it seems to work only for the text field and not our location field stored as taxonomy terms.

Taxonomy Term Google Maps

This module is very useful if you have to connect Google maps to the existing terms. There is no need to edit terms. Just select the terms listed under each vocabulary from Taxonomy Term Google Maps module configuration page.

https://www.drupal.org/project/term_gmap

Perfect! As this allows making use of taxonomy terms selected in the field of your Content Type.

How to use Taxonomy Term Google Maps

  1. Install and enable module
  2. Go Configuration, Web Services, Taxonomy Term Google Maps
  3. Google Map Settings - to set width and height of map view and option to open or view map link to larger map
  4. Select which term to use with the module, select parent or depth of the term
  5. Now go to block administration page and assign "Term Google map" to the region where you want to display the map. If for some reasons, Google Map block is not displaying, check whether your theme is customized and may need to include the block region in your template (TPL) file
 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
To prevent automated spam submissions leave this field empty.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
1 + 9 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.