var geocoder = new google.maps.Geocoder();
var source = document.getElementById('id_customer_address').value
var request = {
address:source
};
geocoder.geocode({'address': source}, function(results, status)
{
if (status == google.maps.GeocoderStatus.OK)
{
var myLatLng = results[0].geometry.location;
var mapOptions = {
center: myLatLng,
zoom:7,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById('dynamic_map'), mapOptions);
}
else
{
alert("Geocode is not successful for the following reason : "+ status);
}
}
);