title: why does this code not work with reactive function?
body: <p>I would like this code to refresh the values of the inputs to be refreshed whenever I move the map.</p>
  
  <p>Can anybody tell me why this code does not work? When I replace the "reactive" value in the server side by an "observe" function it does what I want.</p>
  
  <p><code>ui.R</code></p>
  
  <pre><code>library(shiny)
  library(leaflet)
  
  shinyUI(navbarPage(
      title="HeatXPlorers", id="nav",
      tabPanel(title="Interactive map",
          div(class="outer",
              leafletOutput(outputId = "map", width="100%", height="100%")
          )
      ),
      tabPanel(title="Producers",
          fluidRow(column(2,
              numericInput(inputId= "minLon_prod",
                  label = "Min Longitude", value=2.5)
          ))
      )
  ))
  </code></pre>
  
  <p><code>server.r</code></p>
  
  <pre><code>library(shiny)
  library(leaflet)
  library(dplyr)
  
  shinyServer(function(input, output, session) {
  
      # Create the map
      output$map &lt;- renderLeaflet({
          #input$map_bounds and input$map_zoom are created when the leaflet is     created
  
          leaflet() %&gt;%
              addTiles(
                  urlTemplate = "//{s}.tiles.mapbox.com/v3/jcheng.map-    5ebohr46/{z}/{x}/{y}.png",
                  attribution = 'Maps by &lt;a href="http://www.mapbox.com/"&gt;Mapbox&lt;/a&gt;') %&gt;%
              setView(lng = 2.49, lat = 47, zoom = 6)
      })
  
      ################ END OF SINGLE TIME EXECUTION
      ## Interactive Map - for map ###########################################
  
      prodInBounds &lt;- reactive({
          bounds &lt;- input$map_bounds
          updateNumericInput(session, inputId="minLon_prod", value = bounds$west)
      })
  })
  </code></pre>