Custom Position Non Custom Control Google Maps (v3 API)

后端 未结 4 1492
星月不相逢
星月不相逢 2021-01-22 04:59

I would like to be able to adjust the position of the map type control. I have it set to top right however I need to drop it by about 50 pixels. I read on custom controls you ca

4条回答
  •  -上瘾入骨i
    2021-01-22 05:41

    Seems like you should be able to move this using some CSS (and maybe some JS). I visited http://maps.google.com and it looks like these controls have an ID ('lmc3d' in my case) and are positioned absolutely. Have you tried something like this in your style sheet:

    #lmc3d{
        top: 50px;   /* adjust these two to move */
        left: 50px;
    }
    

提交回复
热议问题