I am trying to build an app that uses leaflet to plot some data over a map. The data consists in nodes and edges that connect them
I would like to show something like a DT table inside the tooltip of each marker, showing the data of the marker (i.e. name, lat, long, edge_id) in the form of an interactive datatable.
I am not certain about DT tables, but plain ol' HTML table is a legit part of a Leaflet popup.
By the way this is one use case where {leaflet} used directly beats othervise highly recommended {tmap} package. tmap sanitizes HTML and can not be used to build popups like these.
For an example in action consider this code, built on good old NC shapefile: