2011-06-10 37 views
1

试图调试此Google地图错误。消息:无效的参数。 Google地图

适用于除IE以外的所有测试过的浏览器。有时候标记会显示,有时候他们不会。

http://www.ecompanies.nl/pilot/warenhuis/breda.html

页面错误细节 消息:无效的参数。 行:27 字符:56 代码:0 URI:http://maps.gstatic.com/intl/nl_nl/mapfiles/api-3/5/6a/main.js

+0

您是否仍有问题或者已在此站点修复此问题?什么版本的IE? – Trott 2011-06-11 18:43:46

+0

你解决这个问题吗?我有同样的问题。 – user677900 2011-06-12 11:19:10

回答

1

我有这个问题,对我来说,它竟然是对的document.ready一个jQuery AJAX调用冲突()。值得注意的细节:

  • 物包括上面
  • 被包括jquery的1.6.4,在noConflict()模式
  • ref'd此gstatic文件包括jquery的UI 1.8.14
  • 正在执行一个Ajax打电话来填充一个div(一车小部件,有多少项目,多少等等),上的document.ready()

解决,我结束了这样的事情:

// wrap ajax call in a function, then figure out if we execute it now, or delay. 
var f = function(){ 
    $.getJSON('/ajax_handler/', function(data){/* do stuff */}); 
} 
// check if google code is present (not sure how robust this is) 
if(window['google']){ // We've got some Google, delay ajax call by 5s. 
    setTimeout(f, 5000); // this was the lowest i could safely go, unfortunately. 
} else { // No Google, do the ajax call immediately 
    f(); 
} 
相关问题