Skip to content

Commit a0772f1

Browse files
committed
hoveron fills, not fill
1 parent f52db23 commit a0772f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

demo/sf-dt.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ library(crosstalk)
44
nc <- sf::st_read(system.file("shape/nc.shp", package = "sf"), quiet = TRUE)
55
ncsd <- SharedData$new(nc)
66

7-
map <- plot_ly(ncsd, split = ~NAME, color = I("gray"), hoveron = "fill") %>%
7+
map <- plot_ly(ncsd, split = ~NAME, color = I("gray"), hoveron = "fills") %>%
88
highlight(persistent = TRUE, color = "red", opacityDim = 1) %>%
99
layout(title = "Click on counties to query them", showlegend = FALSE) %>%
1010
config(displayModeBar = FALSE)

demo/sf-mapbox-data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plot_mapbox(res_mn, split = ~INDRESNAME, color = ~AREA, stroke = ~PERIMETER, spa
1212
# linking with DT
1313
mn <- crosstalk::SharedData$new(res_mn)
1414
bscols(
15-
plot_mapbox(mn, split = ~INDRESNAME, text = ~INDRESNAME, hoverinfo = "text", hoveron = "fill") %>%
15+
plot_mapbox(mn, split = ~INDRESNAME, text = ~INDRESNAME, hoverinfo = "text", hoveron = "fills") %>%
1616
layout(title = "Click a reservation", showlegend = FALSE),
1717
DT::datatable(mn)
1818
)

0 commit comments

Comments
 (0)