Please, I need a help.
I want to check if my infowindow is opened.
For example:
if (infowindow.isOpened)
{
doSomething()
}
or
if (infowindow.close)
{
doAnotherthing();
}
I dont have any idea, how to do this
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.
This is an undocumented feature, and is therefore subject to change without notice, however the
infoWindow.close()method sets the map on the object tonull(this is whyinfoWindow.open(map, [anchor])requires that you pass in aMap), so you can check this property to tell if it is currently being displayed:Update:
Another potentially useful way to write this is to add an
isOpen()method to theInfoWindowprototype.