Google Maps zoom control is messed up

前端 未结 9 1151
旧时难觅i
旧时难觅i 2020-12-07 23:46

I use the Google Maps API (v.3) to show a map with a couple of markers. I recently noticed that the control used to zoom the map is messed up (it wasn\'t always like this).

9条回答
  •  臣服心动
    2020-12-08 00:22

    If you're using Bootstrap, just give it "google-maps" class. This worked for me.

    As an alternative you might reset everything for the google map div as a kind of last-resort solution:

    HTML:

    CSS:

    .mappins-map img { 
        max-width: none !important; 
        height: auto !important; 
        background: none !important;
        border: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    

提交回复
热议问题