请查看这个小提琴,http://jsfiddle.net/HoffZ/Zu55b/
为什么它会导致错误“递归过多” drawMan.setDrawingMode(null)
drawMan.setDrawingMode(google.maps.drawing.OverlayType.POLYGON);
google.maps.event.addListener(drawMan, 'overlaycomplete', function (event) {
// When draw mode is set to null you can edit the polygon you just drawed
drawMan.setDrawingMode(null);
});
Run Code Online (Sandbox Code Playgroud)
这不是我的小提琴,但我的代码中有这个确切的问题