Google Maps infowindow close button is hidden

前端 未结 3 2037
我在风中等你
我在风中等你 2021-02-07 05:34

I used Google Maps in my website with multiple markers and multiple infowindows. Somehow the the close buttons (the little x) stays hidden inside the infowindow, but works if cl

相关标签:
3条回答
  • 2021-02-07 05:57

    fixed it, apparently bootstrap.css was conflicting with the images and had to use these few extra lines of css

    <style type="text/css">
    /** FIX for Bootstrap and Google Maps Info window styes problem **/
    img[src*="gstatic.com/"], img[src*="googleapis.com/"] {
    max-width: none;
    }
    </style>
    

    anyone facing the same problem may solve your issue using this.

    0 讨论(0)
  • 2021-02-07 05:58

    You can try this too:

    max-width: none !important;
    

    this will help you with any other rule

    0 讨论(0)
  • 2021-02-07 06:05

    Depending of your custom css you may have also to add max-height: none.

    img[src*="gstatic.com/"], img[src*="googleapis.com/"] {
        max-width: none !important;
        max-height: none !important;
    }
    
    0 讨论(0)
提交回复
热议问题