var map; var gdir; var geocoder = null; var addressMarker; function initialize() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("mappa")); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(42.966425,10.646675), 15, G_HYBRID_MAP); var marker = new GMarker(new GLatLng(42.966425,10.646675)) map.addOverlay(marker); marker.openInfoWindowHtml("Villaggio Turistico Airone
Lo. Aia di Martino, 14 - 57021 Riotorto (LI)"); gdir = new GDirections(map, document.getElementById("directions")); } } function setDirections(fromAddress) { locale="it"; gdir.load("from: " + fromAddress + " to: 42.966425,10.646675"); }