Reputation: 2202
My website use google maps and display popup (InfoWindow) when clicking on markers. I don't know why and since when, but actually the popup background is transparent.
Can anyone help me understand?
UPDATE after good answer of Dr.Molle
Wrong code :
var infoWindow = new google.maps.InfoWindow({maxWidth: '500px'}), mapsMarker, i;
Good code :
var infoWindow = new google.maps.InfoWindow({maxWidth: '500'}), mapsMarker, i;
Upvotes: 2
Views: 3295
Reputation: 117354
The source of the issue seems to be the maxWidth
- setting of the InfoWindow
. The API expects a number, but you provide a string 500px
. Set the maxWidth
to 500
Upvotes: 3