Forum Moderators: open
function doAddress(address) {
if (geocoder) {
var finalgeodetails;geocoder.getLatLng(address,
[b]function(point)[/b] {
if (!point) {
alert(address + " not found by chris system");
} else {
var newlatandlong = point.lat() + ',' + point.lng();
return newlatandlong;
}
}
);
}
return finalgeodetails;
}
function doAddress(address) {
if (geocoder)
return geocoder.getLatLng (
address,
function(point) {
if (!point) alert(address + " not found by chris system");
else return point.lat() + ',' + point.lng();
}
);
else alert("geocoder not found.");
}