legend labels not displaying inline when using labels and colors in leaflet map on shiny

我的梦境 提交于 2019-11-30 20:32:34

I had the same problem. In my case, adjusting CSS of the legend solved the problem:

ui <- bootstrapPage( 
  tags$style(type="text/css", "div.info.legend.leaflet-control br {clear: both;}"),
...
)

One of the reason it may happen is when the web-page is zoomed in i.e. the zoom level is more than 100%. Make sure you are not zoomed in. Press Control + 0 from your keyboard to reset zoom to 100%. Also, try using another web-browser if problem persists.

I had the same silly problem since my browser was zoomed in (>100%).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!