Skip to content

Commit 6791e4f

Browse files
committed
marker.size expansion should be aware of lat/lon as well
1 parent 2f72838 commit 6791e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ verify_attr <- function(proposed, schema) {
510510
# markers -- in that case, if marker.size is an array
511511
# of length 1 will result in just one marker
512512
# https://codepen.io/cpsievert/pen/aMmOza
513-
n <- length(proposed[["x"]] %||% proposed[["y"]])
513+
n <- length(proposed[["x"]] %||% proposed[["y"]] %||% proposed[["lat"]] %||% proposed[["lon"]])
514514
proposed$marker[["size"]] <- default(i(rep(s, n)))
515515
}
516516
}

0 commit comments

Comments
 (0)