function showAddress(address) {
geo.getLatLng(
address,
function (point) {
if (!point) {
alert(address + " not found");
} else {
map.setCenter(point, 13);
var marker = new GMarker(point);
map.addOverlay(marker);
marker.openInfoWindowHtml(address);
var point_s = marker.getPoint();
lat = point_s.lat();
lng = point_s.lng();
document.getElementById("srchres").innerHTML = lat + ', ' + lng;
}
}
);
}
17 cze 2008