mapview
mapview copied to clipboard
sync with flexdashboard
Not sure if this is a mapview or a flexdashboard issue (probably the latter) but sync()
doesn't seem to work within a flexdashboad. Minimal reproducible example here.
@scottyaz I think it is related to https://github.com/r-spatial/mapview/issues/35 In short, sync doesn't create an htmlwidget, it just arranges multiple widgets on one page. I'm planning to investigate if manipulateWidget could be used to create synced maps. Maybe you could try to go down that road in your dashboard?
I had this exact same issue today! Not sure if the manipulateWidget solution has been written down somewhere? But this example worked for leaflet map sync in flexdashboard.