-
Notifications
You must be signed in to change notification settings - Fork 0
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
Can't see stroked outlines on polygon layers #91
Comments
The problem is that Try this library(rdeck)
library(dplyr)
library(sf)
library(absmapsdata)
shp <- sa32016 %>%
filter(gcc_name_2016 == "Greater Melbourne")
rdeck(
map_style = mapbox_dark(),
# set the bounds of the map to include all of the manhattan data
initial_bounds = st_bbox(shp),
# add a 2 pixel buffer to each point, making it easier to hover
picking_radius = 2
) |>
add_polygon_layer(
data = shp,
get_polygon = geometry,
filled = TRUE,
opacity = 0.1,
stroked = TRUE,
get_line_color = "#663399ff",
line_width_units = "pixels",
) |
Related #92 |
Interesting, when I run that script I don't get any outlines at all:
I also have a broken display in the RStudio Viewer, so I'm looking in the webpage. Not sure if that's connected or not, or perhaps it is an R version issue? |
Oh never mind, this is solved with a I'll consider this one closed. |
The above (#91 (comment)) should have just worked as is, because the default |
If you're using a QtWebEngine version RStudio, rdeck probably won't render in the viewer. I removed legacy browser support (QtWebEngine-RStudio viewer was locked to Chrome 69) from rdeck in v0.5.1. Rdeck renders in the Electron-RStudio viewer. I've just run the above script on the latest RStudio release for windows: |
I'm trying to add a flat polygon layer, with a stroke on the outside. I can get a thin line by setting
stroked = TRUE
andextruded=TRUE
, but I haven't managed to get a thick line, and the outline isn't really visible enough.I have tried setting
get_line_width
to a large number, but it seems to have no effect.Here is a short example showing the unexpected behaviour
The text was updated successfully, but these errors were encountered: