Google Maps zoom control is messed up

前端 未结 9 1135
旧时难觅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:34

    #myMap_canvas img {
        max-width: none;
    }
    

    fixed it for me, but I also wanted to point out the comment on the question by @Ben, "This issue doesn't happen with Bootstrap if you use the is map_canvas as the map div id". He's right. I'm not using Bootstrap, but the problem started happening after I changed the div id.

    Setting it back to map_canvas fixed it without the max-width change.

提交回复
热议问题