google maps infowindow.close() case in separate function
问题 I want to make infowindow-making process in the different function, cause it`s gonna contains much info. I have a global-defined var infowindow = new google.maps.InfoWindow({}); when i m trying to close it in the separate function, infowindow.close() method doesn t works. Can`t get, wat is wrong here? the infowindow object is successfully passed into the function, cause new infowindows creating successfully Here is a full code var locations = [ ['Bondi Beach', -33.890542, 151.274856, 4], [