0
setTimeout("locationplace("+latt+",+"+lonn+")",2000); //line 1
document.write("<tr><td>"+(lc+1) + "</td><td>"+sstime+"</td><td>"+ct+"</td><td>"+minsec+"</td><td><a href='#'>"+loname+"</a></td></tr>"); //line 2
AndReverse地理编码函数是如下:反向地理编码
function locationplace(latt,lonn)
{
var rna;
var llng = new google.maps.LatLng(latt,lonn);
ligeocoder.geocode({'latLng': llng}, function(results, status)
{
if (status == google.maps.GeocoderStatus.OK)
{
if (results[0])
{
loname=results[0].formatted_address;
}
else
{
}
}
else
{
alert("Geocoder failed due to: " + status);
}
});
}
我的问题是,在线1的loname是 “”(空)。我尝试使用setTimeout..but它不工作....我想显示loname ..every时间一号线和2个线执行....
还有我得到错误:地理编码器失败,由于于:OVER_QUERY_LIMIT
请帮我....
重复:http://stackoverflow.com/questions/3529746/over-query-limit-while-using-google-maps – OverZealous
@ ram:我的回答是否有用? – Jiri