var map = null; var geocoder = null; var gx = null; list = new Array(); function loadPage() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(43.220496, -2.7332359), 15); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); geocoder = new GClientGeocoder(); } } function showAddress(address) { var countrytown = ' Spain Amorebieta'; var Caddress = address + countrytown; if (geocoder) { geocoder.getLatLng( Caddress, function(point) { if (!point) { alert(address + " not found"); } else { map.setCenter(point, 16); var marker = new GMarker(point); map.addOverlay(marker); marker.openInfoWindowHtml(address); } } ); } } function showKML(obj, url){ map.setCenter(new GLatLng(43.220496, -2.7332359), 15); if (obj.checked== true){ gx = new GGeoXml(url); map.addOverlay(gx); mapobject = new Array(); mapobject[0]=url; mapobject[1]=gx; list.push(mapobject);} if (obj.checked== false) { for (i=0;i