-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] InfoWindow anchor not working #559
Comments
Having this exact issue as well. Did you figure out any work arounds yet? Best I've come up with is a manual pixel offset to make the InfoWindow float higher so it doesn't obscure/cover the marker, but if you drag it or place another marker with an InfoWindow near it, then the popup goes even higher (too high). This feature needs fixing. |
Still have the issue as well. Haven't yet figured out a workaround that works for me. Manual pixel offset break on page reload or hydration when the anchor starts to work. |
Is this only happening while developing/ hot reloading using NextJs? Or does it somehow also translate to production build? |
I'm not using NextJS personally. Seeing this issue both on CRA and Vite |
@mrMetalWood This is happening in dev and production. |
I have the same problem. "next": "14.2.14", My workaround is creating a hidden state and delayed setState 500ms so that it would rerender the component, and the InfoWindow would bounce to the correct position. |
I was able to reproduce the bug and I am working on a fix. |
Description
I have set an anchor on InfoWindow as per the docs...
The InfoWindow is placed directly on top on the Pin (z axis) and completely obscures it. This same code was previously working. Whenevener next.js hot-reloads, it appears to sort itself out and the InfoWindow is shifted up into the correct position.
Steps to Reproduce
Load a page that has a gmap on it.
Environment
"@vis.gl/react-google-maps": "^1.2.0",
"next": "14.2.14",
Logs
No response
The text was updated successfully, but these errors were encountered: