Zoom bar disfigured in Google-Maps-for-Rails (gmaps4rails)

前端 未结 3 998
北海茫月
北海茫月 2020-12-30 03:50

For some reason my zoom bar is all pixelated and I\'m not sure why. Any ideas? I used the basic setup:

Controller: @json = User.all.to_gmaps4rails
View: <         


        
3条回答
  •  清歌不尽
    2020-12-30 04:17

    With the gmaps4rails 1.5.6, use map instead of mapCanvas, i.e.,

    #map label { width: auto; display:inline; }
    #map img { max-width: none; }
    

    Reference:

    Github: twitter/bootstrap issue list - Bootstrap distorts some Google Maps Controls and Overlays - commented by diogocsc
    https://github.com/twitter/bootstrap/issues/1552#issuecomment-11153057

提交回复
热议问题