Skip to content

Commit

Permalink
add condition to add background map
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastien-plutniak committed Feb 21, 2024
1 parent cd893ec commit d27fcc8
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions R/app_server.R
Original file line number Diff line number Diff line change
Expand Up @@ -666,14 +666,16 @@ app_server <- function(input, output, session) {
)

# : add background map ----
fig <- add_paths(fig, x= ~x, y= ~y,
z = coords$zmax,
split = ~group,
data = getShinyOption("background.map"),
color = I("black"),
hoverinfo = "skip",
showlegend = FALSE, inherit = F)

if( ! is.null(getShinyOption("background.map")) ){
fig <- add_paths(fig, x= ~x, y= ~y,
z = coords$zmax,
split = ~group,
data = getShinyOption("background.map"),
color = I("black"),
hoverinfo = "skip",
showlegend = FALSE, inherit = F)
}

# : add refits lines ----
plot3d.refits <- sum(c(input$plot3d.refits,
Expand Down

0 comments on commit d27fcc8

Please sign in to comment.