0

我正在使用 Ext Js 创建地图标记,点击时会显示 infoBubble。当我尝试添加此代码时,出现以下错误: Uncaught ReferenceError: infoBubble is not defined

infoBubble = new InfoBubble({
                    content: '<div class="example">Some label</div>',
                    shadowStyle: 1,
                    padding: 10,
                    borderRadius: 5,
                    minWidth: 200,
                    borderWidth:1,
                    disableAutoPan: true,
                    hideCloseButton: false,         
                    backgroundClassName: 'example',

                          });

可能是什么问题呢 ?任何帮助将不胜感激,谢谢

4

1 回答 1

0

尝试使用 google.maps.InfoBubble 而不是 InfoBubble,我还在最后一个必须删除的属性之后看到一个“,”

于 2014-01-15T10:48:36.847 回答