-
Notifications
You must be signed in to change notification settings - Fork 170
Open
Description
Target Use Case
I'm trying to make a "full height" MapControl.

Proposal
Ideally I would be able to pass in a custom style to the component, setting {bottom: "0px"}
.
I managed with a workaround that seems very fragile:
const map = useMap();
useEffect(() => {
const control = map?.controls[position].getAt(0);
if (control?.style)
control.style.bottom = "0px";
}, [map, position]);
which works because it's the only component I will have in that position, but any other position I'm screwed 😅
Metadata
Metadata
Assignees
Labels
No labels