Hi everyone,
I'm creating an interactive map using leaflet which I want to incorporate into a shiny app. I am pretty much there with it but am stuck on how to add a scale bar to a leaflet map. I can only think it is via addControl() but I have not been able to get it to work. The relevant leaflet js command is L.control.scale().addTo(map);. I'm not sure how to translate this into something which R will use with the addControl() function. Or perhaps I am just barking up the wrong tree?
A scale bar seems a fairly generic feature so presumably someone out there has managed to get it to work? I'll look forward to hearing from you!
Many thanks,
Tom