49 lines
1.3 KiB
R
49 lines
1.3 KiB
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/symbolizers.R
|
|
\name{pmCenteredTextSymbolizer}
|
|
\alias{pmCenteredTextSymbolizer}
|
|
\title{Create a Centered Text Symbolizer}
|
|
\usage{
|
|
pmCenteredTextSymbolizer(
|
|
font = "12px sans-serif",
|
|
fill = "#000000",
|
|
stroke = NULL,
|
|
width = 0,
|
|
lineHeight = NULL,
|
|
labelProps = NULL,
|
|
...
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{font}{Character. Font specification (e.g., "12px sans-serif").}
|
|
|
|
\item{fill}{Character. Text fill color. Default is "#000000".}
|
|
|
|
\item{stroke}{Character. Text stroke (halo) color. Default is NULL.}
|
|
|
|
\item{width}{Numeric. Stroke width for text halo. Default is 0.}
|
|
|
|
\item{lineHeight}{Numeric. Line height multiplier for multi-line labels.
|
|
Default is NULL (uses library default). Use values like 1.0-1.2 for
|
|
tighter spacing.}
|
|
|
|
\item{labelProps}{List. Properties to use for label text, in order of
|
|
preference. Default is \code{list("name")}.}
|
|
|
|
\item{...}{Additional symbolizer options.}
|
|
}
|
|
\value{
|
|
A list representing the symbolizer configuration.
|
|
}
|
|
\description{
|
|
Creates a centered text symbolizer for rendering text labels centered
|
|
on point features.
|
|
}
|
|
\examples{
|
|
pmCenteredTextSymbolizer(font = "14px Arial", fill = "black")
|
|
|
|
# Tighter line spacing for multi-word labels
|
|
pmCenteredTextSymbolizer(font = "11px sans-serif", fill = "#444",
|
|
lineHeight = 1.1)
|
|
|
|
}
|