, 3 , , 3";
//alert(address);
jQuery.ajax({
url:"https://maps.googleapis.com/maps/api/geocode/json?key=AIzaSyAUyoT8Dz6ha2nGZ-dRpnYyqEdPOEdusgg&address="+address+"&sensor=false",
type: "POST",
success:function(res){
//console.log(res);
location_lat = res.results[0].geometry.location.lat;
location_lng = res.results[0].geometry.location.lng;
//alert(location_lat) ;
// Create the map.
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 16,
center: {lat: location_lat, lng: location_lng},
mapTypeId: 'terrain'
});
//alert(center);
// Construct the circle for each value in citymap.
// Note: We scale the area of the circle based on the population.
//for (var city in citymap) {
//alert(Math.sqrt(citymap[city].population) * 100);
// Add the circle for this city to the map.
var cityCircle = new google.maps.Circle({
strokeColor: '#FF0000',
strokeOpacity: 0.8,
strokeWeight: 2,
fillColor: '#FF0000',
fillOpacity: 0.35,
map: map,
center: {lat: location_lat, lng: location_lng},// citymap[city].center,
radius: 100//Math.sqrt(citymap[city].population) * 100
});
//}
}
});
}