其他人对InfoBox有问题吗?
有没有更好的方法来创建信息框并为其分配类?我不能设置班级!
var myOptions = {
content: boxText,
disableAutoPan: false,
boxClass: "CLASS", <----
pixelOffset: new google.maps.Size(-140, 0),
zIndex: null,
boxStyle: {
background: "url('tipbox.gif') no-repeat",
opacity: 0.75,
width: "280px"
},
closeBoxMargin: "10px 2px 2px 2px",
closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif",
infoBoxClearance: new google.maps.Size(1, 1),
isHidden: false,
pane: "floatPane",
enableEventPropagation: false
};