嗨,我创建了一个混搭,用户可以在其中输入位置。使用 IE7 时,几乎所有位置都可以进行地理编码,但不能使用其他浏览器......你认为这里的问题是什么,或者有什么解决方法?我使用 javascript 地理编码,例如:
function addToMap(response) {
var x="Fa, France";
// Retrieve the object
if (x.length > 0 && x != "") {
if (!response || response.Status.code != 200) {
alert("Please enter a valid location.I cannot geocode it!");
}
else
{
place = response.Placemark[0];
// Retrieve the latitude and longitude
point = new GLatLng(place.Point.coordinates[1],
place.Point.coordinates[0]);
// Center the map on this point
map.setCenter(point, 4);}}
...更多代码