I had tried doing this once before, if you are trying to call for the custom fields you could create a new loop before the google js. To my knowledge it will go as follows:
<$php global $lat; ?>
<$php global $longt; ?>
<?php if ( is_single() ) { ?>
<?php $lat = get_post_meta($post->ID, 'Latitude', true); ?>
<?php $longt = get_post_meta($post->ID, 'Longitude', true); ?>
<?php } ?>
<?php echo $lat; ?>
<?php echo $longt; ?>
The first two lines can be skipped.
the third line starts the loop
‘Latitude’ and ‘Longitude’ in the 4 & 5th line is the name of the custom field.
Line 6 closes the loop
The last two lines call for the value in your google js.
Hope this helps,
Cheers!!
Dheer