function visualizzamappa(){
geocoder = new google.maps.Geocoder();
var myLatlng = new google.maps.LatLng(41.871132,12.454501);
var myOptions = {
zoom: 11,
//center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
var address = "Località La Foce, S.S. 16 al km 484.5 km 5 da Rocca San Giovanni, sul litorale a Sud-Est di San Vito Chietino, vicino al mare, Rocca San Giovanni, 66020,Chieti";
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
var infowindow = new google.maps.InfoWindow({
content: "Foce
Località La Foce, S.S. 16 al km 484.5 km 5 da Rocca San Giovanni, sul litorale a Sud-Est di San Vito Chietino, vicino al mare
Rocca San Giovanni 66020
Chieti",
maxWidth:400
});
var marker = new google.maps.Marker({
map: map,
title: "Foce",
position: results[0].geometry.location
});
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map,marker);
});
} else {
alert('Geocode was not successful for the following reason: ' + status);
}
});
}