Skip to content Skip to sidebar Skip to footer

Infowindow Appears Minimum Size No Matter What

There are several posts relating to this topic here but I've applied what seemed relevant on everything I read: CSS .infoWindow { width: 90px; height: 90px; } Create InfoW

Solution 1:

try this solution putting the content inside a variable.

var content='<div class="infoWindow">Test</div>';

var infowindow = new google.maps.InfoWindow({
    content:content,
    maxWidth: 100
});

in the past I had similar problem and this worked.

update

I have removed some options from Infowindow according to this documentation.

The InfoWindowOptions object literal contains the following fields: 1)content 2)position 3)maxWidth

update 2

set min-height, min-width css property to your .infoWindow class

update 3

see this stack question for your new problem

Post a Comment for "Infowindow Appears Minimum Size No Matter What"