我的標記彈出視窗重疊,使其部分可見。我需要移動上面的彈出視窗。


代碼:
<Marker
draggable={draggable}
eventHandlers={eventHandlers}
position={position}
ref={markerRef}
>
<Popup>
<span onClick={toggleDraggable}>
{draggable && <Button>Click Here</Button>}
</span>
</Popup>
</Marker>
我也嘗試訪問彈出組件,但這會破壞彈出視窗。
.leaflet-popup-content-wrapper {
padding: 1px;
text-align: left;
border-radius: 12px;
margin-bottom: 30px;
}

uj5u.com熱心網友回復:
繞過它的黑客:
.leaflet-popup {
padding-bottom: 30px; /* adjust as you see fit */
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/390313.html
上一篇:如何根據父級寬度居中flex子級
