【发布时间】:2009-11-02 00:38:06
【问题描述】:
您好,我创建了一个混搭,用户可以在其中输入位置。使用 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);}}
...更多代码
【问题讨论】:
-
您是否尝试过在 Firefox 中使用 FireBug 来找出问题所在?尝试单步执行。
-
我试过了,但没有错误.....一切都很好。
-
您在输入的示例中缺少一些代码。 GClientGeocoder 在哪里?你在哪里打电话?我建议您发布“更多代码”或指向您的测试页面的链接?
标签: google-maps many-to-many mashup