我有一个可变宽度的信息框(http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/docs/examples.html)。如何设置偏移量,使其每次都显示在标记上?
infobox = new InfoBox({
alignBottom: true,
content: document.getElementById("infobox"),
disableAutoPan: false,
maxWidth: "",
pixelOffset: ?????????
zIndex: null,
boxStyle: {
background: "url('http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/examples/tipbox.gif') no-repeat",
opacity: 1,
},
closeBoxMargin: "12px 4px 2px 2px",
closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif",
infoBoxClearance: new google.maps.Size(1, 1)
});