Retrieve Coordinates from Leaflet by reactiveValue. Error Subset "Closure" type

38 views
Skip to first unread message

Daniel Knopp

unread,
Aug 24, 2022, 6:36:45 AM8/24/22
to Shiny - Web Framework for R
Dears

I m trying to modulize an app which can retrieve some raster information from Leaflet map.

I m trying to give the leaflet coordinates inputs to another module but I get the error of

Error $: type "Closure" is not subsettable.


For extract the points on the map_server_mod  I use

point_coordinate <- reactive({
        input$map_draw_new_feature$geometry$coordinates
      })

Then in another module, calling map I use

map_input$point_coordinate()[[1]]


Thanks!
Reply all
Reply to author
Forward
0 new messages