I bought , but I can get Fetch coordinates when I wite the code in the custom field ( coordenadas) nothing happen and the custom field don save the text code with this script .
[size=10pt]
Why dont save the system the code?[/size]
<script src="http://maps.google.com/maps?file=api&v=1&key=ABQIAAAA8DDCT3YTCsc_a8JlQF0SPhT8TSV_t77jnP3ga3wEN_3-KDT95hTdvil_z_Kgo2LKbVbWjpJF1yX6LQ" type="text/javascript"></script>
<div id="map" style="width: 400px; height: 300px"></div>
<script type="text/javascript">
//<![CDATA[
var start_latitude = "52.4777619318499";
var start_longitude = "-1.89788818359375";
var zoomlevel_add = 11;
var zoomlevel_edit = 3;
var map = new GMap(document.getElementById("map"));
map.addControl(new GSmallMapControl());
var latitude = document.getElementById('field_latitude').value;
if (latitude == "")
latitude = start_latitude;
var longitude = document.getElementById('field_longitude').value;
if (longitude == "")
longitude = start_longitude;
if (latitude == start_latitude)
zoomlevel = zoomlevel_add;
else
zoomlevel = zoomlevel_edit;
// center and zoom to the lat/long in the form
map.centerAndZoom(new GPoint(longitude,latitude), zoomlevel);
GEvent.addListener(map, 'click',
function(overlay, point) {
if (point) {
document.getElementById('field_latitude').value = point.y;
document.getElementById('field_longitude').value = point.x;
}
}
);
//]]>
</script>