Open alexkobylansky opened 5 months ago
I have the same issue while using it with cluster. It will be nice to see implementaion guide for markers + infowindows + cluster; because i have issue with passing ref from AdvancedMarker to InfoWindow
I wrote some dirty client-side code to deal with this issue:
const handleMarkerClick = useCallback((location) => {
setActiveMarker(location);
setTimeout(() => {
const infoWindowElements = document.querySelectorAll('.gm-style-iw, .gm-style-iw-c');
infoWindowElements.forEach(element => {
const children = Array.from(element.children);
if (children.length === 2 && (!children[0].children.length || !children[1].children.length)) {
element.parentElement.style.display = 'none';
}
});
}, 50);
}, []);
I'm having the same issue. @ggu I'm curious about why did you choose to hide the parent element instead of removing it?
I'm having the same issue.
@ggu I'm curious about why did you choose to hide the parent element instead of removing it?
I can't remember, but should be fine to remove.
Strange behavior of the information window. When I click on the marker, a small empty window appears, which should not be.