Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Leaflet output to the page itself #10

Open
GreatEmerald opened this issue Mar 20, 2019 · 0 comments
Open

Add Leaflet output to the page itself #10

GreatEmerald opened this issue Mar 20, 2019 · 0 comments

Comments

@GreatEmerald
Copy link
Member

Looks like regular rmarkdown, when generating the HTML file, includes the entirety of htmlwidgets and Leaflet JavaScript libraries, and the output file is about 1 MiB in size. knitrBootstrap on the other hand does not, the output is ~25 KiB. The framework for the map is generated, but there are no libraries to actually act upon the HTML objects placed at the spot we want to have the map.

Just including Leaflet is also not enough, and htmlwidgets don't seem to have a hosted version, so just editing the output file doesn't seem to be an option.

The shiny example is included using an iframe, perhaps as a workaround the leaflet map can also be included as an iframe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant