value_string <- function(...) {
l <- rlang::list2(...)
char_vec <- purrr::map2_chr(
names(l),
l,
sprintf,
fmt = "%s (%f) VALUE"
)
paste(char_vec, collapse = " ")
}
latlon2string <- function(latitude, longitude) {
value_string(X = longitude, Y = latitude)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.