% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/boundaries.R
\name{nhm_generate_boundaries}
\alias{nhm_generate_boundaries}
\title{Generate GeoJSON boundary files for outline maps}
\usage{
nhm_generate_boundaries(
  output_dir,
  tolerance_110m = 0.5,
  tolerance_50m = 0.1,
  tolerance_states = 0.01,
  countries = "united kingdom",
  verbose = TRUE
)
}
\arguments{
\item{output_dir}{Directory to write the GeoJSON files into. Created
if it does not exist.}

\item{tolerance_110m}{Simplification tolerance for the 110 m layer
(degrees). Default 0.5.}

\item{tolerance_50m}{Simplification tolerance for the 50 m layer
(degrees). Default 0.1.}

\item{tolerance_states}{Simplification tolerance for the UK states
layer (degrees). Default 0.01.}

\item{countries}{Character vector of country names for the states
layer. Defaults to \code{"united kingdom"}.}

\item{verbose}{Print progress messages. Default \code{TRUE}.}
}
\value{
Invisibly, a named character vector of the file paths written.
}
\description{
Downloads vector boundary data from \pkg{rnaturalearth} and writes
simplified GeoJSON files to a target directory.
These files can be used as overlay layers in plotly mapbox maps
to create NHM-themed outline-only maps without external tile
services.
}
\details{
Three layers are produced:
\describe{
\item{world_110m.geojson}{World country boundaries at 110 m
Natural Earth scale — lightweight, suitable for global zoom.}
\item{world_50m.geojson}{World country boundaries at 50 m
Natural Earth scale — more detail for continental zoom.}
\item{uk_states.geojson}{UK county / unitary-authority boundaries
from Natural Earth 10 m states data (requires
\pkg{rnaturalearthhires}).}
}
}
