Area select event for R leaflet in shiny
问题 I've played with the mouse click event in leaflet using the following code: mymap=leaflet() selected_site=eventReactive(input$mymap_marker_click,{ event <- input$mymap_map_marker_click return(mydt[Long==event$lng & Lat==event$lat,get("sites")]) }) to display a plot from a data.table after a click on a point of the map. Now, I'd like to select an entire area then display data binding to it. In other terms, I'd like to select not a couple of (Lat,Long) but a series of (Lat1, Long1)....(Latn