Dear All,
Currently I have text box where use can key in any address
and the geocode will get me the exact lat long. The problem now the
box is outside the map. How can I have the box say at left top of my
map itself. Below is my current javascript codes.
function showAddress() {
var inputAddress = document.form2.address.value;
if (geocoder) {
geocoder.getLatLng(
inputAddress,
function(point) {
if (!point) {
alert(inputAddress + " not found");
} else {
var pointString = point.toString();
//alert("pointString : "+pointString);
var arrayPoint1Split = pointString.split("(");
var
arrayPoint2Split=arrayPoint1Split[1].split(")");
var
arrayPoint3Split=arrayPoint2Split[0].split(",");
//alert("Point"+arrayPoint3Split[1]);
map.setCenter(new GLatLng(arrayPoint3Split[0],
arrayPoint3Split[1]),15);
//
}
}
);
}
}
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.