-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#' Create a basemap style definition | ||
#' @param sources The sources to be used for the basemap style. | ||
#' @param layers The layers to be used for the basemap style. | ||
#' @param name The name of the basemap style. | ||
#' @returns list | ||
#' @example examples/pmtiles.R | ||
#' @export | ||
construct_basemap_style <- function(sources, layers, name = "custom-basemap") { | ||
basemap_style <- list( | ||
name = name, | ||
version = 8L, | ||
sources = sources, | ||
layers = layers | ||
) | ||
return(rdantic(basemap_style, TYPES_BASEMAP_STYLE)) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TYPES_BASEMAP_STYLE <- list( | ||
name = is.character, | ||
version = is.integer, | ||
sources = is.list, | ||
layers = is.list | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.