Javascript 是否创建包含多个选项卡的信息框?

Javascript 是否创建包含多个选项卡的信息框?,javascript,google-maps,google-maps-api-3,infobox,Javascript,Google Maps,Google Maps Api 3,Infobox,我用谷歌地图v3显示标记信息。我想在每个标记中显示多个选项卡,但还没有找到任何关于如何实现这一点的好例子。我的标记和信息框代码如下所示: //create a new marker for this coordinate var marker = new google.maps.Marker({ title:title, content:html, map:map, draggabl

我用谷歌地图v3显示标记信息。我想在每个标记中显示多个选项卡,但还没有找到任何关于如何实现这一点的好例子。我的标记和信息框代码如下所示:

 //create a new marker for this coordinate
        var marker = new google.maps.Marker({
            title:title,
            content:html,
            map:map,
            draggable:false,
            position:pathCoordinates[i],
            icon: iconImg
        });

        //attach a 'click' listener to the marker and assign it a new InfoBox with related data
        google.maps.event.addListener(marker, 'click', function() {
            var infobox = new InfoBox({
                content: this.content,
                maxWidth: 150,
                pixelOffset: new google.maps.Size(-140, 0),
                zIndex: null,
                boxStyle: {
                    width: "280px"
                },
                closeBoxMargin: "8px 10px 2px 2px",
                infoBoxClearance: new google.maps.Size(1, 1)
            });
            infobox.open(map,this);
        });

你可能想看看图书馆。有关示例,请参见