Skip to content

Commit fd40870

Browse files
committed
Fix missing switch for dashed connection argument
1 parent 37dbd4a commit fd40870

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

R/berlin.R

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,15 @@ Berlin_add_poi <- function(
186186
}
187187
}
188188
if(!is.na(df_plot$link_longitude[i]) & !is.na(df_plot$link_latitude[i])){
189-
lines(x = c(df_plot$x_longitude[i], df_plot$link_longitude[i]),
190-
y = c(df_plot$y_latitude[i], df_plot$link_latitude[i]),
191-
col = fillColor, lwd = 2)
192-
lines(x = c(df_plot$x_longitude[i], df_plot$link_longitude[i]),
193-
y = c(df_plot$y_latitude[i], df_plot$link_latitude[i]),
194-
col = lineColor, lwd = 2, lty = "dotted")
189+
if(!dashed_connection){
190+
lines(x = c(df_plot$x_longitude[i], df_plot$link_longitude[i]),
191+
y = c(df_plot$y_latitude[i], df_plot$link_latitude[i]),
192+
col = fillColor, lwd = 2)
193+
} else {
194+
lines(x = c(df_plot$x_longitude[i], df_plot$link_longitude[i]),
195+
y = c(df_plot$y_latitude[i], df_plot$link_latitude[i]),
196+
col = lineColor, lwd = 2, lty = "dotted")
197+
}
195198
}
196199
}
197200
}

0 commit comments

Comments
 (0)