I recently integrated a Google map on my website and added some custom tooltips using custom overlays. You can check it out here:
However, I've noticed that sometimes the map seems to freeze - I can't drag it or interact with any of the buttons.
The strange thing is that when I use setTimeout() to wait for about 5 seconds, everything works fine. Without setting a timeout, it's unpredictable whether the map will function properly or not.
I've tried adding the custom overlays after "bounds_changed" and "tilesloaded" events, but it seems like there's another event that occurs even later affecting the functionality of the map.
Unfortunately, I haven't been able to pinpoint what this event is and how to detect it. Do you have any suggestions?