Skip to content

Commit 48c9aa5

Browse files
committed
Aling components horizontally
1 parent 5ee1310 commit 48c9aa5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/map/core/MapView.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ export const map = new maplibregl.Map({
2424
container: element,
2525
});
2626

27+
map.on('load', () => {
28+
const container = document.querySelector('.maplibregl-ctrl-bottom-right');
29+
if (container) {
30+
container.style.display = 'flex';
31+
container.style.flexDirection = 'row';
32+
container.style.alignItems = 'flex-end';
33+
}
34+
});
35+
2736
let ready = false;
2837
const readyListeners = new Set();
2938

0 commit comments

Comments
 (0)