Guest
Public paste!

AlcidesFonseca

By: a guest | Aug 10th, 2007 | Syntax: JavaScript | Size: 0.39 KB | Hits: 382 | Expires: Never
Copy text to clipboard
  1. function showAddress(address) {
  2.       if (geocoder) {
  3.         geocoder.getLocations(address, function (result)
  4.           {
  5.             if (result.Status.code == G_GEO_SUCCESS) {
  6.               var p = result.Placemark[0].Point.coordinates;
  7.               map.setCenter(new GLatLng(p[1],p[0]),7+result.Placemark[0].AddressDetails.Accuracy);
  8.             }
  9.           }
  10.         );
  11.       }
  12.     }