Skip to contents

The viz_render function allows to display the map

Usage

viz_render(map)

Arguments

map

A geovizr map object created using viz_create().

Value

An htmlwidget object representing an interactive map.

Examples

library(sf)

world <- st_read(
  system.file("gpkg/world.gpkg", package = "geovizr"),
  quiet = TRUE
)

viz_create() |>
  viz_outline() |>
  viz_path(data = world) |>
  viz_render()