How to configure gmap in template file I override node display for content type Match Fixtures by creating node--match-fixtures.tpl.php file and put code below:

&lt;?php
$location = $content['field_stadium'][0]['#locations'];
$stadium_map = array('id' =&gt; 'stadium_map',
             'latitude' =&gt; $location['latitude'],
             'longitude'=&gt; $location['longitude'],
             'zoom'     =&gt; 13,
             'width'    =&gt; '100%',
             'height'   =&gt; '400px',
             'type'     =&gt; 'Satellite',
);

echo theme('gmap', array('#settings' =&gt; $stadium_map)) 
?&gt;


But it show wrong map and also not 100% width. I use gmap and location module. What is the correct way?
If its showing the wrong map, you might be displaying the wrong view mode. Make sure you have set the gmap display for view mode full.