How do I resize the info window once it’s opened? I have a hyperlink inside the window which generates an AJAX-request; on the callback I would like to resize the info window.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It isn’t possible to animate the resize of the info window, but there is a reset function. The documentation says that you can leave any parameter null, but if you leave the ‘size’ parameter null, you’ll get an error. This means that you have to specify the size of the InfoWindow.
However, since that ruins the original point of dynamically resizing the window, I would strongly recommend simply closing the original info window and creating a new one – which is what the reset function will appear to do anyhow.