leafgl icon indicating copy to clipboard operation
leafgl copied to clipboard

Stroke color different to fillcolor?

Open coppertank opened this issue 1 year ago • 3 comments

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

coppertank avatar Oct 29 '24 13:10 coppertank

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

tim-salabim avatar Oct 29 '24 13:10 tim-salabim

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

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

mtennekes avatar Oct 31 '24 14:10 mtennekes

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

tim-salabim avatar Oct 31 '24 14:10 tim-salabim