https://github.com/rstudio/leaflet/issues/590 (see WUReview for implemtation)
rstudio/leaflet#590
(see WUReview for implemtation)