Disable 'close' button on Googlemap Infowindow

I’d like the infowindow to display on mouse hover and close automatically when the hover ends. I’ve got this to work but the close-button is still visible on the infowindow and it’s distracting.

I’ve seen posts on stackoverflow that I should be able to set the property closeBoxURL: “” but this doesn’t work in anvil. Is there a workaround?

Hi there,

It looks like this isn’t supported any more, and it has vanished from the official docs, but adding the following CSS to your theme.css file under Assets worked for me:

.gm-style-iw button[title="Close"] {
  display: none !important;
}

Hope that helps!

2 Likes