Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google maps InfoBubble z-Index和GMap标记z-Index_Google Maps_Z Index_Google Maps Markers_Infobubble - Fatal编程技术网

Google maps InfoBubble z-Index和GMap标记z-Index

Google maps InfoBubble z-Index和GMap标记z-Index,google-maps,z-index,google-maps-markers,infobubble,Google Maps,Z Index,Google Maps Markers,Infobubble,我正在使用GMap显示内容。然而,zIndex似乎不起作用,因为具有较低zIndex的InfoBubble仍然阻止具有较高zIndex的标记,有人遇到过类似的问题吗 GMap标记: new google.maps.Marker({ draggable: true, raiseOnDrag: true, icon: currentLocationMarkerImage, shadow: currentLocationMarkerShadow, shape:

我正在使用GMap显示内容。然而,zIndex似乎不起作用,因为具有较低zIndex的InfoBubble仍然阻止具有较高zIndex的标记,有人遇到过类似的问题吗

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
});
信息泡沫:

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
});

谢谢。

信息气泡将始终显示在标记的顶部。见:


infoBubble位于浮动窗格上。标记位于覆盖窗格上。

信息气泡将始终显示在标记的顶部。见:

infoBubble位于浮动窗格上。标记位于覆盖窗格上