2012-06-16 47 views
1

我正在使用InfoBubble來顯示GMap中的內容。然而zIndex似乎不起作用,因爲具有較低zIndex的InfoBubble仍然會阻塞具有較高zIndex的Marker,任何人都會遇到類似的問題?InfoBubble z-Index和GMap標記z-索引

的GMAP標記:

new google.maps.Marker({ 
    draggable: true, 
    raiseOnDrag: true, 
    icon: currentLocationMarkerImage, 
    shadow: currentLocationMarkerShadow, 
    shape: currentLocationMarkerShape, 
    map: map, 
    animation: google.maps.Animation.DROP, 
    position: getOriginLatLng(), 
    zIndex: 11 
}); 

的InfoBubble:

new InfoBubble({ 
    /*maxWidth: 300,*/ 
    borderRadius  : 4, 
    arrowStyle   : arrowStyle, 
    color    : "#fff", 
    borderColor   : '#1e90ff', 
    backgroundColor  : '#fefefe', 
    disableAutoPan  : disableAutoPan, 
    shadowStyle   : 0, 
    padding    : 5, 
    arrowSize   : 10, 
    borderWidth   : 2, 
    // hideCloseButton : true, 
    arrowPosition  : 50, 
    backgroundClassName : 'phoney', 
    disableAnimation : disableAnimation, 
    zIndex    : 10 
}); 

謝謝。

回答