# check for sane longitude bounds of drawn features - latitude is always -90/90
insane_longitude_warning = function() {
if (requireNamespace("crayon", quietly = TRUE)) {
warning(crayon::bgRed(crayon::white("\ndrawn features lie outside standard longitude bounds (-180 to 180) which is likely to cause trouble later!!")),
call. = FALSE)
} else {
warning("\ndrawn features lie outside standard longitude bounds (-180 to 180) which is likely to cause trouble later!!",
call. = FALSE)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.