How to locate leaflet zoom control in a desired position

前端 未结 6 929
鱼传尺愫
鱼传尺愫 2020-12-08 19:11

I want to place the zoom control in middle right of the the map i.e. in the middle of the right most side of the map. I have found solution to put the zoom control in differ

6条回答
  •  感情败类
    2020-12-08 19:35

    This can be done a tad easier, with one line of CSS. Works with responsive design (Bootstrap) and moves additional buttons added with Leaflet.EasyButton too.

    .leaflet-control-container { position: absolute; right: 56px } 
    

提交回复
热议问题