Skip to content

Commit

Permalink
update layer functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico Frieß committed Jan 10, 2024
1 parent f8fc330 commit dc4995e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/layer.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@
#' @param layout
#'
#' @export
layer <- function(type, id, source = NULL, paint = NULL, layout = NULL, ...) {
list(
Layer <- function(type, id, source = NULL, paint = NULL, layout = NULL, ...) {
lay <- list(
type = type,
id = id,
source = source,
paint = paint,
layout = layout
) |>
purrr::compact()
class(lay) <- "MapLibreLayer"
return(lay)
}


Expand Down

0 comments on commit dc4995e

Please sign in to comment.