init
This commit is contained in:
commit
116abafc09
58 changed files with 5749 additions and 0 deletions
39
man/pmHideFeatures.Rd
Normal file
39
man/pmHideFeatures.Rd
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
% 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)
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue