ol-ext icon indicating copy to clipboard operation
ol-ext copied to clipboard

cannot read property of null (reading 'getboundingclientrect') at ol-ext element.offsetrect

Open Bahaa-Fadhil opened this issue 2 years ago • 3 comments

Hi @Viglino

I have issue related to FixedPopup.

The error message I get at fixedPopup is, see error message below:

image

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?

Bahaa-Fadhil avatar Jul 18 '22 08:07 Bahaa-Fadhil

Do you have an online example?

Viglino avatar Jul 24 '22 09:07 Viglino

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.

Bahaa-Fadhil avatar Jul 25 '22 11:07 Bahaa-Fadhil

I've added a test to prevent rendering when the map in not displayed.

Viglino avatar Jul 26 '22 08:07 Viglino