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

Line width factor 4ish larger #101

Open
mtennekes opened this issue Oct 31, 2024 · 3 comments
Open

Line width factor 4ish larger #101

mtennekes opened this issue Oct 31, 2024 · 3 comments

Comments

@mtennekes
Copy link

Related to #22

data("World", package = "tmap")
leaflet() |> addPolylines(data = World, weight = 4, opacity = 1)
leaflet() |> addGlPolylines(data = World |> st_cast("POLYGON") |> st_cast("LINESTRING"), weight = 1)

These maps look similar, but the weight has to 4 times smaller than with standard leaflet layers. Can this be made consistent?

mtennekes added a commit to r-tmap/tmap that referenced this issue Oct 31, 2024
@tim-salabim
Copy link
Member

Yeah, in mapview I use lwd / 2 when using leafgl rendering. The upstream lib produces thicker lines by default, not sure why...

@mtennekes
Copy link
Author

Ok, thx. A bigger upstream problem is the sharpness of the lines (and point border lines), probably because of the semi-transparency?

@tim-salabim
Copy link
Member

Its probably different from leaflet as all these are shaders rather than svgs...

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

2 participants