react-google-maps-api
react-google-maps-api copied to clipboard
OverlayView is not positioned correctly
Your Environment
os: mac
node --version - 18.4.0
react version - 18.2.0
webpack version - 5
How does it behave?
When implementing OverlayView and provided all needed props, it is not calling "getPixelPositionOffset" on first render only if you move map a bit it is being called
How should it behave correctly?
"getPixelPositionOffset" - should be called on first render to position OverlayView correctly
Replacing OverlayView with OverlayViewF fixed the issue for me.
Apparently it is the same component implemented using react hooks,
@timbotimbo you are my hero. This has been driving me INSANE