To display the InfoWindow content at a size of 840px x 660px, I need to adjust the MaxWidth property when creating the google.maps.InfoWindow object.
(For example: new google.maps.InfoWindow({ content: some_text, maxWidth: 840});)
However, despite setting the maxWidth property to 840, the window only appears as 707px wide. This is because there are nested div tags with restrictions on width and height between my content's #content
div and the .gm-style-iw
div.
I have tried modifying the classes for .gm-style-iw
and #content
, but the issue persists due to these intermediary div tags. By removing the CSS styling from the problematic div tag and its sub-tags through Chrome Inspect Element, the window displays correctly. However, I am unable to set the width and height properties via CSS or JavaScript.
If anyone has a solution or workaround for this problem, I would greatly appreciate your assistance!