for use
add in template
<link rel="stylesheet" type="text/css" href="<?php echo $config->urls->FieldtypeGMap?>styles/FieldtypeGMap.css" /> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="<?php echo $config->urls->FieldtypeGMap?>scripts/FieldtypeGMap.js"></script>
$out = '<textarea id="Fieldtype_GMap_location" class="GMap_hidden_textarea">'.htmlspecialchars($page->GMap_location).'</textarea>';
$out .= '<div class="GMap_canvas" id="GMap_location"></div>';
$out .= '<script type="text/javascript">';
$out .= 'var GMap_location = new Map("GMap_location");';
$out .= '</script>';
echo($out);
replace GMap_location with your field name
$out = '<textarea id="Fieldtype_your_filed_name" class="GMap_hidden_textarea">'.htmlspecialchars($page->your_filed_name).'</textarea>';
$out .= '<div class="GMap_canvas" id="your_filed_name"></div>';
$out .= '<script type="text/javascript">';
$out .= 'var your_filed_name = new Map("your_filed_name");';
$out .= '</script>';
echo($out);














