Drupal7 Location & Gmap in Views Example

Key concepts covered in this Drupal video tutorial:
We will be using Location and the gmap modules for views and embed it in our template and pass views a Contextual filter.

Snippets:

<?php
/*
...macro
[gmap |zoom=15 |width=400px |height=300px |control=Small |type=Map]
*/
$viewMname = '';
$dispalytype = 'default';
//Optional arguments (Contextual filters) you pass to the view ()
$my_arg = $node->nid;
print
views_embed_view($viewMname, $dispalytype, $my_arg);
?>

Tutorial Section: