daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (infowindow.isOpened)
  2. {
  3.    doSomething()
  4. }
  5.    
  6. if (infowindow.close)
  7. {
  8.    doAnotherthing();
  9. }
  10.    
  11. function isInfoWindowOpen(infoWindow){
  12.     return (infoWindow.getMap()!=null);
  13. }
  14.  
  15. if (isInfoWindowOpen(infoWindow)){
  16.     // do something if it is open
  17. } else {
  18.     // do something if it is closed
  19. }
  20.    
  21. google.maps.InfoWindow.prototype.opened = false;
  22. infoWindow = new google.maps.InfoWindow({content: '<h1> Olá mundo </h1>'});
  23.  
  24. if(infoWindow.opened){
  25.    // do something
  26.    infoWindow.opened = false;
  27. }
  28. else{
  29.    // do something else
  30.    infoWindow.opened = true;
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top