Aling components horizontally

This commit is contained in:
Anton Tananaev 2024-09-12 10:49:08 -07:00
parent 5ee1310a8e
commit 48c9aa5765

View File

@ -24,6 +24,15 @@ export const map = new maplibregl.Map({
container: element,
});
map.on('load', () => {
const container = document.querySelector('.maplibregl-ctrl-bottom-right');
if (container) {
container.style.display = 'flex';
container.style.flexDirection = 'row';
container.style.alignItems = 'flex-end';
}
});
let ready = false;
const readyListeners = new Set();