You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently reworking a map I made that's going to have at least ~50k points in total, with the potential for more layers. Right now, I'm trying to evaluate {rdeck} and {leafgl} and I'm currently leaning toward {leafgl} because y'all have a lot of native integration with leaflet, which enables the map to have more functionality, but I've got two issues I'm thinking through that stand out to me (Also, I'm happy to file these as two separate issues:
As I've been testing out {leafgl} and {rdeck}, I've noticed a blurriness and pixelation with the points rendered by leafgl. I'm wondering what options there are to increase the resolution of the points? Here's a screenshot:
{leafgl} screenshot
{rdeck} screenshot
Code for leafgl point rendering
Right now, this is how I'm drawing the points with leafgl:
The last thing I'm wondering about is the difference between file sizes produced for a standalone HTML version when using {leafgl} vs {rdeck}. Using the same data for each map, I used htmlwidgets::saveWidget() to create self-contained versions of the maps, like this:
The text was updated successfully, but these errors were encountered:
mrworthington
changed the title
Retina Issue with Points& File Sizes for Self Contained Maps?
Retina Issue with Points & File Sizes for Self Contained Maps?
Mar 29, 2022
Hi y'all,
Currently reworking a map I made that's going to have at least ~50k points in total, with the potential for more layers. Right now, I'm trying to evaluate {rdeck} and {leafgl} and I'm currently leaning toward {leafgl} because y'all have a lot of native integration with leaflet, which enables the map to have more functionality, but I've got two issues I'm thinking through that stand out to me (Also, I'm happy to file these as two separate issues:
For reference, here's links to each map:
Links to Maps
Point Pixelation and Resolution
As I've been testing out {leafgl} and {rdeck}, I've noticed a blurriness and pixelation with the points rendered by leafgl. I'm wondering what options there are to increase the resolution of the points? Here's a screenshot:
{leafgl} screenshot
{rdeck} screenshot
Code for leafgl point rendering
Right now, this is how I'm drawing the points with leafgl:
File Size for Standalone Maps
The last thing I'm wondering about is the difference between file sizes produced for a standalone HTML version when using {leafgl} vs {rdeck}. Using the same data for each map, I used
htmlwidgets::saveWidget()
to create self-contained versions of the maps, like this:When I did, the {leafgl} map was roughly 56.8 MB while the {rdeck} map was 4.4 MB. Is there a way to reduce the file size of the leafgl map?
Session Info
The text was updated successfully, but these errors were encountered: