% Generated by roxygen2: do not edit by hand % Please edit documentation in R/styles.R \name{pmHideFeatures} \alias{pmHideFeatures} \title{Create color overrides to hide specific features} \usage{ pmHideFeatures(features, background = "#f8f8f8") } \arguments{ \item{features}{Character vector. Features to hide. Options include: "roads", "buildings", "landuse", "boundaries", "labels".} \item{background}{Character. Background color that hidden features will match. Default is "#f8f8f8".} } \value{ A list of color overrides to pass to \code{\link{pmColors}} or merge with other colors. } \description{ Creates color settings that hide specified feature categories by making them match the background color. } \examples{ \dontrun{ library(leaflet) library(protomapr) # Hide roads and buildings but keep parks visible hidden <- pmHideFeatures(c("roads", "buildings")) leaflet() \%>\% setView(lng = -122.4, lat = 37.8, zoom = 12) \%>\% addProtomaps( url = protomaps_url(), colors = modifyList(pmColors(water = "#1a3a5c"), hidden) ) } }