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

Stroke color different to fillcolor? #100

Open
coppertank opened this issue Oct 29, 2024 · 3 comments
Open

Stroke color different to fillcolor? #100

coppertank opened this issue Oct 29, 2024 · 3 comments

Comments

@coppertank
Copy link

I was wondering if it was possible to change the color of the polygons' border and make it different from the fill color. On light colored polygons, in fact, the border is not very visible.
Screenshot 2024-10-29 140416

@tim-salabim
Copy link
Member

I don't think this is supported by the upstream repo.

@mtennekes
Copy link

Same issue. So not possible to change the border color and width?

If not, a workaround is to addGlPolylines for this purpose.

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

Sorry @mtennekes I don't think leaflet.glify supports this. In mapview I simply render the borders on top of the polygons. See https://github.com/r-spatial/mapview/blob/master/R/sf.R#L317-L331

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

3 participants