rendered paste body<script>
Drupal.gmap.addHandler('gmap',function(elem) {
var obj = this;
obj.bind('checkresize',function() {
obj.map.checkResize();
});
});
</script>
$map = array();
$map[zoom] = 15;
$map[width] = '500px';
$map[height] = '400px';
$map[id] = 'macro_map';
$map[control] = 'Small';
$map[maptype] = 'Map';
$map[longitude] = $node->locations[0]['longitude'];
$map[latitude] = $node->locations[0]['latitude'];
$map[markers][0][longitude] = $node->locations[0]['longitude'];
$map[markers][0][latitude] = $node->locations[0]['latitude'];
$map[markers][0][markername] = 'route';
$map[markers][0][offset] = 1;
$tab2 = theme('gmap', array('#settings' => $map));