Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upfill_colour in add_polygon not correct when stroke_colour is not defined #287
Comments
|
ok, this is caused by the const polygonLayer = new deck.PolygonLayer({
...
extruded: true
...
});When this is set to I can make this work for non-extruded polygons from within R, but I think the colouring issue lies with deck.gl. I'll make a reprex and post an issue on their github. |
|
It also might have to do with the lighting effects, which I haven't fully explored yet ( #174 ) mapdeck(
, style = mapdeck_style('dark')
) %>%
add_polygon(
data = sf
, fill_colour = "#ffffffff"
#, stroke_colour = "#ffffffff"
, elevation = 2000
) |
|
this commit should solve the imediate issue. |
|
Thanks for the quick action! From my side, this is solved. |

When using
add_polygonand only definingfill_colourthe resulting colour seems not correct (should be white).However, when we also define
stroke_colourit renders correctly (in white)I realised this behaviour when testing mapview with mapdeck for
add_pointcloud. Given thatadd_pointclouddoes not have astroke_colourargument, I haven't found a way to get the proper colour representation foradd_pointcloud.