Closed symbalex closed 5 years ago
In the first plot you're using fill_opacity = 255
, where 255 is the maximum opacity.
If you set it to 100 you get transparency
mapdeck(mapdeck::mapdeck_style("light")
, token = token) %>%
add_sf(layer_id = "example"
, data = sf_example
, fill_colour = "SA2_NAME16"
, fill_opacity = 100
)
However, I don't know why one of your plots is brighter than the other.
Also, you haven't set the style
correctly. You need to use the argument name style =
Thanks, didn't notice the style
argument problem.
In the first plot you're using fill_opacity = 255, where 255 is the maximum opacity. If you set it to 100 you get transparency ... However, I don't know why one of your plots is brighter than the other
I think the brightness problem is the opacity. In the second plot, I think it is correctly using fill_opacity = 255
. In the first plot, I think it is not recognising fill_opacity = 255
and using some default setting. Sorry if that was unclear before.
I took your first example and used fill_opacity = 100
to show it working.
Gotcha. Hmm, OK, that's weird 🙃
The fill opacity in
add_sf
doesn't seem to be changing until the stroke opacity is set. It appears that fill opacity argument is not working properly.Minimal example:
Using the most recent dev version of mapdeck.