Index: in-link/inc/googlemaps.js =================================================================== diff -u -N --- in-link/inc/googlemaps.js (revision 12930) +++ in-link/inc/googlemaps.js (revision 0) @@ -1,29 +0,0 @@ -google.load("maps", "2.x"); - -// Call this function when the page has been loaded -function initialize() { - map = new google.maps.Map2(document.getElementById("map")); - map.setCenter(new google.maps.LatLng(37.4419, -122.1419), 13); - map.addControl(new GSmallMapControl()); - map.addControl(new GMapTypeControl()); -} - -var map = false; -function showaddress(addr,addrInfo) { - if (!map) initialize(); - geocoder = new google.maps.ClientGeocoder(); - geocoder.getLatLng( - addr, - function(point) { - if (!point) { - alert(addr + " not found"); - } else { - map.setCenter(point, 13); - var marker = new GMarker(point); - map.clearOverlays(); - map.addOverlay(marker); - marker.openInfoWindowHtml(addrInfo); - } - } - ); -} \ No newline at end of file