może to pomoże
http://web4you.com.pl/geofinder.phptaka funkcja:
Kod
function showAddress(address) {
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " - Nie znaleziono adresu");
} else {
map.setCenter(point, 16);
map.clearOverlays();
var marker = new GMarker(point);
$("#pos_y").val(point.x);
$("#pos_x").val(point.y);
map.addOverlay(marker);
}
}
);
}
}
korzystam z jQuery
dlatego jest właśnie
Kod
$("#pos_y").val(point.x);
$("#pos_x").val(point.y);