powered by
See https://github.com/joergdietrich/Leaflet.Terminator
addTerminator( map, resolution = 2, time = NULL, layerId = NULL, group = NULL, options = pathOptions(pointerEvents = "none", clickable = FALSE) )
a map widget object
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.
Time
the layer id
the name of the group this layer belongs to.
the path options for the daynight layer
leaf <- leaflet() %>% addTiles() %>% addTerminator() leaf
Run the code above in your browser using DataLab