Adding a Google Map using theming


show more Adding a Google Map using theming provides you with in-depth training on Developer. Taught by Jon Peck as part of the Drupal 7 Custom Module Development show less
please wait ...

Adding a Google Map using theming

I imported wind farms from the Open Energy Information Initiative and I can now view each node of content type wind farm. I hid the latitude and longitude because there was no need to show it to the user in this context. However, this view is uninteresting. Having a map with a marker indicating where the wind farm is has a positive impact on the user. To do this, I'm going to inject an element into the full view of the node and make a custom function for displaying the element. By providing this functionality within the custom module, I am allowing themers to override or customize the base functionality I provided.

I will not be theming or designing the look and feel of the entire node view. That's out of the scope of this course, and we'll be better explored in depth on its own. I'm going to add a map using the Google Maps JavaScript API Version 3 which allows developers to embed Google Maps into web pages. It's fast, flexible and free for websites that ar...

Adding a Google Map using theming
Video duration: 12m 49s 2h 56m Advanced

Viewers:

Adding a Google Map using theming provides you with in-depth training on Developer. Taught by Jon Peck as part of the Drupal 7 Custom Module Development

Subjects:
Developer Web
Software:
Drupal
Author:
please wait ...