title: Passing the list of input$map_click inside shinyapp
body: <p>I'm trying to collect the latitude and longitude values of a map click inside of a shinnyApp - using leaflet.  I can print the values as text but cannot seem to access the values for use inside the application to be passed for further use. My simple two lines of code is listed below.  </p>
  
  <pre><code>place &lt;- reactive(input$map_click)
  output$Click_text&lt;-renderText(paste0(place()))
  </code></pre>
  
  <p>Using:
  <code>fluidRow(verbatimTextOutput("Click_text"))</code> - I'm able to print the values to a screen.</p>
  
  <p>But when I use:
      <code>p &lt;- place$lat</code>
  I get the following error -  <code>Error in place$lat : object of type 'closure' is not subsettable.</code></p>
  
  <p>It's my first post - I've used stackoverflow for 2 years. I am crediting this other post for helping so far:</p>
  
  <p><a href="https://stackoverflow.com/questions/36311562/passing-user-input-in-shiny-to-a-url-query-string">Passing user input in Shiny to a URL query string</a></p>