How to make clusterization map + infoWindows for markers ? #218
Replies: 6 comments 5 replies
-
I tried implementing this as well but to no avail. The map freezes for a few seconds before the info window pops up. If anybody has a working example it'd be greatly appreciated. I tried working with this example that doesn't have info windows: Code SandBox Marker Clustering |
Beta Was this translation helpful? Give feedback.
-
I have a solution for adding both clustering and infowindows but it's quite awful and I still have a bug: when clicking on an Advanced Marker, two InfoWindows open up. One it's the correct one, another is an empty one that never goes away, it's just hidden when you click its closing button. Online some others had the same issue with other libraries as well. Their solutions didn't work for me: some removed the React.StrictMode wrapper in index.js and some others switched to using InfoWindowF instead of InfoWindow. Anyway my solution was to have a state with an array that will contain the id of the markers that should have a visible infowindow.
If anyone can help me with the removal of the second InfoWindow, it would be much appreciated. |
Beta Was this translation helpful? Give feedback.
-
I can confirm that the correction contained in the Issue #109 has not been included in the 0.5.0 version but I included it in my code and indeed it works. |
Beta Was this translation helpful? Give feedback.
-
Just experienced the same issue, and I have |
Beta Was this translation helpful? Give feedback.
-
I used the Advanced Markers and NO info window and it just worked. Thank you @anthfgreco for the link. Why are you using an info window when advanced markers can already display HTML?
In NeighborhoodMapInfoWindow I control the visibility of the info window, the effects, etc.
|
Beta Was this translation helpful? Give feedback.
-
Since this has been the number one topic here since release, I have now updated our marker-clustering example to include dynamically changing data and an infowindow (sources are here). |
Beta Was this translation helpful? Give feedback.
-
Target Use Case
How to make clusterization map + infoWindows for markers ?
Proposal
Beta Was this translation helpful? Give feedback.
All reactions