react-google-maps-api icon indicating copy to clipboard operation
react-google-maps-api copied to clipboard

OverlayView is not positioned correctly

Open AndriyHromyak opened this issue 2 years ago • 2 comments

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

AndriyHromyak avatar Feb 27 '23 17:02 AndriyHromyak

Replacing OverlayView with OverlayViewF fixed the issue for me. Apparently it is the same component implemented using react hooks,

timbotimbo avatar May 03 '23 14:05 timbotimbo

@timbotimbo you are my hero. This has been driving me INSANE

man-trackunit avatar Nov 30 '23 09:11 man-trackunit