ol-ext
ol-ext copied to clipboard
cannot read property of null (reading 'getboundingclientrect') at ol-ext element.offsetrect
Hi @Viglino
I have issue related to FixedPopup.
The error message I get at fixedPopup is, see error message below:
This is a bug when the map re-rendered on emptied, and it re due to the fact that there is a bug with fixed popup when the map is to be rendered or when the map is to switch between sound and dark theme when fixed popup is open.
Do you have any suggestion/ solution for this or way you can workaround this issue?
Do you have an online example?
No, but the error appears when a Fixed Popup tries to render in an empty map. It tries to set the popup position when the map is re-rendered.
I've added a test to prevent rendering when the map in not displayed.