-
Notifications
You must be signed in to change notification settings - Fork 507
/
Copy pathaddTerminator.Rd
40 lines (34 loc) · 954 Bytes
/
addTerminator.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plugin-terminator.R
\name{addTerminator}
\alias{addTerminator}
\title{Add a daylight layer on top of the map}
\usage{
addTerminator(
map,
resolution = 2,
time = NULL,
layerId = NULL,
group = NULL,
options = pathOptions(pointerEvents = "none", clickable = FALSE)
)
}
\arguments{
\item{map}{a map widget object}
\item{resolution}{the step size at which the terminator points are computed.
The step size is 1 degree/resolution, i.e., higher resolution values have
smaller step sizes and more points in the polygon. The default value is 2.}
\item{time}{Time}
\item{layerId}{the layer id}
\item{group}{the name of the group this layer belongs to.}
\item{options}{the path options for the daynight layer}
}
\description{
See \url{https://github.com/joergdietrich/Leaflet.Terminator}
}
\examples{
leaf <- leaflet() \%>\%
addTiles() \%>\%
addTerminator()
leaf
}