Javascript 未捕获范围错误:超出google map中的最大调用堆栈大小

Javascript 未捕获范围错误:超出google map中的最大调用堆栈大小,javascript,Javascript,我正在使用GoogleMapAPI,下面显示的代码在执行时抛出一个错误。地图似乎突然消失了: var map = null; var geocoder = null; function initialize() { if (GBrowserIsCompatible()) { map = new GMap2(document.getElementById("map_canvas")); map.setCenter(new GLatLng(37.4419, -122.1419)

我正在使用GoogleMapAPI,下面显示的代码在执行时抛出一个错误。地图似乎突然消失了:

var map = null;
var geocoder = null;

function initialize() {
  if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("map_canvas"));
    map.setCenter(new GLatLng(37.4419, -122.1419), 1);
    map.setUIToDefault();
    geocoder = new GClientGeocoder();
  }
}

function showAddress(address) {   
  // var address = {zipcode} or {city and state};
  if (geocoder) {
    geocoder.getLatLng(
      address,
      function(point) {
        if (!point) {
          alert(address + " not found");
        } else {
          map.setCenter(point, 15);
          var marker = new GMarker(point, {draggable: true});
          map.addOverlay(marker);
          GEvent.addListener(marker, "dragend", function() {
            marker.openInfoWindowHtml(marker.getLatLng().toUrlValue(6));
          });
          GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml(marker.getLatLng().toUrlValue(6));
          });
          GEvent.trigger(marker, "click");
        }
      }
    );
  }
}
如果您想运行一些测试(来自免费帐户),这里是我的API密钥:



我认为错误发生在函数的初始化过程中,我不确定,我需要一些帮助。我做错了什么?

请帮忙。错误是什么?错误在哪一行抛出?@maowtm似乎是从api js抛出的,而不是从发布的jsyes抛出的。它来自api中的common.js。不同错误:Google Maps API错误:ApinoActivatedMapError
<script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=AIzaSyA6zCY_71F8OzaWmBZcWvLH9xbarUGrvJs'></script>