0

How can a marker click event be triggered in Leaflet for R?

The converse is Marker mouse click event in R leaflet for shiny where the click event is captured. I want to do the opposite and trigger the click event on a marker. (The event will be fired by the user clicking on a row in a data table).

In javascript it looks like it can be done like this Trigger click on leaflet marker

Is this doable in Leaflet for R or do I have to use javascript?

Vlad
  • 3,058
  • 4
  • 25
  • 53
  • 1
    Hello. What is the click supposed to do ? – Stéphane Laurent Jul 10 '19 at 07:32
  • For example, clicking on a marker will make a popup appear. At the moment I'm using a tedious workaround where clicking on the data table creates a new popup at the same location - which is positioned to make it look as if the leaflet marker was clicked. – Vlad Jul 11 '19 at 23:40
  • 1
    Did you manage to do it ? If so how ? I am really interested in how. I need it not only for a pop up since that is relatively easy, but for a rendering of a plot – user9396820 Aug 26 '21 at 14:11
  • [Here](https://stackoverflow.com/a/70298203/4322318) are a couple of options to answer the question. – Geovany Dec 12 '21 at 00:55

0 Answers0