Skip to contents

Save a GeoLibre project

Usage

save_project(map, path, keep_credentials = FALSE)

Arguments

map

A GeoLibre widget or project list.

path

Output path, conventionally ending in .geolibre.json.

keep_credentials

Keep credential-bearing configuration such as layer request headers and signed URLs. Defaults to FALSE, so a saved project is safe to commit or share. See redact_credentials().

Value

path, invisibly.

Examples

path <- tempfile(fileext = ".geolibre.json")
save_project(geolibre(), path)
project <- load_project(path)
stopifnot(project$name == "Untitled Project")