-
Notifications
You must be signed in to change notification settings - Fork 130
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
[Feat] Custom Info Window component #83
Comments
I really like the Idea here. But I don't think this is a feature I'd want to add for the 1.0 version. I think you can already get pretty far using just the With that said, I would love to see a good abstraction for a custom OverlayView, maybe a component ( If you want to start exploring this for yourself, examples of how the portals can be used can be found in the We've had discussions about this in our company recently and came to the conclusion that a good infowindow implementation would be too complex for this library and more deserving of a library of its own. To explain this a little further: The behaviour of a good infowindow is a lot more complex than just placing html on a map
|
@usefulthink I investigated a little further and noticed that the AdvancedMarker is adding z-index to the markers in an increasing fashion which I believe is causing my Popup div to overlap some and not the others. I could definitely be wrong in my investigation; if so, any help would be appreciated on the same. |
Any news on this? |
While you wait for this news, can you check this one? #425 (comment) I thought you might've worked with this issue |
Any update here? Much needed component as other wrapper libraries offer this. |
Target Use Case
The current infoWindow class doesn't allow for granular control over styling or even the close button. Having an infoWindow that can render a React.ReactNode (or even a static HTML element but the dev would have full control of it as opposed to what you get from infoWindow) would allow for making maps that look and feel much cleaner with the rest of the web app.
Proposal
I have implemented a Custom Info Window by extending the google.maps.Overlay class but I was only able to make it render static HTML elements, not React components. Maybe the use of React portals to render React components would work? I haven't tried it yet myself.
Or maybe this is the completely wrong approach and there's a better way of doing it.
The text was updated successfully, but these errors were encountered: