Search code examples
rshinyr-leaflet

How to set scrollWheelZoom to false in a map using leaflet in Shiny?


I am using Shiny to build an application using the leaflet library.

I create the map at the ui.R using leafletOutput() and render it at server.R using renderLeaflet(). I can add markers, set zooming factor, etc. Everything works like a charm.

The problem is that I cannot find a way to set scrollWheelZoom to false. I really need this.

Any ideas?


Solution

  • As stated by Yihui on the comment above, there is no way to do it. I filled an issue at leaflet to ask this feature: https://github.com/rstudio/leaflet/issues/84

    Tks