Search code examples
rshinyleafletmarker

Is there any function to separete the marker click on shiny leflet


I have plotted some marker point according to my dataset[lang, lat,asset_id]. The objective is to, when clicking on the marker points, input$layput_marker_click should return the corresponding asset_id from the data set. But the problem is when plotted, the marker points are too close to each other that I am not able to separate them for click even after reaching the highest zoom level.

So, is there any way to click on the closely located object precisely and get the corresponding value?


Solution

  • try this link Multiple markers on same coordinate, looks like you might want to incorporate the jitter() function on your points